summaryrefslogtreecommitdiff
path: root/package/zip/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-11-14 21:23:31 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-11-14 21:23:31 +0100
commitc80761a85ee89d6804db695962e256e48849cf96 (patch)
tree33f949ec3569d45be8e1b15ea3dc9007d8ca8acc /package/zip/Makefile
parent6a93fa146ab8c42512f08143b187b032888d2454 (diff)
parentf1590c8f1e959054b9426d923886246c2abec3c1 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/zip/Makefile')
-rw-r--r--package/zip/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/zip/Makefile b/package/zip/Makefile
index 1cc0f8ec0..242fc84ec 100644
--- a/package/zip/Makefile
+++ b/package/zip/Makefile
@@ -9,16 +9,20 @@ PKG_RELEASE:= 1
PKG_MD5SUM:= 7b74551e63f8ee6aab6fbc86676c0d37
PKG_DESCR:= zip compression utility
PKG_SECTION:= archive
+PKG_BUILDDEP:= zip-host
PKG_URL:= http://www.info-zip.org/Zip.html
PKG_SITES:= ftp://ftp.info-zip.org/pub/infozip/src/
WRKDIST= $(WRKDIR)/$(PKG_NAME)30
DISTFILES:= $(PKG_NAME)30.tgz
+include ${TOPDIR}/mk/host.mk
include ${TOPDIR}/mk/package.mk
+$(eval $(call HOST_template,ZIP,zip,${PKG_VERSION}-${PKG_RELEASE}))
$(eval $(call PKG_template,ZIP,zip,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+HOST_STYLE:= manual
CONFIG_STYLE:= minimal
INSTALL_STYLE:= manual
@@ -27,8 +31,20 @@ CONFIGURE_PROG:= unix/configure
MAKE_FILE:= unix/Makefile
ALL_TARGET:= generic_gcc
+host-configure:
+ (cd $(WRKBUILD) && $(BASH) $(CONFIGURE_PROG))
+
+host-build:
+ (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
+ ${HOST_MAKE_FLAGS} ${ALL_TARGET})
+
+zip-hostinstall:
+ $(CP) $(WRKBUILD)/zip \
+ $(STAGING_HOST_DIR)/usr/bin
+
zip-install:
${INSTALL_DIR} ${IDIR_ZIP}/usr/bin
${CP} ${WRKBUILD}/zip ${IDIR_ZIP}/usr/bin
+include ${TOPDIR}/mk/host-bottom.mk
include ${TOPDIR}/mk/pkg-bottom.mk