mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
88b492b029
- Following migration of Mk/bsd.apache.mk to Mk/Uses/apache.mk With hat: apache
52 lines
1.6 KiB
Makefile
52 lines
1.6 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= libapreq2
|
|
PORTVERSION= 2.13
|
|
PORTREVISION= 6
|
|
CATEGORIES= www perl5 devel
|
|
MASTER_SITES= APACHE_HTTPD/libapreq
|
|
DISTFILE= libapreq2-${PORTVERSION}
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= pi@FreeBSD.org
|
|
COMMENT= Perl binding for the Generic Apache2 Request Library
|
|
|
|
LICENSE= APACHE20
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-apache2-apxs=${APXS} \
|
|
--with-expat=${LOCALBASE} \
|
|
--enable-perl-glue --with-perl=${PERL}
|
|
USES= apache:2.2+ libtool perl5
|
|
USE_PERL5= run
|
|
USE_LDCONFIG= yes
|
|
|
|
BUILD_DEPENDS= libapreq2>0:www/libapreq2 \
|
|
${APACHE_PKGNAMEPREFIX}mod_perl2>=0:www/mod_perl2 \
|
|
p5-ExtUtils-XSBuilder>=0:devel/p5-ExtUtils-XSBuilder \
|
|
p5-Parse-RecDescent>=0:devel/p5-Parse-RecDescent
|
|
|
|
RUN_DEPENDS= libapreq2>0:www/libapreq2 \
|
|
${APACHE_PKGNAMEPREFIX}mod_perl2>=0:www/mod_perl2 \
|
|
p5-Parse-RecDescent>=0:devel/p5-Parse-RecDescent
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -i '' -e "s!%%APACHEINCLUDEDIR%%!${APACHEINCLUDEDIR}!" \
|
|
${WRKSRC}/glue/perl/Makefile.PL
|
|
post-install:
|
|
# remove all the non-perl stuff
|
|
${RM} ${STAGEDIR}${PREFIX}/bin/apreq2-config
|
|
${RM} -r ${STAGEDIR}${PREFIX}/include/apreq2
|
|
${RM} ${STAGEDIR}${PREFIX}/${APACHEINCLUDEDIR}/apreq2/apreq_module_apache2.h
|
|
${RM} ${STAGEDIR}${PREFIX}/lib/libapreq2*
|
|
${RM} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/mod_apreq2*
|
|
${RMDIR} -p ${STAGEDIR}${PREFIX}/${APACHEINCLUDEDIR}/apreq2 \
|
|
${STAGEDIR}${PREFIX}/${APACHEMODDIR} 2>/dev/null || :
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/APR/Request/Request.so
|
|
.for i in Apache2 CGI Cookie Error Hook Param Parser
|
|
${STRIP_CMD} \
|
|
${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/APR/Request/${i}/${i}.so
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|