1
0

Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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:= minimal
  21. INSTALL_STYLE:= manual
  22. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  23. CONFIGURE_PROG:= unix/configure
  24. MAKE_FILE:= unix/Makefile
  25. ALL_TARGET:= generic_gcc
  26. host-configure:
  27. (cd $(WRKBUILD) && $(BASH) $(CONFIGURE_PROG))
  28. host-build:
  29. (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  30. ${HOST_MAKE_FLAGS} ${ALL_TARGET})
  31. zip-hostinstall:
  32. $(CP) $(WRKBUILD)/zip \
  33. $(STAGING_HOST_DIR)/usr/bin
  34. zip-install:
  35. ${INSTALL_DIR} ${IDIR_ZIP}/usr/bin
  36. ${CP} ${WRKBUILD}/zip ${IDIR_ZIP}/usr/bin
  37. include ${TOPDIR}/mk/host-bottom.mk
  38. include ${TOPDIR}/mk/pkg-bottom.mk