1999-08-22 10:41:12 +02:00
|
|
|
# New ports collection makefile for: rrdtool
|
|
|
|
# Date created: 20 July 1999
|
|
|
|
# Whom: 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
|
2008-09-23 02:10:24 +02:00
|
|
|
PORTVERSION= 1.3.3
|
2008-12-12 23:07:40 +01:00
|
|
|
PORTREVISION= 1
|
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
|
|
|
|
2007-07-05 10:23:13 +02:00
|
|
|
MAINTAINER= bg1tpt@gmail.com
|
2003-02-22 10:13:13 +01:00
|
|
|
COMMENT= Round Robin Database Tools
|
1999-08-22 10:41:12 +02:00
|
|
|
|
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 \
|
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
|
|
xml2.5:${PORTSDIR}/textproc/libxml2 \
|
|
|
|
pangocairo-1\.0.0:${PORTSDIR}/x11-toolkits/pango
|
2008-12-12 23:07:40 +01:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/X11/fonts/dejavu:${PORTSDIR}/x11-fonts/dejavu
|
1999-08-22 10:41:12 +02:00
|
|
|
|
2008-06-14 04:19:55 +02:00
|
|
|
CONFLICTS= rrdtool-1.0*
|
|
|
|
|
2007-01-30 00:51:55 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
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
|
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= *
|
|
|
|
PORTEXAMPLES= 4charts.pl bigtops.pl cgi-demo.cgi minmax.pl piped-demo.pl \
|
|
|
|
perftest.pl shared-demo.pl stripes.pl
|
|
|
|
|
2007-05-23 16:15:19 +02:00
|
|
|
OPTIONS= PYTHON_MODULE "Build PYTHON bindings" off \
|
2007-07-15 23:49:57 +02:00
|
|
|
RUBY_MODULE "Build RUBY bindings" off \
|
|
|
|
PERL_MODULE "Build PERL module" on
|
2007-02-07 10:40:25 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_PYTHON_MODULE)
|
|
|
|
USE_PYTHON= yes
|
|
|
|
.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
|
|
|
|
|
2007-05-23 16:15:19 +02:00
|
|
|
.if defined(WITH_RUBY_MODULE)
|
|
|
|
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
|
|
|
|
|
2007-07-15 23:49:57 +02:00
|
|
|
.if !defined(WITHOUT_PERL_MODULE)
|
|
|
|
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
|
|
|
|
|
2008-06-24 14:33:24 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2
|
2004-04-06 09:30:51 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2001-03-28 15:22:15 +02:00
|
|
|
CFLAGS:= ${CFLAGS:N-ffast-math}
|
2005-05-08 22:56:09 +02:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
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 \
|
|
|
|
rrdbuild.1 rrdcgi.1 rrdcreate.1 rrddump.1 rrdfetch.1 rrdfirst.1 \
|
|
|
|
rrdgraph.1 rrdgraph_data.1 rrdgraph_examples.1 rrdgraph_graph.1 \
|
|
|
|
rrdgraph_rpn.1 rrdinfo.1 rrdlast.1 rrdresize.1 rrdrestore.1 \
|
|
|
|
rrdthreads.1 rrdtool.1 rrdtune.1 rrdtutorial.1 rrdupdate.1 \
|
2007-01-31 15:12:40 +01:00
|
|
|
rrdxport.1 rrdlastupdate.1
|
2007-07-15 23:49:57 +02:00
|
|
|
|
|
|
|
.if !defined(WITHOUT_PERL_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:
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
@${REINPLACE_CMD} -e 's/install-idocDATA install-ihtmlDATA//g' \
|
2007-04-19 18:05:56 +02:00
|
|
|
-e 's/^ 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
|
2008-09-23 02:10:24 +02:00
|
|
|
.if defined(NOPORTEXAMPLES)
|
|
|
|
@${REINPLACE_CMD} -e 's|SUBDIRS = $$(PO) src examples doc bindings|SUBDIRS = $$(PO) src doc bindings|' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
2003-10-29 09:56:29 +01:00
|
|
|
|
1999-08-22 10:41:12 +02:00
|
|
|
post-install:
|
|
|
|
.if !defined(BATCH)
|
2003-10-29 09:56:29 +01:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "############################################################################"
|
|
|
|
@${ECHO_MSG} "# See ${PREFIX}/share/examples/rrdtool for some demonstration code #"
|
|
|
|
@${ECHO_MSG} "############################################################################"
|
1999-08-22 10:41:12 +02:00
|
|
|
.endif
|
|
|
|
|
2007-02-07 10:40:25 +01:00
|
|
|
.include <bsd.port.post.mk>
|