2013-03-21 18:43:46 +01:00
|
|
|
# Created by: Dmitry Sivachenko <dima@Chg.RU>
|
1999-08-30 16:24:37 +02:00
|
|
|
# $FreeBSD$
|
1999-08-22 10:41:12 +02:00
|
|
|
|
2000-04-09 20:14:07 +02:00
|
|
|
PORTNAME= rrdtool
|
2012-05-07 20:51:01 +02:00
|
|
|
PORTVERSION= 1.4.7
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 2
|
2007-07-05 08:19:49 +02:00
|
|
|
CATEGORIES= databases graphics
|
2007-01-31 15:12:40 +01:00
|
|
|
MASTER_SITES= http://oss.oetiker.ch/rrdtool/pub/
|
1999-08-22 10:41:12 +02:00
|
|
|
|
2010-04-26 03:10:12 +02:00
|
|
|
MAINTAINER= sylvio@FreeBSD.org
|
2003-02-22 10:13:13 +01:00
|
|
|
COMMENT= Round Robin Database Tools
|
1999-08-22 10:41:12 +02:00
|
|
|
|
2012-05-07 20:51:01 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2005-12-19 12:12:04 +01:00
|
|
|
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
|
2008-06-24 14:33:24 +02:00
|
|
|
cairo.2:${PORTSDIR}/graphics/cairo \
|
2012-06-01 07:26:28 +02:00
|
|
|
png15:${PORTSDIR}/graphics/png \
|
2010-07-25 03:14:14 +02:00
|
|
|
xml2:${PORTSDIR}/textproc/libxml2 \
|
2008-06-24 14:33:24 +02:00
|
|
|
pangocairo-1\.0.0:${PORTSDIR}/x11-toolkits/pango
|
1999-08-22 10:41:12 +02:00
|
|
|
|
2010-02-12 13:58:21 +01:00
|
|
|
CONFLICTS= rrdtool-1.0* rrdtool-1.2*
|
2008-06-14 04:19:55 +02:00
|
|
|
|
2011-05-19 21:41:17 +02:00
|
|
|
USE_RC_SUBR= rrdcached
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2007-02-07 10:40:25 +01:00
|
|
|
USE_LDCONFIG= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-05-08 22:56:09 +02:00
|
|
|
USE_GMAKE= yes
|
2007-10-07 07:45:04 +02:00
|
|
|
WANT_PERL= yes
|
2009-07-06 01:41:10 +02:00
|
|
|
USE_GNOME= gnomehack intltool
|
2007-02-07 10:40:25 +01:00
|
|
|
|
2007-07-15 23:49:57 +02:00
|
|
|
CONFIGURE_ARGS= --disable-tcl
|
2007-02-07 10:40:25 +01:00
|
|
|
|
2008-09-23 02:10:24 +02:00
|
|
|
PORTDOCS= *
|
2010-04-27 00:47:08 +02:00
|
|
|
PORTEXAMPLES= 4charts.pl bigtops.pl cgi-demo.cgi minmax.pl perftest.pl \
|
|
|
|
piped-demo.pl shared-demo.pl stripes.pl
|
2008-09-23 02:10:24 +02:00
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
OPTIONS_DEFINE= DEJAVU JSON MMAP PERL_MODULE PYTHON_MODULE RUBY_MODULE EXAMPLES DOCS
|
|
|
|
OPTIONS_DEFAULT= MMAP PERL_MODULE
|
|
|
|
DEJAVU_DESC= Use DejaVu fonts (requires X11)
|
|
|
|
JSON_DESC= Support of json export
|
|
|
|
MMAP_DESC= Use mmap in rrd_update
|
|
|
|
PERL_MODULE_DESC= Build PERL module
|
|
|
|
PYTHON_MODULE_DESC= Build PYTHON bindings
|
|
|
|
RUBY_MODULE_DESC= Build RUBY bindings
|
2007-02-07 10:40:25 +01:00
|
|
|
|
2009-11-21 12:12:37 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2009-01-07 15:49:49 +01:00
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.if ${PORT_OPTIONS:MPYTHON_MODULE}
|
2007-02-07 10:40:25 +01:00
|
|
|
USE_PYTHON= yes
|
2009-02-18 01:55:42 +01:00
|
|
|
INSTALLS_EGGINFO=yes
|
|
|
|
PYDISTUTILS_EGGINFO=py_rrdtool-0.2.1-${PYTHON_VERSION:S/thon//}.egg-info
|
2007-02-07 10:40:25 +01:00
|
|
|
.include "${PORTSDIR}/Mk/bsd.python.mk"
|
|
|
|
PLIST_SUB+= WITH_PYTHON=""
|
|
|
|
CONFIGURE_ARGS+= --enable-python
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-python
|
|
|
|
PLIST_SUB+= WITH_PYTHON="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.if ${PORT_OPTIONS:MRUBY_MODULE}
|
2007-05-23 16:15:19 +02:00
|
|
|
USE_RUBY= yes
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
|
|
|
|
PLIST_SUB+= WITH_RUBY=""
|
|
|
|
CONFIGURE_ARGS+= --enable-ruby
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ruby
|
|
|
|
PLIST_SUB+= WITH_RUBY="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.if ${PORT_OPTIONS:MPERL_MODULE}
|
2007-07-15 23:49:57 +02:00
|
|
|
USE_PERL5= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-perl --enable-perl-site-install
|
|
|
|
PLIST_SUB+= WITH_PERL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-perl
|
|
|
|
PLIST_SUB+= WITH_PERL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MMMAP}
|
2009-05-04 14:42:16 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-mmap
|
|
|
|
.endif
|
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.if ${PORT_OPTIONS:MJSON}
|
2011-01-13 20:16:10 +01:00
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/thirdparty-json.diff
|
|
|
|
.endif
|
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.if exists(${LOCALBASE}/lib/X11/fonts/dejavu) || ${PORT_OPTIONS:MDEJAVU}
|
2009-11-21 12:12:37 +01:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/X11/fonts/dejavu:${PORTSDIR}/x11-fonts/dejavu
|
2009-01-07 15:49:49 +01:00
|
|
|
.endif
|
|
|
|
|
2008-06-24 14:33:24 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2
|
2012-05-11 22:57:25 +02:00
|
|
|
##LDFLAGS+= -L${LOCALBASE}/lib
|
2001-03-28 15:22:15 +02:00
|
|
|
CFLAGS:= ${CFLAGS:N-ffast-math}
|
1999-08-22 10:41:12 +02:00
|
|
|
|
2005-05-08 22:56:09 +02:00
|
|
|
MAN1= bin_dec_hex.1 cdeftutorial.1 rpntutorial.1 rrd-beginners.1 \
|
2010-04-27 00:47:08 +02:00
|
|
|
rrdbuild.1 rrdcached.1 rrdcgi.1 rrdcreate.1 rrddump.1 \
|
|
|
|
rrdfetch.1 rrdfirst.1 rrdflushcached.1 rrdgraph.1 \
|
|
|
|
rrdgraph_data.1 rrdgraph_examples.1 rrdgraph_graph.1 \
|
|
|
|
rrdgraph_rpn.1 rrdinfo.1 rrdlast.1 rrdlastupdate.1 \
|
|
|
|
rrdresize.1 rrdrestore.1 rrdthreads.1 rrdtool.1 rrdtune.1 \
|
|
|
|
rrdtutorial.1 rrdupdate.1 rrdxport.1
|
2007-07-15 23:49:57 +02:00
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.if ${PORT_OPTIONS:MPERL_MODULE}
|
1999-09-11 02:55:52 +02:00
|
|
|
MAN3= RRDp.3 RRDs.3
|
2007-08-04 13:41:30 +02:00
|
|
|
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
2007-07-15 23:49:57 +02:00
|
|
|
.endif
|
1999-08-22 10:41:12 +02:00
|
|
|
|
2005-03-17 10:58:57 +01:00
|
|
|
post-extract:
|
2010-02-12 13:58:21 +01:00
|
|
|
@${REINPLACE_CMD} -e 's/^POD3/#POD3/' ${WRKSRC}/doc/Makefile.in
|
2013-03-21 18:43:46 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2010-03-08 00:16:12 +01:00
|
|
|
@${REINPLACE_CMD} -e 's/[[:space:]]install-idocDATA//g' \
|
|
|
|
-e 's/[[:space:]]install-ihtmlDATA//g' \
|
|
|
|
-e 's/^[[:space:]].*cd .* rrdtool.html index.html/ #/' \
|
2005-03-17 10:58:57 +01:00
|
|
|
${WRKSRC}/doc/Makefile.in
|
2003-10-29 09:56:29 +01:00
|
|
|
.endif
|
2013-03-22 21:25:24 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MEXAMPLES}
|
2010-03-08 00:16:12 +01:00
|
|
|
${REINPLACE_CMD} -e '/^SUBDIRS = /s| examples | |' \
|
2008-09-23 02:10:24 +02:00
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
2003-10-29 09:56:29 +01:00
|
|
|
|
1999-08-22 10:41:12 +02:00
|
|
|
post-install:
|
2013-03-21 18:43:46 +01:00
|
|
|
.if !defined(BATCH) && ${PORT_OPTIONS:MEXAMPLES}
|
2003-10-29 09:56:29 +01:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "############################################################################"
|
2010-04-27 00:47:08 +02:00
|
|
|
@${ECHO_MSG} "# See ${EXAMPLESDIR} for some demonstration code #"
|
2003-10-29 09:56:29 +01:00
|
|
|
@${ECHO_MSG} "############################################################################"
|
1999-08-22 10:41:12 +02:00
|
|
|
.endif
|
|
|
|
|
2009-11-21 12:12:37 +01:00
|
|
|
.include <bsd.port.mk>
|