summaryrefslogtreecommitdiffstats
path: root/package/rrdtool/rrdtool.mk
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2010-06-23 17:22:16 -0300
committerPeter Korsgaard <jacmet@sunsite.dk>2010-10-08 09:20:57 +0200
commit5d73b07ee731a890e13b00b529f74b093d5ca8d4 (patch)
tree51b0d280d9ce955bd347aa5865d7d315cb5c3c28 /package/rrdtool/rrdtool.mk
parent0201ffcd16247dea9c58d2e611a4c2d96f07eff2 (diff)
downloadbuildroot-novena-5d73b07ee731a890e13b00b529f74b093d5ca8d4.tar.gz
buildroot-novena-5d73b07ee731a890e13b00b529f74b093d5ca8d4.zip
package: Add rrdtool package
[Peter: use hook to remove examples] Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/rrdtool/rrdtool.mk')
-rw-r--r--package/rrdtool/rrdtool.mk28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/rrdtool/rrdtool.mk b/package/rrdtool/rrdtool.mk
new file mode 100644
index 000000000..80789c665
--- /dev/null
+++ b/package/rrdtool/rrdtool.mk
@@ -0,0 +1,28 @@
+#############################################################
+#
+# rrdtool
+#
+#############################################################
+
+RRDTOOL_VERSION = 1.2.30
+RRDTOOL_SITE = http://oss.oetiker.ch/rrdtool/pub
+RRDTOOL_DEPENDENCIES = host-pkg-config freetype libart libpng zlib
+RRDTOOL_INSTALL_STAGING = YES
+RRDTOOL_CONF_ENV = rd_cv_ieee_works=yes rd_cv_null_realloc=nope \
+ ac_cv_func_mmap_fixed_mapped=yes
+RRDTOOL_CONF_OPT = --disable-perl --disable-python --disable-ruby \
+ --disable-tcl --program-transform-name=''
+
+define RRDTOOL_REMOVE_EXAMPLES
+ rm -rf $(TARGET_DIR)/usr/share/rrdtool/examples
+endef
+
+RRDTOOL_POST_INSTALL_TARGET_HOOKS += RRDTOOL_REMOVE_EXAMPLES
+
+define RRDTOOL_UNINSTALL_TARGET_CMDS
+ $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) uninstall
+ rm -rf $(TARGET_DIR)/usr/share/rrdtool
+ rm -f $(TARGET_DIR)/usr/lib/librrd*
+endef
+
+$(eval $(call AUTOTARGETS,package,rrdtool))