Makefile 1.3 KB

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