summaryrefslogtreecommitdiff
path: root/www/ap2-perl/Makefile
blob: 0a90305c69648f4e6fc1bb096838543d85c0eead (plain)
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
# $NetBSD: Makefile,v 1.46 2013/11/15 20:16:28 joerg Exp $

DISTNAME=	mod_perl-2.0.8
PKGNAME=	${APACHE_PKG_PREFIX}-${DISTNAME:S/mod_//}
PKGREVISION=	1
CATEGORIES=	www perl5
MASTER_SITES=	${MASTER_SITE_APACHE:=perl/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://perl.apache.org/
COMMENT=	Module that embeds a Perl interpreter into Apache
LICENSE=	apache-2.0

CONFLICTS=	ap-perl-[0-9]* p5-Apache-Reload-[0-9]* p5-Apache-Test-[0-9]*

PKG_APACHE_ACCEPTED=	apache2 apache22 apache24

APACHE_MODULE=		yes
PERL5_PACKLIST=		auto/mod_perl2/.packlist

MAKE_PARAMS+=		MP_APXS=${APXS}
MAKE_PARAMS+=		MP_APR_CONFIG=${BUILDLINK_DIR}/bin/apr-config

.include "../../mk/apache.mk"

.if !empty(PKG_APACHE:Mapache24)
SUBST_CLASSES+=		ap24
SUBST_STAGE.ap24=	pre-configure
SUBST_MESSAGE.ap24=	Adding Apache 2.4.x compatibility.
SUBST_FILES.ap24=	xs/maps/apache2_structures.map
SUBST_FILES.ap24+=	xs/tables/current/Apache2/StructureTable.pm
SUBST_SED.ap24=		-e "s,remote_addr,client_addr,g"
SUBST_SED.ap24+=	-e "s,remote_ip,client_ip,g"
SUBST_SED.ap24+=	-e "s,'loglevel','log.level',g"
.endif

INSTALLATION_DIRS=	${PREFIX}/share/doc/mod_perl

post-install:
	${CP} -R ${WRKSRC}/docs/* ${DESTDIR}${PREFIX}/share/doc/mod_perl

.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"