2 # Copyright (C) 2007-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # Author: Michael Geddes
9 include $(TOPDIR
)/rules.mk
13 PKG_VERSION_CODE
:=2016i
16 #As i couldn't find real license used "Public Domain"
17 #as referense to http://www.iana.org/time-zones/repository/tz-link.html
18 PKG_LICENSE
:=Public Domain
20 PKG_SOURCE
:=tzdata
$(PKG_VERSION
).
tar.gz
21 PKG_SOURCE_CODE
:=tzcode
$(PKG_VERSION_CODE
).
tar.gz
22 PKG_SOURCE_URL
:=http
://www.iana.org
/time-zones
/repository
/releases
23 PKG_MD5SUM
:=73912ecfa6a9a8048ddf2e719d9bc39d
25 include $(INCLUDE_DIR
)/package.mk
27 define Download
/tzcode
28 FILE
=$(PKG_SOURCE_CODE
)
30 MD5SUM
:=8fae14cba9396462955b7859cf04ba48
33 $(eval
$(call Download
,tzcode
))
35 define Package
/zoneinfo
/Default
37 TITLE
:=Zone Information
40 MAINTAINER
:=Vladimir Ulrich
<admin@evl.su
>
43 define Package
/zoneinfo-core
44 $(call Package
/zoneinfo
/Default
)
45 TITLE
:=Zone Information
(core
)
48 define Package
/zoneinfo-simple
49 $(call Package
/zoneinfo
/Default
)
50 TITLE
:=Zone Information
(simple
)
53 define Package
/zoneinfo-africa
54 $(call Package
/zoneinfo
/Default
)
55 TITLE
:=Zone Information
(Africa
)
58 define Package
/zoneinfo-northamerica
59 $(call Package
/zoneinfo
/Default
)
60 TITLE
:=Zone Information
(NorthAmerica
)
63 define Package
/zoneinfo-southamerica
64 $(call Package
/zoneinfo
/Default
)
65 TITLE
:=Zone Information
(SouthAmerica
)
68 define Package
/zoneinfo-poles
69 $(call Package
/zoneinfo
/Default
)
70 TITLE
:=Zone Information
(Arctic
, Antarctic
)
73 define Package
/zoneinfo-asia
74 $(call Package
/zoneinfo
/Default
)
75 TITLE
:=Zone Information
(Asia
)
78 define Package
/zoneinfo-atlantic
79 $(call Package
/zoneinfo
/Default
)
80 TITLE
:=Zone Information
(Atlantic
)
83 define Package
/zoneinfo-australia-nz
84 $(call Package
/zoneinfo
/Default
)
85 TITLE
:=Zone Information
(Australia-NZ
)
88 define Package
/zoneinfo-pacific
89 $(call Package
/zoneinfo
/Default
)
90 TITLE
:=Zone Information
(Pacific
)
93 define Package
/zoneinfo-europe
94 $(call Package
/zoneinfo
/Default
)
95 TITLE
:=Zone Information
(Europe
)
98 define Package
/zoneinfo-india
99 $(call Package
/zoneinfo
/Default
)
100 TITLE
:=Zone Information
(India
)
104 (cd
$(PKG_BUILD_DIR
) && tar -xzf
$(DL_DIR
)/$(PKG_SOURCE_CODE
) && tar -xzf
$(DL_DIR
)/$(PKG_SOURCE
))
108 CFLAGS
="$(HOST_CFLAGS)" \
109 $(MAKE
) -C
$(PKG_BUILD_DIR
) -f Makefile \
110 $(HOST_CONFIGURE_OPTS
) \
113 CPPFLAGS
="$(HOST_CPPFLAGS)" \
114 LDFLAGS
="$(HOST_LDFLAGS)" \
115 TOPDIR
="$(PKG_INSTALL_DIR)" \
116 TZDIR
="$(PKG_INSTALL_DIR)/zoneinfo" \
120 define Package
/zoneinfo-core
/install
121 $(INSTALL_DIR
) $(1)/usr
/share
/zoneinfo
123 CET CST6CDT EET EST EST5EDT GB-Eire Eire \
124 GB GMT GMT
+0 GMT-0 GMT0 Greenwich \
125 HST MET MST MST7MDT \
126 PRC PST8PDT ROC ROK UCT UTC \
127 Universal W-SU WET Zulu Etc
/* zone.tab
; do \
128 $(CP
) $(PKG_INSTALL_DIR
)/zoneinfo
/$$$$i \
129 $(1)/usr
/share
/zoneinfo
; \
133 define Package
/zoneinfo-simple
/install
134 $(INSTALL_DIR
) $(1)/usr
/share
/zoneinfo
135 for i in Pacific
/Honolulu \
136 America
/Anchorage America
/Los_Angeles America
/Denver \
137 America
/Chicago America
/New_York America
/Caracas \
138 America
/Sao_Paulo Europe
/London Europe
/Paris \
139 Africa
/Cairo Europe
/Moscow Asia
/Dubai \
140 Asia
/Karachi Asia
/Dhaka Asia
/Bankok \
141 Asia
/Hong_Kong Asia
/Tokyo Australia
/Darwin \
142 Australia
/Adelaide Australia
/Brisbane Australia
/Sydney \
143 Australia
/Perth Pacific
/Noumea
; do \
144 $(CP
) $(PKG_INSTALL_DIR
)/zoneinfo
/$$$$i \
145 $(1)/usr
/share
/zoneinfo
; \
149 define Package
/zoneinfo-africa
/install
150 $(INSTALL_DIR
) $(1)/usr
/share
/zoneinfo
/Africa
151 $(CP
) $(PKG_INSTALL_DIR
)/zoneinfo
/Africa
/* \
152 $(1)/usr
/share
/zoneinfo
/Africa
155 define Package
/zoneinfo-northamerica
/install
156 $(INSTALL_DIR
) $(1)/usr
/share
/zoneinfo
157 for i in US America Canada Mexico Cuba Jamaica Navajo
; do \
158 $(CP
) $(PKG_INSTALL_DIR
)/zoneinfo
/$$$$i \
159 $(1)/usr
/share
/zoneinfo
; \
161 rm -rf
$(1)/usr
/share
/zoneinfo
/America
/Argentina
164 define Package
/zoneinfo-southamerica
/install
165 $(INSTALL_DIR
) $(1)/usr
/share
/zoneinfo
166 for i in Brazil Chile
; do \
167 $(CP
) $(PKG_INSTALL_DIR
)/zoneinfo
/$$$$i \
168 $(1)/usr
/share
/zoneinfo
; \
170 $(INSTALL_DIR
) $(1)/usr
/share
/zoneinfo
/America
/Argentina
171 $(CP
) $(PKG_INSTALL_DIR
)/zoneinfo
/America
/Argentina
/* \
172 $(1)/usr
/share
/zoneinfo
/America
/Argentina
175 define Package
/zoneinfo-poles
/install
176 $(INSTALL_DIR
) $(1)/usr
/share
/zoneinfo
177 for i in Antarctica Arctic
; do \
178 $(CP
) $(PKG_INSTALL_DIR
)/zoneinfo
/$$$$i \
179 $(1)/usr
/share
/zoneinfo
; \
183 define Package
/zoneinfo-asia
/install
184 $(INSTALL_DIR
) $(1)/usr
/share
/zoneinfo
185 for i in Asia Japan Singapore Hongkong
; do \
186 $(CP
) $(PKG_INSTALL_DIR
)/zoneinfo
/$$$$i \
187 $(1)/usr
/share
/zoneinfo
; \
191 define Package
/zoneinfo-atlantic
/install
192 $(INSTALL_DIR
) $(1)/usr
/share
/zoneinfo
193 for i in Atlantic Iceland
; do \
194 $(CP
) $(PKG_INSTALL_DIR
)/zoneinfo
/$$$$i \
195 $(1)/usr
/share
/zoneinfo
; \
199 define Package
/zoneinfo-australia-nz
/install
200 $(INSTALL_DIR
) $(1)/usr
/share
/zoneinfo
201 for i in NZ NZ-CHAT Australia
; do \
202 $(CP
) $(PKG_INSTALL_DIR
)/zoneinfo
/$$$$i \
203 $(1)/usr
/share
/zoneinfo
; \
207 define Package
/zoneinfo-pacific
/install
208 $(INSTALL_DIR
) $(1)/usr
/share
/zoneinfo
209 for i in Pacific Kwajalein
; do \
210 $(CP
) $(PKG_INSTALL_DIR
)/zoneinfo
/$$$$i \
211 $(1)/usr
/share
/zoneinfo
; \
215 define Package
/zoneinfo-europe
/install
216 $(INSTALL_DIR
) $(1)/usr
/share
/zoneinfo
217 for i in Europe Portugal Poland
; do \
218 $(CP
) $(PKG_INSTALL_DIR
)/zoneinfo
/$$$$i \
219 $(1)/usr
/share
/zoneinfo
; \
223 define Package
/zoneinfo-india
/install
224 $(INSTALL_DIR
) $(1)/usr
/share
/zoneinfo
225 for i in Indian
; do \
226 $(CP
) $(PKG_INSTALL_DIR
)/zoneinfo
/$$$$i \
227 $(1)/usr
/share
/zoneinfo
; \
231 $(eval
$(call BuildPackage
,zoneinfo-simple
))
232 $(eval
$(call BuildPackage
,zoneinfo-core
))
233 $(eval
$(call BuildPackage
,zoneinfo-africa
))
234 $(eval
$(call BuildPackage
,zoneinfo-northamerica
))
235 $(eval
$(call BuildPackage
,zoneinfo-southamerica
))
236 $(eval
$(call BuildPackage
,zoneinfo-poles
))
237 $(eval
$(call BuildPackage
,zoneinfo-asia
))
238 $(eval
$(call BuildPackage
,zoneinfo-atlantic
))
239 $(eval
$(call BuildPackage
,zoneinfo-australia-nz
))
240 $(eval
$(call BuildPackage
,zoneinfo-pacific
))
241 $(eval
$(call BuildPackage
,zoneinfo-europe
))
242 $(eval
$(call BuildPackage
,zoneinfo-india
))