kumquat-buildroot/package/zic/zic.mk
Yann E. MORIN 5c053979d4 package/zic: install header
The incoming host-tzdump package requires the tzfile header,
so we isntall it.

[Thomas: remove mkdir -p, unneeded because of the use of install -D,
and change install to $(INSTALL), like we do in all other packages.]

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
[yann.morin.1998@free.fr: split zic header-install to its own cset]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-03-07 23:38:40 +01:00

30 lines
779 B
Makefile

################################################################################
#
# zic
#
################################################################################
ZIC_VERSION = 2013i
ZIC_SOURCE = tzcode$(ZIC_VERSION).tar.gz
ZIC_SITE = ftp://ftp.iana.org/tz/releases
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
$(INSTALL) -D -m 755 $(@D)/zic $(HOST_DIR)/usr/sbin/zic
$(INSTALL) -D -m 644 $(@D)/tzfile.h $(HOST_DIR)/usr/include/tzfile.h
endef
$(eval $(host-generic-package))
ZIC = $(HOST_DIR)/usr/sbin/zic