aboutsummaryrefslogtreecommitdiff
path: root/package/tzdump
diff options
context:
space:
mode:
authorGravatar Alexandre Belloni <alexandre.belloni@free-electrons.com>2014-04-07 21:58:06 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-04-09 00:25:19 +0200
commit75622c75fa6ea1309419d805f23c6f1fba5919f1 (patch)
tree31f310cfb90e126334e35b574e2f1285adc96d84 /package/tzdump
parent56af48791726c256c2acbe9aa7c499dc05abbea8 (diff)
downloadbuildroot-75622c75fa6ea1309419d805f23c6f1fba5919f1.tar.gz
buildroot-75622c75fa6ea1309419d805f23c6f1fba5919f1.tar.bz2
tzdump: new host package
tzdump takes timezone info in the installed tzdata format, and outputs timezone info parseable by uClibc. [Peter: adjust host-zip dep, simplify build/install, use INSTALL variable] 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: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/tzdump')
-rw-r--r--package/tzdump/tzdump.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/tzdump/tzdump.mk b/package/tzdump/tzdump.mk
new file mode 100644
index 0000000000..3f035a56cb
--- /dev/null
+++ b/package/tzdump/tzdump.mk
@@ -0,0 +1,21 @@
+################################################################################
+#
+# tzdump
+#
+################################################################################
+
+TZDUMP_VERSION = 65a10105564801094b18c3fcacf4dde4c44e4ab8
+TZDUMP_SITE = $(call github,alexandrebelloni,tzdump,$(TZDUMP_VERSION))
+HOST_TZDUMP_DEPENDENCIES = host-zic
+
+define HOST_TZDUMP_BUILD_CMDS
+ cd $(@D) && $(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o tzdump tzdump.c
+endef
+
+define HOST_TZDUMP_INSTALL_CMDS
+ $(INSTALL) -m 0755 -D $(@D)/tzdump $(HOST_DIR)/usr/sbin/tzdump
+endef
+
+$(eval $(host-generic-package))
+
+TZDUMP = $(HOST_DIR)/usr/sbin/tzdump