aboutsummaryrefslogtreecommitdiff
path: root/net/rrdtool
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2004-07-22 12:41:11 +0000
committerVolker Stolz <vs@FreeBSD.org>2004-07-22 12:41:11 +0000
commit18aaf7cb1aa502d8961c1de0fb189af60375305d (patch)
tree61d64aa02a3ceb9d1428be9a0585ab0921b21fdd /net/rrdtool
parent2f05a9e3d53de168f81ba64dbf37c1a7275eb8e3 (diff)
downloadports-18aaf7cb1aa502d8961c1de0fb189af60375305d.tar.gz
ports-18aaf7cb1aa502d8961c1de0fb189af60375305d.zip
Notes
Diffstat (limited to 'net/rrdtool')
-rw-r--r--net/rrdtool/Makefile8
-rw-r--r--net/rrdtool/files/extra-patch-perl-shared::RRDs.xs11
2 files changed, 17 insertions, 2 deletions
diff --git a/net/rrdtool/Makefile b/net/rrdtool/Makefile
index 8b30ad1a5b41..4102d5e4a225 100644
--- a/net/rrdtool/Makefile
+++ b/net/rrdtool/Makefile
@@ -32,12 +32,16 @@ MAN1= RRDp.1 RRDs.1 bin_dec_hex.1 rrdcgi.1 rrdcreate.1 rrddump.1 \
MAN3= RRDp.3 RRDs.3
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+.include <bsd.port.pre.mk>
+
+.if ( ${PERL_LEVEL} <= 500503 )
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-perl-shared::RRDs.xs
+.endif
+
.if defined(WITH_LATIN2)
CONFIGURE_ARGS+= --with-latin2
.endif
-.include <bsd.port.pre.mk>
-
.if ${ARCH} == "amd64"
BROKEN= "Does not build on amd64 (needs to build shared libraries with -fPIC)"
.endif
diff --git a/net/rrdtool/files/extra-patch-perl-shared::RRDs.xs b/net/rrdtool/files/extra-patch-perl-shared::RRDs.xs
new file mode 100644
index 000000000000..c91724436ae8
--- /dev/null
+++ b/net/rrdtool/files/extra-patch-perl-shared::RRDs.xs
@@ -0,0 +1,11 @@
+--- perl-shared/RRDs.xs.orig Sun May 9 11:07:59 2004
++++ perl-shared/RRDs.xs Sun May 9 11:08:11 2004
+@@ -360,6 +360,6 @@
+ XSRETURN_UNDEF;
+ }
+ EXTEND(sp,2);
+- PUSHs(sv_2mortal(newSVuv(start_tmp)));
+- PUSHs(sv_2mortal(newSVuv(end_tmp)));
++ PUSHs(sv_2mortal(newSViv(start_tmp)));
++ PUSHs(sv_2mortal(newSViv(end_tmp)));
+