summaryrefslogtreecommitdiff
path: root/package/empty
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-07-09 00:53:17 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-07-12 15:43:53 +0200
commit3a841403c936ef07d23af8303dd8aaf761774433 (patch)
tree8259410d77a0fb9cf3f3a2cf18b7077870e7008e /package/empty
parentb74cd8e3c0ea6feb5cd71502689c47833d90dbfd (diff)
add new package empty
Diffstat (limited to 'package/empty')
-rw-r--r--package/empty/Makefile33
-rw-r--r--package/empty/patches/patch-Makefile15
2 files changed, 48 insertions, 0 deletions
diff --git a/package/empty/Makefile b/package/empty/Makefile
new file mode 100644
index 000000000..7c8cdbb18
--- /dev/null
+++ b/package/empty/Makefile
@@ -0,0 +1,33 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= empty
+PKG_VERSION:= 0.6.19b
+PKG_RELEASE:= 1
+PKG_HASH:= 05b7cb361ef815774abda325c09c573f8c9039ccbb71eedc743439e4637c314a
+PKG_DESCR:= similar to expect for interactive console apps
+PKG_SECTION:= sys/misc
+PKG_URL:= http://empty.sourceforge.net
+PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=empty/}
+
+DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tgz
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,EMPTY,empty,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+CONFIG_STYLE:= manual
+INSTALL_STYLE:= manual
+
+do-install:
+ $(INSTALL_DIR) $(WRKINST)/usr/bin
+ $(INSTALL_BIN) $(WRKBUILD)/empty $(WRKINST)/usr/bin/empty
+
+empty-install:
+ $(INSTALL_DIR) $(IDIR_EMPTY)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/empty \
+ $(IDIR_EMPTY)/usr/bin
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk
diff --git a/package/empty/patches/patch-Makefile b/package/empty/patches/patch-Makefile
new file mode 100644
index 000000000..9ee8da140
--- /dev/null
+++ b/package/empty/patches/patch-Makefile
@@ -0,0 +1,15 @@
+--- empty-0.6.19b.orig/Makefile 2012-09-19 13:22:42.000000000 +0200
++++ empty-0.6.19b/Makefile 2015-07-09 00:19:44.000000000 +0200
+@@ -10,10 +10,10 @@
+ #
+
+
+-CC = gcc
++CC ?= gcc
+ LIBS = -lutil
+
+-PREFIX = /usr/local
++PREFIX = /usr
+
+ all:
+ ${CC} ${CFLAGS} -Wall ${LIBS} -o empty empty.c