freebsd-ports/www/p5-libapreq2/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

54 lines
1.8 KiB
Makefile

# $FreeBSD$
PORTNAME= libapreq2
PORTVERSION= 2.13
PORTREVISION= 5
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
USES= gmake libtool perl5
USE_APACHE= 22+
USE_PERL5= run
USE_LDCONFIG= yes
USE_AUTOTOOLS= autoconf
CONFIGURE_ARGS+= --with-apache2-apxs=${APXS} \
--with-expat=${LOCALBASE} \
--enable-perl-glue --with-perl=${PERL5}
MAKE_ENV+= MAKE=${GMAKE} ## MakeMaker blows it without this
BUILD_DEPENDS= libapreq2>0:${PORTSDIR}/www/libapreq2 \
${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
RUN_DEPENDS= libapreq2>0:${PORTSDIR}/www/libapreq2 \
${APACHE_PKGNAMEPREFIX}mod_perl2>=0:${PORTSDIR}/www/mod_perl2 \
p5-Parse-RecDescent>=0:${PORTSDIR}/devel/p5-Parse-RecDescent
post-patch:
@${REINPLACE_CMD} -i '' -e "s!%%APACHEINCLUDEDIR%%!${APACHEINCLUDEDIR}!" \
${WRKSRC}/glue/perl/Makefile.PL
post-stage:
# remove all the non-perl stuff
${RM} ${STAGEDIR}${PREFIX}/bin/apreq2-config
${RM} -rf ${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>