aboutsummaryrefslogtreecommitdiffstats
path: root/net/p5-Net-Z3950-SimpleServer/Makefile
blob: 11f48ce0edb1f4b715d3d986c93123945fc0d2ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# New ports collection makefile for:    p5-Net-Z3950-SimpleServer
# Date created:             12 March 2002
# Whom:                         Dmitry Sivachenko <demon@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   Net-Z3950-SimpleServer
PORTVERSION=    0.08
CATEGORIES= net perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Net
PKGNAMEPREFIX=  p5-

MAINTAINER= demon@FreeBSD.org
COMMENT=    A Perl module for developing Z39.50 servers

LIB_DEPENDS=    yaz.2:${PORTSDIR}/net/yaz

PERL_CONFIGURE= yes
CONFIGURE_ENV=  LOCALBASE=${LOCALBASE}

MAN3=       Net::Z3950::GRS1.3 Net::Z3950::SimpleServer.3

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
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>