1
0

Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= zip
  5. PKG_VERSION:= 3.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 7b74551e63f8ee6aab6fbc86676c0d37
  8. PKG_DESCR:= zip compression utility
  9. PKG_SECTION:= archive
  10. PKG_BUILDDEP:= zip-host
  11. PKG_URL:= http://www.info-zip.org/Zip.html
  12. PKG_SITES:= ftp://ftp.info-zip.org/pub/infozip/src/
  13. WRKDIST= $(WRKDIR)/$(PKG_NAME)30
  14. DISTFILES:= $(PKG_NAME)30.tgz
  15. include ${TOPDIR}/mk/host.mk
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call HOST_template,ZIP,zip,${PKG_VERSION}-${PKG_RELEASE}))
  18. $(eval $(call PKG_template,ZIP,zip,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. HOST_STYLE:= manual
  20. CONFIG_STYLE:= manual
  21. INSTALL_STYLE:= manual
  22. TARGET_CPPFLAGS+= -DNO_BZIP2_SUPPORT
  23. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  24. CONFIGURE_PROG:= unix/configure
  25. MAKE_FILE:= unix/Makefile
  26. ALL_TARGET:= generic_gcc
  27. host-build:
  28. (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  29. ${HOST_MAKE_FLAGS} ${ALL_TARGET})
  30. zip-hostinstall:
  31. $(CP) $(WRKBUILD)/zip \
  32. $(STAGING_HOST_DIR)/usr/bin
  33. zip-install:
  34. ${INSTALL_DIR} ${IDIR_ZIP}/usr/bin
  35. ${CP} ${WRKBUILD}/zip ${IDIR_ZIP}/usr/bin
  36. include ${TOPDIR}/mk/host-bottom.mk
  37. include ${TOPDIR}/mk/pkg-bottom.mk