aboutsummaryrefslogtreecommitdiff
path: root/www/libapreq2/Makefile
blob: 0a201824959f57e9a43bf81216f8cc05129aae6b (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# New ports collection makefile for:	p5-libapreq2
# Date created:				June 5, 2004
# Whom:	      				Autrijus Tang <autrijus@autrijus.org>
#
# $FreeBSD$
#

PORTNAME=	libapreq2
PORTVERSION=	2.08
CATEGORIES=	www devel
MASTER_SITES=	${MASTER_SITE_APACHE_HTTPD}
MASTER_SITE_SUBDIR=libapreq

MAINTAINER=	skv@FreeBSD.org
COMMENT=	Generic Apache2 Request Library

BROKEN=		Incorrect pkg-plist

USE_APACHE=	2.0+
USE_LDCONFIG=yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=	--with-apache2-apxs=${APXS} --with-expat=${LOCALBASE}

SHLIB_MAJOR=	9
PLIST_SUB=	SHLIB_MAJOR="${SHLIB_MAJOR}"

.if defined (WITH_MODPERL2)
PKGNAMEPREFIX+=	p5-

BUILD_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2 \
		${SITE_PERL}/ExtUtils/XSBuilder:${PORTSDIR}/devel/p5-ExtUtils-XSBuilder \
		${SITE_PERL}/Parse/RecDescent.pm:${PORTSDIR}/devel/p5-Parse-RecDescent
RUN_DEPENDS+=	${BUILD_DEPENDS}

USE_PERL5=	yes
CONFIGURE_ARGS+=	--enable-perl-glue --with-perl=${PERL5}

MAN3PREFIX=	${TARGETDIR}/lib/perl5/${PERL_VERSION}
MAN3=		APR::Request.3 \
		APR::Request::Apache2.3 \
		APR::Request::CGI.3 \
		APR::Request::Cookie.3 \
		APR::Request::Error.3 \
		APR::Request::Hook.3 \
		APR::Request::Param.3 \
		APR::Request::Parser.3 \
		Apache2::Cookie.3 \
		Apache2::Upload.3 \
		Apache2::Request.3

PLIST_SUB+=	WITH_MODPERL2=""

post-patch:
	@${PERL5} -pi -e "s!%%APACHEINCLUDEDIR%%!${APACHEINCLUDEDIR}!" \
		${WRKSRC}/glue/perl/Makefile.PL
.else
PLIST_SUB+=	WITH_MODPERL2="@comment "
.endif

.include <bsd.port.mk>