1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00
freebsd-ports/www/libapreq2/Makefile
Olli Hauer 63f3e3b0d4 - remove www/apache20 and devel/apr0
- s/USE_APACHE= 20+/USE_APACHE= 22+/
- unify s/YES/yes/
- cleanup APACHE_VERSION <= 22 usage
- add entry to MOVED

with hat apache@
2012-08-18 14:29:08 +00:00

64 lines
1.6 KiB
Makefile

# New ports collection makefile for: p5-libapreq2
# Date created: June 5, 2004
# Whom: Autrijus Tang <autrijus@autrijus.org>
#
# $FreeBSD$
#
PORTNAME= libapreq2
PORTVERSION= 2.13
PORTREVISION= 2
CATEGORIES= www devel
MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD}
MASTER_SITE_SUBDIR=libapreq
MAINTAINER= apache@FreeBSD.org
COMMENT= Generic Apache2 Request Library
USE_APACHE= 22+
USE_GMAKE= yes
USE_LDCONFIG= yes
USE_AUTOTOOLS= autoconf libtool
CONFIGURE_ARGS+= --with-apache2-apxs=${APXS} --with-expat=${LOCALBASE}
MAKE_ENV+= MAKE=${GMAKE} ## MakeMaker blows it without this
SHLIB_MAJOR= 11
PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}"
.if defined (WITH_MODPERL2)
PKGNAMEPREFIX+= p5-
P5_APREQ_DEPENDS+= ${APACHE_PKGNAMEPREFIX}mod_perl2>=0:${PORTSDIR}/www/mod_perl2 \
p5-ExtUtils-XSBuilder>=0:${PORTSDIR}/devel/p5-ExtUtils-XSBuilder \
p5-Parse-RecDescent>=0:${PORTSDIR}/devel/p5-Parse-RecDescent
BUILD_DEPENDS+= ${P5_APREQ_DEPENDS}
RUN_DEPENDS+= ${P5_APREQ_DEPENDS}
USE_PERL5= yes
CONFIGURE_ARGS+= --enable-perl-glue --with-perl=${PERL5}
MAN3PREFIX= ${PREFIX}/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>