# $Id: Portfile 75328 2011-01-21 21:46:12Z and.damore@macports.org $

PortSystem	1.0

name			rrdtool
version			1.4.4
revision                1
categories		net
maintainers		markd
description		Round Robin Database
long_description	RRDtool is a system to store and display time-series data
homepage		http://oss.oetiker.ch/rrdtool/
platforms		darwin
master_sites		${homepage}pub/
checksums		md5 93ad2fc2e9ddcd7d99c611fe30284a54

depends_build   port:pkgconfig
depends_lib		port:expat \
			path:lib/pkgconfig/glib-2.0.pc:glib2 \
			port:libiconv \
			port:gettext \
			path:lib/pkgconfig/pango.pc:pango \
			path:bin/perl:perl5 \
			port:tcl \
			port:zlib \
			port:libpng \
			port:libxml2 \
			port:intltool

patchfiles      patch-bindings_lua_Makefile_in.diff

configure.args		--enable-perl-site-install \
			--with-perl-options="INSTALLDIRS=vendor" \
			--with-tcllib=${prefix}/lib \
			--disable-python \
			--disable-ruby \
			--mandir=${prefix}/share/man \
			--disable-tcl

configure.cppflags-append \
			-I${prefix}/include/freetype2 \
			-I${prefix}/include/libpng14

build.type		gnu

variant python description {Python bindings for RRDtool} {
	depends_lib-append	port:python24
	configure.args-delete	--disable-python
	configure.args-append	--enable-python
}

post-install {
		ui_msg "\nSee ${prefix}/share/doc/rrdtool for example code\n"
}
