freebsd-ports/www/p5-Apache-DBI/Makefile
Philip M. Gollucci 10c1c1d224 DEPENDS_ARGS doesn't work with packages and even if it did
WITH_MODPERL2 / WITH_MODPERL is not handled correctly so the depency list for upcomming www/rt38 is way off.

As such, we've split this port into MASTER (www/p5-Apache-DBI) and
SLAVES (www/p5-Apache-DBI-mp1) and (www/p5-Apache-DBI-mp2).

While here, cleanup the MASTER port a little
 - spell out the RUN_DEPENDS
 - remove USE_APACHE and let www/mod_perl* deal with it
 - pull the plist into Makefile

Bump PORTREVISION

Discussed with:     pav on #bsdports
Approved by:        gabor (mentor)
2008-08-28 18:30:27 +00:00

49 lines
1.4 KiB
Makefile

# New ports collection makefile for: p5-Apache-DBI
# Date created: 21 December 1999
# Whom: Igor Vinokurov <igor@zynaps.ru>
#
# $FreeBSD$
#
PORTNAME?= Apache-DBI
PORTVERSION= 1.06
PORTREVISION?= 1
CATEGORIES= www databases perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= pgollucci@FreeBSD.org
COMMENT?= DBI persistent connection, authentication and authorization
SLAVEDIRS= www/p5-Apache-DBI-mp1 www/p5-Apache-DBI-mp2
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
MAN3= Apache::DBI.3 Apache::AuthDBI.3
PERL_CONFIGURE= yes
.if defined(WITH_MODPERL2)
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2
.else
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl
.endif
PLIST_FILES= %%SITE_PERL%%/Apache/DBI.pm \
%%SITE_PERL%%/Apache/AuthDBI.pm \
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Apache/DBI/.packlist
PLIST_DIRS= %%SITE_PERL%%/%%PERL_ARCH%%/auto/Apache/DBI \
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Apache \
%%SITE_PERL%%/Apache
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500800
BUILD_DEPENDS+= ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
.endif
.include <bsd.port.post.mk>