1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Make the threadedness depend on the actual build of apr-util/apr, instead on

an Apache version

PR:		ports/118307 (adapted from)
Submitted by:	Philip M. Gollucci <pgollucci@p6m7g8.com> (maintainer)
This commit is contained in:
Pav Lucistnik 2008-01-19 19:30:20 +00:00
parent 91a75361df
commit 85f0e6088d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=205846
2 changed files with 17 additions and 4 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= mod_perl
PORTVERSION= 2.0.3
PORTREVISION= 2
PORTREVISION= 3
PORTEPOCH= 3
CATEGORIES= www perl5
MASTER_SITES= http://perl.apache.org/dist/ \
@ -36,7 +36,7 @@ MAN3= APR.3 APR::Base64.3 APR::Brigade.3 APR::Bucket.3 \
APR::Date.3 APR::Error.3 APR::Finfo.3 APR::IpSubnet.3 \
APR::OS.3 APR::PerlIO.3 APR::Pool.3 APR::SockAddr.3 \
APR::Socket.3 APR::Status.3 APR::String.3 APR::Table.3 \
APR::ThreadMutex.3 APR::URI.3 APR::UUID.3 APR::Util.3 \
APR::URI.3 APR::UUID.3 APR::Util.3 \
Apache2::Access.3 Apache2::Build.3 Apache2::CmdParms.3 \
Apache2::Command.3 Apache2::Connection.3 Apache2::Const.3 \
Apache2::Directive.3 Apache2::Filter.3 Apache2::FilterRec.3 \
@ -63,7 +63,20 @@ MAN3= APR.3 APR::Base64.3 APR::Brigade.3 APR::Bucket.3 \
.include <bsd.port.pre.mk>
.if ${APACHE_VERSION} >= 21
.if exists(${LOCALBASE}/include/apr-1/apr.h)
APR_H= ${LOCALBASE}/include/apr-1/apr.h
.elif exists(${LOCALBASE}/include/apr/apr.h)
APR_H= ${LOCALBASE}/include/apr/apr.h
.endif
.if defined(APR_H)
APR_HAS_THREADS!= ${ECHO_CMD} `${GREP} -c 'APR_HAS_THREADS *1' ${APR_H}`
.else
APR_HAS_THREADS= 0
.endif
.if ${APR_HAS_THREADS} == 1
MAN3+= APR::ThreadMutex.3
PLIST_SUB+= THREADMUTEX=""
.else
PLIST_SUB+= THREADMUTEX="@comment "

View File

@ -337,7 +337,7 @@ bin/mp2bug
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Apache2
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Apache
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/APR
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%
@dirrm %%APACHEINCLUDEDIR%%/modules/perl
@dirrmtry %%APACHEINCLUDEDIR%%/modules
@dirrmtry %%APACHEINCLUDEDIR%%