2013-03-21 17:43:46 +00:00
|
|
|
# Created by: Dmitry Sivachenko <dima@Chg.RU>
|
1999-08-30 14:24:37 +00:00
|
|
|
# $FreeBSD$
|
1999-08-22 08:41:12 +00:00
|
|
|
|
2000-04-09 18:14:07 +00:00
|
|
|
PORTNAME= rrdtool
|
2012-05-07 18:51:01 +00:00
|
|
|
PORTVERSION= 1.4.7
|
2012-06-01 05:26:28 +00:00
|
|
|
PORTREVISION= 2
|
2007-07-05 06:19:49 +00:00
|
|
|
CATEGORIES= databases graphics
|
2007-01-31 14:12:40 +00:00
|
|
|
MASTER_SITES= http://oss.oetiker.ch/rrdtool/pub/
|
1999-08-22 08:41:12 +00:00
|
|
|
|
2010-04-26 01:10:12 +00:00
|
|
|
MAINTAINER= sylvio@FreeBSD.org
|
2003-02-22 09:13:13 +00:00
|
|
|
COMMENT= Round Robin Database Tools
|
1999-08-22 08:41:12 +00:00
|
|
|
|
2012-05-07 18:51:01 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2005-12-19 11:12:04 +00:00
|
|
|
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
|
2008-06-24 12:33:24 +00:00
|
|
|
cairo.2:${PORTSDIR}/graphics/cairo \
|
2012-06-01 05:26:28 +00:00
|
|
|
png15:${PORTSDIR}/graphics/png \
|
2010-07-25 01:14:14 +00:00
|
|
|
xml2:${PORTSDIR}/textproc/libxml2 \
|
2008-06-24 12:33:24 +00:00
|
|
|
pangocairo-1\.0.0:${PORTSDIR}/x11-toolkits/pango
|
1999-08-22 08:41:12 +00:00
|
|
|
|
2010-02-12 12:58:21 +00:00
|
|
|
CONFLICTS= rrdtool-1.0* rrdtool-1.2*
|
2008-06-14 02:19:55 +00:00
|
|
|
|
2011-05-19 19:41:17 +00:00
|
|
|
USE_RC_SUBR= rrdcached
|
2010-12-04 07:34:27 +00:00
|
|
|
USE_AUTOTOOLS= libtool
|
2007-02-07 09:40:25 +00:00
|
|
|
USE_LDCONFIG= yes
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2005-05-08 20:56:09 +00:00
|
|
|
USE_GMAKE= yes
|
2007-10-07 05:45:04 +00:00
|
|
|
WANT_PERL= yes
|
2009-07-05 23:41:10 +00:00
|
|
|
USE_GNOME= gnomehack intltool
|
2007-02-07 09:40:25 +00:00
|
|
|
|
2007-07-15 21:49:57 +00:00
|
|
|
CONFIGURE_ARGS= --disable-tcl
|
2007-02-07 09:40:25 +00:00
|
|
|
|
2008-09-23 00:10:24 +00:00
|
|
|
PORTDOCS= *
|
2010-04-26 22:47:08 +00:00
|
|
|
PORTEXAMPLES= 4charts.pl bigtops.pl cgi-demo.cgi minmax.pl perftest.pl \
|
|
|
|
piped-demo.pl shared-demo.pl stripes.pl
|
2008-09-23 00:10:24 +00:00
|
|
|
|
2013-03-21 17:43:46 +00: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 09:40:25 +00:00
|
|
|
|
2009-11-21 11:12:37 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2009-01-07 14:49:49 +00:00
|
|
|
|
2013-03-21 17:43:46 +00:00
|
|
|
.if ${PORT_OPTIONS:MPYTHON_MODULE}
|
2007-02-07 09:40:25 +00:00
|
|
|
USE_PYTHON= yes
|
2009-02-18 00:55:42 +00:00
|
|
|
INSTALLS_EGGINFO=yes
|
|
|
|
PYDISTUTILS_EGGINFO=py_rrdtool-0.2.1-${PYTHON_VERSION:S/thon//}.egg-info
|
2007-02-07 09:40:25 +00: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 17:43:46 +00:00
|
|
|
.if ${PORT_OPTIONS:MRUBY_MODULE}
|
2007-05-23 14:15:19 +00: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 17:43:46 +00:00
|
|
|
.if ${PORT_OPTIONS:MPERL_MODULE}
|
2007-07-15 21:49:57 +00: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 17:43:46 +00:00
|
|
|
.if ! ${PORT_OPTIONS:MMMAP}
|
2009-05-04 12:42:16 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-mmap
|
|
|
|
.endif
|
|
|
|
|
2013-03-21 17:43:46 +00:00
|
|
|
.if ${PORT_OPTIONS:MJSON}
|
2011-01-13 19:16:10 +00:00
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/thirdparty-json.diff
|
|
|
|
.endif
|
|
|
|
|
2013-03-21 17:43:46 +00:00
|
|
|
.if exists(${LOCALBASE}/lib/X11/fonts/dejavu) || ${PORT_OPTIONS:MDEJAVU}
|
2009-11-21 11:12:37 +00:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/X11/fonts/dejavu:${PORTSDIR}/x11-fonts/dejavu
|
2009-01-07 14:49:49 +00:00
|
|
|
.endif
|
|
|
|
|
2008-06-24 12:33:24 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2
|
2012-05-11 20:57:25 +00:00
|
|
|
##LDFLAGS+= -L${LOCALBASE}/lib
|
2001-03-28 13:22:15 +00:00
|
|
|
CFLAGS:= ${CFLAGS:N-ffast-math}
|
1999-08-22 08:41:12 +00:00
|
|
|
|
2005-05-08 20:56:09 +00:00
|
|
|
MAN1= bin_dec_hex.1 cdeftutorial.1 rpntutorial.1 rrd-beginners.1 \
|
2010-04-26 22:47:08 +00: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 21:49:57 +00:00
|
|
|
|
2013-03-21 17:43:46 +00:00
|
|
|
.if ${PORT_OPTIONS:MPERL_MODULE}
|
1999-09-11 00:55:52 +00:00
|
|
|
MAN3= RRDp.3 RRDs.3
|
2007-08-04 11:41:30 +00:00
|
|
|
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
2007-07-15 21:49:57 +00:00
|
|
|
.endif
|
1999-08-22 08:41:12 +00:00
|
|
|
|
2005-03-17 09:58:57 +00:00
|
|
|
post-extract:
|
2010-02-12 12:58:21 +00:00
|
|
|
@${REINPLACE_CMD} -e 's/^POD3/#POD3/' ${WRKSRC}/doc/Makefile.in
|
2013-03-21 17:43:46 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2010-03-07 23:16:12 +00: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 09:58:57 +00:00
|
|
|
${WRKSRC}/doc/Makefile.in
|
2003-10-29 08:56:29 +00:00
|
|
|
.endif
|
2013-03-22 20:25:24 +00:00
|
|
|
.if ! ${PORT_OPTIONS:MEXAMPLES}
|
2010-03-07 23:16:12 +00:00
|
|
|
${REINPLACE_CMD} -e '/^SUBDIRS = /s| examples | |' \
|
2008-09-23 00:10:24 +00:00
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
2003-10-29 08:56:29 +00:00
|
|
|
|
1999-08-22 08:41:12 +00:00
|
|
|
post-install:
|
2013-03-21 17:43:46 +00:00
|
|
|
.if !defined(BATCH) && ${PORT_OPTIONS:MEXAMPLES}
|
2003-10-29 08:56:29 +00:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "############################################################################"
|
2010-04-26 22:47:08 +00:00
|
|
|
@${ECHO_MSG} "# See ${EXAMPLESDIR} for some demonstration code #"
|
2003-10-29 08:56:29 +00:00
|
|
|
@${ECHO_MSG} "############################################################################"
|
1999-08-22 08:41:12 +00:00
|
|
|
.endif
|
|
|
|
|
2009-11-21 11:12:37 +00:00
|
|
|
.include <bsd.port.mk>
|