Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:= unzip
  5. PKG_VERSION:= 6.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37
  8. PKG_DESCR:= zip extraction utility
  9. PKG_SECTION:= app/archive
  10. PKG_URL:= http://www.info-zip.org/UnZip.html
  11. PKG_SITES:= http://downloads.sourceforge.net/infozip/
  12. DISTFILES:= ${PKG_NAME}60.tar.gz
  13. WRKDIST= ${WRKDIR}/${PKG_NAME}60
  14. include ${ADK_TOPDIR}/mk/host.mk
  15. include $(ADK_TOPDIR)/mk/package.mk
  16. $(eval $(call HOST_template,UNZIP,unzip,$(PKG_VERSION)-${PKG_RELEASE}))
  17. $(eval $(call PKG_template,UNZIP,unzip,$(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. CONFIGURE_PROG:= unix/configure
  23. MAKE_FILE:= unix/Makefile
  24. ALL_TARGET:= generic_gcc
  25. host-build:
  26. (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  27. ${HOST_MAKE_FLAGS} ${ALL_TARGET})
  28. unzip-hostinstall:
  29. $(CP) $(WRKBUILD)/unzip \
  30. $(STAGING_HOST_DIR)/usr/bin
  31. unzip-install:
  32. $(INSTALL_DIR) $(IDIR_UNZIP)/usr/bin
  33. $(INSTALL_BIN) $(WRKBUILD)/unzip $(IDIR_UNZIP)/usr/bin
  34. include ${ADK_TOPDIR}/mk/host-bottom.mk
  35. include ${ADK_TOPDIR}/mk/pkg-bottom.mk