1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

Get rid of WITH_APACHE2. Now this port detects which version of Apache

is on the system and defines dependency on appropriate mod_perl.
(If no Apache is installed, depends on mod_perl2.)
While at it, minor cosmetic change was also made.

Approved by:	kuriyama
Feature safe:	yes
This commit is contained in:
Masafumi Max NAKANE 2010-02-28 07:59:51 +00:00
parent 8e77a44715
commit 5fbffee0ed
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=250417

View File

@ -30,7 +30,7 @@ MAN3= Log::Dispatch.3 \
Log::Dispatch::File.3 \
Log::Dispatch::File::Locked.3 \
Log::Dispatch::Handle.3 \
Log::Dispatch::Null.3 \
Log::Dispatch::Null.3 \
Log::Dispatch::Output.3 \
Log::Dispatch::Screen.3 \
Log::Dispatch::Syslog.3
@ -50,13 +50,19 @@ post-install:
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
.include <bsd.port.options.mk>
.if defined(WITH_APACHELOG)
USE_APACHE= 1.3+
.endif
.include <bsd.port.pre.mk>
.if defined(WITH_APACHELOG)
.if defined(WITH_APACHE2)
RUN_DEPENDS+= mod_perl2>=2.0:${PORTSDIR}/www/mod_perl2
.else
.if ${APACHE_VERSION} == 13
RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libperl.so:${PORTSDIR}/www/mod_perl
.else
RUN_DEPENDS+= mod_perl2>=2.0:${PORTSDIR}/www/mod_perl2
.endif
.endif