libunwind: update to 1.8.1
[openadk.git] / package / tzdata / Makefile
bloba1e7de77be4fb6bbd8e29c5d12af463a660c8f89
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= tzdata
7 PKG_VERSION:= 2021e
8 PKG_RELEASE:= 1
9 PKG_HASH:= 07ec42b737d0d3c6be9c337f8abb5f00554a0f9cc4fcf01a703d69403b6bb2b1 584666393a5424d13d27ec01183da17703273664742e049d4f62f62dab631775
10 PKG_DESCR:= timezone data (/usr/share/zoneinfo)
11 PKG_SECTION:= base/apps
12 PKG_URL:= http://www.iana.org/time-zones/
13 PKG_SITES:= http://www.iana.org/time-zones/repository/releases/
14 PKG_NOPARALLEL:= 1
16 PKG_LIBC_DEPENDS:= glibc musl
18 DISTFILES:= ${PKG_NAME}${PKG_VERSION}.tar.gz tzcode${PKG_VERSION}.tar.gz
19 # both archives do not extract into subdirectories
20 WRKDIST= ${WRKDIR}
22 # no use for tzselect, since that is a ksh-script
23 PKG_SUBPKGS:= TZDATA DATE
24 PKGSD_DATE:= famous date utility
26 include $(ADK_TOPDIR)/mk/package.mk
28 $(eval $(call PKG_template,TZDATA,tzdata,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
29 $(eval $(call PKG_template,DATE,date,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_DATE},${PKG_SECTION}))
31 CONFIG_STYLE:= manual
32 HOST_CFLAGS+= -DSTD_INSPIRED=1 -DHAVE_STDINT_H=1
33 TARGET_CFLAGS+= -DHAVE_INTTYPES_H=1
34 XAKE_FLAGS+= TZDIR="/usr/share/zoneinfo" cc="${TARGET_CC}"
35 # the uppercase targets enable building and installation of the date utility
36 ALL_TARGET:= ALL
37 INSTALL_TARGET:= INSTALL
39 tzdata-install:
40 $(INSTALL_DIR) $(IDIR_TZDATA)/usr/share/zoneinfo $(IDIR_TZDATA)/etc
41 cd ${WRKINST} && for f in UTC ${ADK_RUNTIME_TIMEZONE}; do \
42 test -s usr/share/zoneinfo/"$$f" || continue; \
43 echo usr/share/zoneinfo/"$$f" | \
44 $(CPIO) --quiet -pdu ${IDIR_TZDATA}/; \
45 done
46 tz=; cd $(IDIR_TZDATA)/usr/share/zoneinfo || exit 1; \
47 for f in UTC ${ADK_RUNTIME_TIMEZONE}; do \
48 test -s "$$f" || continue; \
49 tz=$$f; \
50 done; if test x"$$tz" = x""; then \
51 echo >&2 Error during timezone installation; \
52 exit 1; \
53 else \
54 ln -sf "../usr/share/zoneinfo/$$tz" \
55 $(IDIR_TZDATA)/etc/localtime; \
56 fi
58 date-install:
59 ${INSTALL_DIR} ${IDIR_DATE}/usr/bin
60 ${INSTALL_BIN} ${WRKINST}/usr/bin/date ${IDIR_DATE}/usr/bin/
62 include ${ADK_TOPDIR}/mk/pkg-bottom.mk