2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-07 12:53:40 +01:00
|
|
|
#
|
|
|
|
# zic
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-07 12:53:40 +01:00
|
|
|
|
2013-12-26 03:51:27 +01:00
|
|
|
ZIC_VERSION = 2013i
|
2013-03-07 12:53:40 +01:00
|
|
|
ZIC_SOURCE = tzcode$(ZIC_VERSION).tar.gz
|
2013-06-29 02:09:10 +02:00
|
|
|
ZIC_SITE = ftp://ftp.iana.org/tz/releases
|
2013-03-07 12:53:40 +01:00
|
|
|
ZIC_LICENSE = Public domain
|
|
|
|
|
|
|
|
# Don't strip any path components during extraction.
|
|
|
|
define HOST_ZIC_EXTRACT_CMDS
|
|
|
|
gzip -d -c $(DL_DIR)/$(ZIC_SOURCE) \
|
|
|
|
| $(TAR) --strip-components=0 -C $(@D) -xf -
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_ZIC_BUILD_CMDS
|
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) zic
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_ZIC_INSTALL_CMDS
|
2014-03-03 23:10:23 +01:00
|
|
|
$(INSTALL) -D -m 755 $(@D)/zic $(HOST_DIR)/usr/sbin/zic
|
|
|
|
$(INSTALL) -D -m 644 $(@D)/tzfile.h $(HOST_DIR)/usr/include/tzfile.h
|
2013-03-07 12:53:40 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(host-generic-package))
|
|
|
|
|
|
|
|
ZIC = $(HOST_DIR)/usr/sbin/zic
|