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
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
/
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
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}))
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
37 INSTALL_TARGET
:= 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}/; \
46 tz
=; cd
$(IDIR_TZDATA
)/usr
/share
/zoneinfo || exit
1; \
47 for f in UTC
${ADK_RUNTIME_TIMEZONE}; do \
48 test -s
"$$f" || continue
; \
50 done
; if
test x
"$$tz" = x
""; then \
51 echo
>&2 Error during timezone installation
; \
54 ln
-sf
"../usr/share/zoneinfo/$$tz" \
55 $(IDIR_TZDATA
)/etc
/localtime
; \
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