aboutsummaryrefslogtreecommitdiffstats
path: root/net/p5-Net-Z3950-SimpleServer/Makefile
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2006-01-02 03:43:50 +0800
committerleeym <leeym@FreeBSD.org>2006-01-02 03:43:50 +0800
commit07ee25198429047e6639706c7f9f36182786a5f3 (patch)
tree6d6978109657426f93cdadd83a5402f52e6388c6 /net/p5-Net-Z3950-SimpleServer/Makefile
parente293e7fbe79f8dc11ef755c14ad84e96b323c66d (diff)
downloadfreebsd-ports-gnome-07ee25198429047e6639706c7f9f36182786a5f3.tar.gz
freebsd-ports-gnome-07ee25198429047e6639706c7f9f36182786a5f3.tar.zst
freebsd-ports-gnome-07ee25198429047e6639706c7f9f36182786a5f3.zip
- unbreak this port under old perl
- use MASTER_SITE_PERL_CPAN instead PR: 90543 Submitted by: leeym Approved by: maintainer timeout
Diffstat (limited to 'net/p5-Net-Z3950-SimpleServer/Makefile')
-rw-r--r--net/p5-Net-Z3950-SimpleServer/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/net/p5-Net-Z3950-SimpleServer/Makefile b/net/p5-Net-Z3950-SimpleServer/Makefile
index bd65d1c62306..11f48ce0edb1 100644
--- a/net/p5-Net-Z3950-SimpleServer/Makefile
+++ b/net/p5-Net-Z3950-SimpleServer/Makefile
@@ -8,7 +8,8 @@
PORTNAME= Net-Z3950-SimpleServer
PORTVERSION= 0.08
CATEGORIES= net perl5
-MASTER_SITES= http://ftp.indexdata.dk/pub/simpleserver/
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Net
PKGNAMEPREFIX= p5-
MAINTAINER= demon@FreeBSD.org
@@ -17,14 +18,17 @@ COMMENT= A Perl module for developing Z39.50 servers
LIB_DEPENDS= yaz.2:${PORTSDIR}/net/yaz
PERL_CONFIGURE= yes
-CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
+CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
MAN3= Net::Z3950::GRS1.3 Net::Z3950::SimpleServer.3
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
-BROKEN= "Does not compile on FreeBSD 4.x"
+post-patch:
+ ${REINPLACE_CMD} -e 's/PERL_GET_CONTEXT/(PL_curinterp)/g' ${WRKSRC}/SimpleServer.xs
+ ${REINPLACE_CMD} -e 's/PERL_SET_CONTEXT/(PL_curinterp)=/g' ${WRKSRC}/SimpleServer.xs
+ ${REINPLACE_CMD} -e '/LIBS/s/=>.*/=> "$$libs -lc_r",/' ${WRKSRC}/Makefile.PL
.endif
.include <bsd.port.post.mk>