nano: update to 2.7.1
[openadk.git] / package / zip / Makefile
blob7e1e84455ab04e6f2118cccdde9e023bf885adea
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= zip
7 PKG_VERSION:= 3.0
8 PKG_RELEASE:= 1
9 PKG_HASH:= f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369
10 PKG_DESCR:= zip compression utility
11 PKG_SECTION:= app/archive
12 PKG_URL:= http://www.info-zip.org/Zip.html
13 PKG_SITES:= ftp://ftp.info-zip.org/pub/infozip/src/
15 WRKDIST= $(WRKDIR)/$(PKG_NAME)30
16 DISTFILES:= $(PKG_NAME)30.tgz
18 include ${ADK_TOPDIR}/mk/host.mk
19 include ${ADK_TOPDIR}/mk/package.mk
21 $(eval $(call HOST_template,ZIP,zip,${PKG_VERSION}-${PKG_RELEASE}))
22 $(eval $(call PKG_template,ZIP,zip,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
24 HOST_STYLE:= manual
25 CONFIG_STYLE:= manual
26 INSTALL_STYLE:= manual
28 TARGET_CPPFLAGS+= -DNO_BZIP2_SUPPORT
29 XAKE_FLAGS+= GCC_HONOUR_COPTS=s
30 CONFIGURE_PROG:= unix/configure
31 MAKE_FILE:= unix/Makefile
32 ALL_TARGET:= generic_gcc
34 host-build:
35 (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
36 ${HOST_MAKE_FLAGS} ${ALL_TARGET})
38 zip-hostinstall:
39 $(CP) $(WRKBUILD)/zip \
40 $(STAGING_HOST_DIR)/usr/bin
42 zip-install:
43 ${INSTALL_DIR} ${IDIR_ZIP}/usr/bin
44 ${INSTALL_BIN} ${WRKBUILD}/zip ${IDIR_ZIP}/usr/bin
46 include ${ADK_TOPDIR}/mk/host-bottom.mk
47 include ${ADK_TOPDIR}/mk/pkg-bottom.mk