aboutsummaryrefslogtreecommitdiff
path: root/net/p5-Net-Z3950-SimpleServer/Makefile
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2006-01-01 19:43:50 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2006-01-01 19:43:50 +0000
commitbb6e43ccbf3121064e6a9ebcd8dd9e9fa8d802e1 (patch)
tree36b06087f4c3ab21a7a393dd0bb0318d56abd4ef /net/p5-Net-Z3950-SimpleServer/Makefile
parent3ac96f513ad247ade537bfc370036bd5f671bdce (diff)
Notes
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>