Makefile 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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:= 2013d
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 65b6818162230fc02f86f293376c73df 4616a9560270f180eeb9a08540636890
  8. PKG_DESCR:= Timezone data (/usr/share/zoneinfo)
  9. PKG_SECTION:= utils
  10. PKG_URL:= http://www.iana.org/time-zones/
  11. PKG_SITES:= http://www.iana.org/time-zones/repository/releases/
  12. PKG_NOPARALLEL:= 1
  13. DISTFILES:= ${PKG_NAME}${PKG_VERSION}.tar.gz tzcode${PKG_VERSION}.tar.gz
  14. # both archives do not extract into subdirectories
  15. WRKDIST= ${WRKDIR}
  16. # no use for tzselect, since that is a ksh-script
  17. PKG_SUBPKGS:= TZDATA ZDUMP ZIC DATE
  18. PKGSD_ZDUMP:= timezone file dumper
  19. PKGSD_ZIC:= timezone file compiler
  20. PKGSD_DATE:= famous date utility
  21. include $(TOPDIR)/mk/package.mk
  22. $(eval $(call PKG_template,TZDATA,tzdata,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. $(eval $(call PKG_template,ZDUMP,zdump,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_ZDUMP},${PKG_SECTION}))
  24. $(eval $(call PKG_template,ZIC,zic,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_ZIC},${PKG_SECTION}))
  25. $(eval $(call PKG_template,DATE,date,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_DATE},${PKG_SECTION}))
  26. CONFIG_STYLE:= manual
  27. CFLAGS_FOR_BUILD+= -DSTD_INSPIRED=1
  28. TARGET_CFLAGS+= -DHAVE_INTTYPES_H=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. tzdata-install:
  34. $(INSTALL_DIR) $(IDIR_TZDATA)/usr/share $(IDIR_TZDATA)/etc
  35. $(CP) $(WRKINST)/usr/share/zoneinfo $(IDIR_TZDATA)/usr/share
  36. tz=; cd $(IDIR_TZDATA)/usr/share/zoneinfo || exit 1; \
  37. for f in UTC ${ADK_RUNTIME_TIMEZONE}; do \
  38. test -s "$$f" || continue; \
  39. tz=$$f; \
  40. done; if test x"$$tz" = x""; then \
  41. echo >&2 Error during timezone installation; \
  42. exit 1; \
  43. else \
  44. ln -sf "../usr/share/zoneinfo/$$tz" \
  45. $(IDIR_TZDATA)/etc/localtime; \
  46. fi
  47. zdump-install:
  48. ${INSTALL_DIR} ${IDIR_ZDUMP}/usr/sbin
  49. ${INSTALL_BIN} ${WRKINST}/etc/zdump ${IDIR_ZDUMP}/usr/sbin/
  50. zic-install:
  51. ${INSTALL_DIR} ${IDIR_ZIC}/usr/sbin
  52. ${INSTALL_BIN} ${WRKINST}/etc/zic ${IDIR_ZIC}/usr/sbin/
  53. date-install:
  54. ${INSTALL_DIR} ${IDIR_DATE}/usr/bin
  55. ${INSTALL_BIN} ${WRKINST}/bin/date ${IDIR_DATE}/usr/bin/
  56. include ${TOPDIR}/mk/pkg-bottom.mk