mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- p5-Apache-DBI
do not allow to include ports direct, use SLAVE ports instead - aditional test APACHE_VERSION
This commit is contained in:
parent
17b3e4f4ca
commit
7966e09747
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=274475
@ -1,5 +1,5 @@
|
||||
# New ports collection makefile for: p5-Apache-DBI-mp1
|
||||
# Date created: 28 Aug 2008
|
||||
# Date created: 28 Aug 2008
|
||||
# Whom: Philip M. Gollucci <pgollucci@p6m7g8.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
@ -8,14 +8,17 @@
|
||||
PORTNAME= Apache-DBI
|
||||
PKGNAMESUFFIX= -mp1
|
||||
|
||||
COMMENT= DBI persistent connection, authentication and authorization (mp1)
|
||||
COMMENT= DBI persistent connection, authentication and authorization (mp1)
|
||||
|
||||
MAKE_JOBS_SAFE= yes
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../p5-Apache-DBI
|
||||
|
||||
.if defined(WITH_MODPERL2) || defined(WITHOUT_MODPERL)
|
||||
IGNORE= This port is only for use with www/mod_perl
|
||||
IGNORE= this port is only for use with www/mod_perl
|
||||
.endif
|
||||
|
||||
WITH_MODPERL= yes
|
||||
USE_APACHE= 13
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
@ -15,9 +15,10 @@ MAKE_JOBS_SAFE= yes
|
||||
MASTERDIR= ${.CURDIR}/../p5-Apache-DBI
|
||||
|
||||
.if defined(WITH_MODPERL) || defined(WITHOUT_MODPERL2)
|
||||
IGNORE= This port is only for use with www/mod_perl2
|
||||
IGNORE= this port is only for use with www/mod_perl2
|
||||
.endif
|
||||
|
||||
WITH_MODPERL2= yes
|
||||
USE_APACHE= 20+
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
@ -24,6 +24,20 @@ MAKE_JOBS_SAFE= yes
|
||||
MAN3= Apache::DBI.3 Apache::AuthDBI.3
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
USE_APACHE?= 13+
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# prevent from direct including
|
||||
# ports should use one of the SLAVEPORTS
|
||||
.if !defined(PKGNAMESUFFIX)
|
||||
IGNORE= use ${SLAVEDIRS} instead
|
||||
.endif
|
||||
|
||||
.if defined(WITH_MODPERL) && ${APACHE_VERSION} > 13
|
||||
IGNORE= mod_perl require apache13 but ${APACHE_PORT} is installed
|
||||
.elif defined(WITH_MODPERL2) && ${APACHE_VERSION} < 20
|
||||
IGNORE= mod_perl2 require at last apache20 but ${APACHE_PORT} is installed
|
||||
.endif
|
||||
|
||||
.if defined(WITH_MODPERL2)
|
||||
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2
|
||||
@ -41,4 +55,4 @@ PLIST_DIRS= %%SITE_PERL%%/%%PERL_ARCH%%/auto/Apache/DBI \
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Apache \
|
||||
%%SITE_PERL%%/Apache
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user