[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / www / ap2-perl

File: [cvs.NetBSD.org] / pkgsrc / www / ap2-perl / Makefile (download)

Revision 1.55, Mon Jan 1 10:23:07 2018 UTC (5 years, 9 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1
Changes since 1.54: +1 -3 lines

apache22: remove, it was eol'd in June 2017

Remove packages that only work with apache22.
Remove apache22 references.

# $NetBSD: Makefile,v 1.55 2018/01/01 10:23:07 wiz Exp $

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

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]*

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"