summaryrefslogtreecommitdiffstats
path: root/rules/rrdtool.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2011-06-22 22:52:32 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-06-23 00:01:45 +0200
commit010ee00573267b7946283ce85a7593891d9d92b3 (patch)
tree0b38dc6deec390b799fa3f6e3bafe08c28230b70 /rules/rrdtool.make
parentac826e87db56f6b6ce51f0963687dddb35c679a8 (diff)
downloadptxdist-010ee00573267b7946283ce85a7593891d9d92b3.tar.gz
ptxdist-010ee00573267b7946283ce85a7593891d9d92b3.tar.xz
rrdtool: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/rrdtool.make')
-rw-r--r--rules/rrdtool.make101
1 files changed, 101 insertions, 0 deletions
diff --git a/rules/rrdtool.make b/rules/rrdtool.make
new file mode 100644
index 000000000..70a199809
--- /dev/null
+++ b/rules/rrdtool.make
@@ -0,0 +1,101 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2011 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_RRDTOOL) += rrdtool
+
+#
+# Paths and names
+#
+RRDTOOL_VERSION := 1.4.5
+RRDTOOL_MD5 := 4d116dba9a0888d8aaac179e35d3980a
+RRDTOOL := rrdtool-$(RRDTOOL_VERSION)
+RRDTOOL_SUFFIX := tar.gz
+RRDTOOL_URL := http://oss.oetiker.ch/rrdtool/pub/$(RRDTOOL).$(RRDTOOL_SUFFIX)
+RRDTOOL_SOURCE := $(SRCDIR)/$(RRDTOOL).$(RRDTOOL_SUFFIX)
+RRDTOOL_DIR := $(BUILDDIR)/$(RRDTOOL)
+RRDTOOL_LICENSE := GPLv2+
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+RRDTOOL_CONF_ENV := \
+ $(CROSS_ENV) \
+ rd_cv_ieee_works=yes \
+ rd_cv_ms_async=ok \
+ rd_cv_null_realloc=yes
+#
+# autoconf
+#
+RRDTOOL_CONF_TOOL := autoconf
+RRDTOOL_CONF_OPT := \
+ $(CROSS_AUTOCONF_USR) \
+ --$(call ptx/endis, PTXCONF_RRDTOOL_RRDCGI)-rrdcgi \
+ --enable-mmap \
+ --enable-pthread \
+ --disable-static-programs \
+ --enable-shared \
+ --disable-static \
+ --enable-fast-install \
+ --disable-nls \
+ --disable-rpath \
+ --disable-libdbi \
+ --$(call ptx/endis, PTXCONF_RRDTOOL_WRAP)-libwrap \
+ --disable-perl \
+ --disable-ruby \
+ --disable-lua \
+ --disable-tcl \
+ --disable-python \
+ --without-libiconv-prefix \
+ --without-libintl-prefix
+
+ifneq ($(call remove_quotes,$(PTXCONF_RRDTOOL_DEFAULT_FONT)),)
+RRDTOOL_CONF_OPT += --with-rrd-default-font=$(PTXCONF_RRDTOOL_DEFAULT_FONT)
+endif
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/rrdtool.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, rrdtool)
+ @$(call install_fixup, rrdtool,PRIORITY,optional)
+ @$(call install_fixup, rrdtool,SECTION,base)
+ @$(call install_fixup, rrdtool,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
+ @$(call install_fixup, rrdtool,DESCRIPTION,missing)
+
+ifdef PTXCONF_RRDTOOL_RRDCACHED
+ @$(call install_copy, rrdtool, 0, 0, 0755, -, /usr/bin/rrdcached)
+endif
+ifdef PTXCONF_RRDTOOL_RRDCGI
+ @$(call install_copy, rrdtool, 0, 0, 0755, -, /usr/bin/rrdcgi)
+endif
+ifdef PTXCONF_RRDTOOL_RRDTOOL
+ @$(call install_copy, rrdtool, 0, 0, 0755, -, /usr/bin/rrdtool)
+endif
+ifdef PTXCONF_RRDTOOL_RRDUPDATE
+ @$(call install_copy, rrdtool, 0, 0, 0755, -, /usr/bin/rrdupdate)
+endif
+
+ @$(call install_lib, rrdtool, 0, 0, 0644, librrd)
+ifdef PTXCONF_RRDTOOL_RRDCACHED
+ @$(call install_lib, rrdtool, 0, 0, 0644, librrd_th)
+endif
+
+ @$(call install_finish, rrdtool)
+
+ @$(call touch)
+
+# vim: syntax=make