aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2007-07-16 05:49:57 +0800
committerpav <pav@FreeBSD.org>2007-07-16 05:49:57 +0800
commit7856d6c30431045447e1b29a810675e1ee81f48e (patch)
treed7e665046b898b1afe1f9843b538f6b06dee6bb4
parent20a9b5cf13e3c7a205fcf0f21e2eafb6bba49245 (diff)
downloadfreebsd-ports-gnome-7856d6c30431045447e1b29a810675e1ee81f48e.tar.gz
freebsd-ports-gnome-7856d6c30431045447e1b29a810675e1ee81f48e.tar.zst
freebsd-ports-gnome-7856d6c30431045447e1b29a810675e1ee81f48e.zip
- Make Perl dependency optional
PR: ports/114419 Submitted by: Markus Dolze <bsdfan@nurfuerspam.de> Approved by: Razor <bg1tpt@gmail.com> (maintainer)
-rw-r--r--databases/rrdtool/Makefile18
-rw-r--r--databases/rrdtool/pkg-plist18
2 files changed, 24 insertions, 12 deletions
diff --git a/databases/rrdtool/Makefile b/databases/rrdtool/Makefile
index f5af45fc2854..34065ee050ba 100644
--- a/databases/rrdtool/Makefile
+++ b/databases/rrdtool/Makefile
@@ -18,15 +18,15 @@ LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
png.5:${PORTSDIR}/graphics/png
USE_AUTOTOOLS= libtool:15
-USE_PERL5= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
-CONFIGURE_ARGS= --enable-perl-site-install --disable-tcl
+CONFIGURE_ARGS= --disable-tcl
OPTIONS= PYTHON_MODULE "Build PYTHON bindings" off \
- RUBY_MODULE "Build RUBY bindings" off
+ RUBY_MODULE "Build RUBY bindings" off \
+ PERL_MODULE "Build PERL module" on
.include <bsd.port.pre.mk>
.if defined(WITH_PYTHON_MODULE)
@@ -49,6 +49,15 @@ CONFIGURE_ARGS+= --disable-ruby
PLIST_SUB+= WITH_RUBY="@comment "
.endif
+.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
+
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libart-2.0 -I${LOCALBASE}/include/freetype2
LDFLAGS+= -L${LOCALBASE}/lib
@@ -61,8 +70,11 @@ MAN1= bin_dec_hex.1 cdeftutorial.1 rpntutorial.1 rrd-beginners.1 \
rrdgraph_rpn.1 rrdinfo.1 rrdlast.1 rrdresize.1 rrdrestore.1 \
rrdthreads.1 rrdtool.1 rrdtune.1 rrdtutorial.1 rrdupdate.1 \
rrdxport.1 rrdlastupdate.1
+
+.if !defined(WITHOUT_PERL_MODULE)
MAN3= RRDp.3 RRDs.3
MAN3PREFIX= ${TARGETDIR}/lib/perl5/${PERL_VERSION}
+.endif
post-extract:
.if defined(NOPORTDOCS)
diff --git a/databases/rrdtool/pkg-plist b/databases/rrdtool/pkg-plist
index 5b8cf2530223..2206eaf88e22 100644
--- a/databases/rrdtool/pkg-plist
+++ b/databases/rrdtool/pkg-plist
@@ -100,13 +100,13 @@ include/rrd.h
%%PORTDOCS%%%%DOCSDIR%%/txt/rrdxport.pod
%%PORTDOCS%%%%DOCSDIR%%/txt/rrdxport.txt
%%DATADIR%%/fonts/DejaVuSansMono-Roman.ttf
-%%SITE_PERL%%/RRDp.pm
-%%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDp/.packlist
-%%SITE_PERL%%/%%PERL_ARCH%%/RRDs.pm
-%%SITE_PERL%%/%%PERL_ARCH%%/ntmake.pl
-%%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDs/RRDs.so
-%%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDs/RRDs.bs
-%%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDs/.packlist
+%%WITH_PERL%%%%SITE_PERL%%/RRDp.pm
+%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDp/.packlist
+%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/RRDs.pm
+%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/ntmake.pl
+%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDs/RRDs.so
+%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDs/RRDs.bs
+%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDs/.packlist
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/rrdtoolmodule.so
%%WITH_RUBY%%%%RUBY_SITEARCHLIBDIR%%/RRD.so
@dirrm %%EXAMPLESDIR%%
@@ -115,5 +115,5 @@ include/rrd.h
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm %%DATADIR%%/fonts
@dirrm %%DATADIR%%
-@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDp
-@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDs
+%%WITH_PERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDp
+%%WITH_PERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDs