Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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:= tzdata
  5. PKG_VERSION:= 2010o
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 5cae5c56fad81dc29f8fcd933a05768e a7a776a5713831993e814fe0c05f9fd5
  8. PKG_DESCR:= Timezone data (/usr/share/zoneinfo)
  9. PKG_SECTION:= utils
  10. PKG_URL:= ftp://elsie.nci.nih.gov/pub/
  11. PKG_SITES:= ftp://elsie.nci.nih.gov/pub/
  12. PKG_NOPARALLEL:= 1
  13. # Note that tzcode does NOT have the same version as tzdata does :[
  14. DISTFILES:= ${PKG_NAME}${PKG_VERSION}.tar.gz tzcode2010n.tar.gz
  15. # both archives do not extract into subdirectories
  16. WRKDIST= ${WRKDIR}
  17. # no use for tzselect, since that is a ksh-script
  18. PKG_SUBPKGS:= TZDATA ZDUMP ZIC DATE
  19. PKGSD_ZDUMP:= timezone file dumper
  20. PKGSD_ZIC:= timezone file compiler
  21. PKGSD_DATE:= famous date utility
  22. include $(TOPDIR)/mk/package.mk
  23. $(eval $(call PKG_template,TZDATA,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. $(eval $(call PKG_template,ZDUMP,zdump,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_ZDUMP},${PKG_SECTION}))
  25. $(eval $(call PKG_template,ZIC,zic,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_ZIC},${PKG_SECTION}))
  26. $(eval $(call PKG_template,DATE,date,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_DATE},${PKG_SECTION}))
  27. CONFIG_STYLE:= manual
  28. CFLAGS_FOR_BUILD+= -DSTD_INSPIRED=1
  29. XAKE_FLAGS+= TOPDIR="${WRKINST}" TZDIR="${WRKINST}/usr/share/zoneinfo" cc="${TARGET_CC}"
  30. # the uppercase targets enable building and installation of the date utility
  31. ALL_TARGET:= ALL
  32. INSTALL_TARGET:= INSTALL
  33. post-install:
  34. $(INSTALL_DIR) $(IDIR_TZDATA)/usr/share
  35. $(CP) $(WRKINST)/usr/share/zoneinfo $(IDIR_TZDATA)/usr/share
  36. ${INSTALL_DIR} ${IDIR_ZDUMP}/usr/sbin
  37. ${INSTALL_BIN} ${WRKINST}/etc/zdump ${IDIR_ZDUMP}/usr/sbin/
  38. ${INSTALL_DIR} ${IDIR_ZIC}/usr/sbin
  39. ${INSTALL_BIN} ${WRKINST}/etc/zic ${IDIR_ZIC}/usr/sbin/
  40. ${INSTALL_DIR} ${IDIR_DATE}/usr/bin
  41. ${INSTALL_BIN} ${WRKINST}/bin/date ${IDIR_DATE}/usr/bin/
  42. include ${TOPDIR}/mk/pkg-bottom.mk