2003-02-14 11:26:02 +01:00
|
|
|
# New ports collection makefile for: mod_perl2
|
|
|
|
# Date created: February 13th 2003
|
|
|
|
# Whom: Lars Eggert <larse@isi.edu>
|
1999-11-05 15:50:26 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-10 02:07:29 +02:00
|
|
|
PORTNAME= mod_perl
|
2011-05-23 00:05:07 +02:00
|
|
|
PORTVERSION= 2.0.5
|
2005-12-20 12:45:27 +01:00
|
|
|
PORTEPOCH= 3
|
1999-11-05 15:50:26 +01:00
|
|
|
CATEGORIES= www perl5
|
2011-05-23 00:05:07 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE}
|
|
|
|
MASTER_SITE_SUBDIR= perl
|
2010-05-25 22:17:37 +02:00
|
|
|
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
|
2003-02-14 11:26:02 +01:00
|
|
|
PKGNAMESUFFIX= 2
|
1999-11-05 15:50:26 +01:00
|
|
|
|
2010-04-29 19:30:25 +02:00
|
|
|
MAINTAINER= apache@FreeBSD.org
|
2003-02-21 15:08:24 +01:00
|
|
|
COMMENT= Embeds a Perl interpreter in the Apache2 server
|
1999-11-05 15:50:26 +01:00
|
|
|
|
2006-09-25 12:26:44 +02:00
|
|
|
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/BSD/Resource.pm:${PORTSDIR}/devel/p5-BSD-Resource
|
2011-05-23 00:05:07 +02:00
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
2006-09-25 12:26:44 +02:00
|
|
|
|
2011-05-23 00:05:07 +02:00
|
|
|
CONFLICTS= p5-Apache-Reload-0.*
|
|
|
|
|
|
|
|
MAKE_JOBS_SAFE= yes
|
2009-05-16 08:27:56 +02:00
|
|
|
|
2008-01-18 15:07:01 +01:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
SUB_LIST= APACHEMODDIR=${APACHEMODDIR}
|
2005-12-20 12:45:27 +01:00
|
|
|
USE_APACHE= 2.0+
|
2007-09-08 03:12:10 +02:00
|
|
|
PERL_CONFIGURE= 5.8.0+
|
2004-12-14 03:32:59 +01:00
|
|
|
GMAKE= yes
|
2003-11-07 10:12:58 +01:00
|
|
|
|
2005-05-17 19:13:43 +02:00
|
|
|
# Using apxs in this way is problematic if apache2 is installed under a
|
|
|
|
# different PREFIX than mod_perl2, because the mod_perl2 installation will
|
|
|
|
# use paths returned by apxs to install some components. Fixes welcome.
|
|
|
|
CONFIGURE_ARGS= MP_APXS=${LOCALBASE}/sbin/apxs PREFIX=${PREFIX}
|
2003-02-14 11:26:02 +01:00
|
|
|
|
2005-05-17 19:13:43 +02:00
|
|
|
MAN3= APR.3 APR::Base64.3 APR::Brigade.3 APR::Bucket.3 \
|
|
|
|
APR::BucketAlloc.3 APR::BucketType.3 APR::Const.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 \
|
2005-05-19 17:50:06 +02:00
|
|
|
APR::Socket.3 APR::Status.3 APR::String.3 APR::Table.3 \
|
2008-01-23 19:28:53 +01:00
|
|
|
APR::ThreadMutex.3 APR::URI.3 APR::UUID.3 APR::Util.3 \
|
2005-05-19 17:50:06 +02:00
|
|
|
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 \
|
2005-05-20 17:13:38 +02:00
|
|
|
Apache2::HookRun.3 Apache2::Log.3 Apache2::MPM.3 \
|
|
|
|
Apache2::Module.3 Apache2::PerlSections.3 Apache2::Process.3 \
|
2011-05-23 00:05:07 +02:00
|
|
|
Apache2::Reload.3 \
|
2008-06-07 17:31:21 +02:00
|
|
|
Apache2::RequestIO.3 Apache2::RequestRec.3 \
|
2005-05-19 17:50:06 +02:00
|
|
|
Apache2::RequestUtil.3 Apache2::Resource.3 \
|
|
|
|
Apache2::Response.3 Apache2::ServerRec.3 \
|
2005-05-17 19:13:43 +02:00
|
|
|
Apache2::ServerUtil.3 Apache2::SizeLimit.3 Apache2::Status.3 \
|
|
|
|
Apache2::SubProcess.3 Apache2::SubRequest.3 Apache2::URI.3 \
|
|
|
|
Apache2::Util.3 Apache2::compat.3 Apache2::porting.3 \
|
2011-05-23 00:05:07 +02:00
|
|
|
Apache::Reload.3 Apache::SizeLimit.3 Apache::SizeLimit::Core.3 \
|
2005-05-17 19:13:43 +02:00
|
|
|
Apache::Test.3 Apache::TestConfig.3 Apache::TestMB.3 \
|
|
|
|
Apache::TestMM.3 Apache::TestReport.3 Apache::TestRequest.3 \
|
|
|
|
Apache::TestRun.3 Apache::TestRunPHP.3 Apache::TestRunPerl.3 \
|
2009-01-14 21:13:00 +01:00
|
|
|
Apache::TestServer.3 Apache::TestSmoke.3 Apache::TestTrace.3 Apache::TestUtil.3 \
|
2005-05-17 19:13:43 +02:00
|
|
|
Bundle::Apache2.3 Bundle::ApacheTest.3 ModPerl::BuildMM.3 \
|
|
|
|
ModPerl::CScan.3 ModPerl::Code.3 ModPerl::Config.3 \
|
|
|
|
ModPerl::Const.3 ModPerl::Global.3 ModPerl::MM.3 \
|
|
|
|
ModPerl::MethodLookup.3 ModPerl::PerlRun.3 \
|
2005-05-20 17:13:38 +02:00
|
|
|
ModPerl::PerlRunPrefork.3 ModPerl::Registry.3 \
|
|
|
|
ModPerl::RegistryBB.3 ModPerl::RegistryCooker.3 \
|
|
|
|
ModPerl::RegistryLoader.3 ModPerl::RegistryPrefork.3 \
|
2008-06-07 17:31:21 +02:00
|
|
|
ModPerl::Util.3 mod_perl2.3 Apache2::ConnectionUtil.3 \
|
|
|
|
APR::ThreadRWLock.3
|
2005-05-17 19:13:43 +02:00
|
|
|
|
2005-12-20 12:45:27 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2008-06-07 17:31:21 +02:00
|
|
|
|
2008-07-03 03:48:34 +02:00
|
|
|
.if exists(${LOCALBASE}/include/apr-1/apr.h)
|
2008-06-23 20:16:05 +02:00
|
|
|
APR_H= ${LOCALBASE}/include/apr-1/apr.h
|
2008-07-03 03:48:34 +02:00
|
|
|
APR_MAJ_V!= ${ECHO_CMD} `${LOCALBASE}/bin/apr-1-config --version | ${SED} -e 's,\..*,,'`
|
2010-05-19 20:45:03 +02:00
|
|
|
.elif exists(${LOCALBASE}/include/apr-0/apr.h)
|
|
|
|
APR_H= ${LOCALBASE}/include/apr-0/apr.h
|
2008-07-03 03:48:34 +02:00
|
|
|
APR_MAJ_V!= ${ECHO_CMD} `${LOCALBASE}/bin/apr-config --version | ${SED} -e 's,\..*,,'`
|
2008-01-19 20:30:20 +01:00
|
|
|
.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
|
2007-09-10 02:45:02 +02:00
|
|
|
PLIST_SUB+= THREADMUTEX=""
|
2008-07-03 03:48:34 +02:00
|
|
|
PLIST_SUB+= THREADRWLOCK=""
|
|
|
|
.else
|
2007-09-10 02:45:02 +02:00
|
|
|
PLIST_SUB+= THREADMUTEX="@comment "
|
2008-07-03 03:48:34 +02:00
|
|
|
PLIST_SUB+= THREADRWLOCK="@comment "
|
2006-02-27 16:12:01 +01:00
|
|
|
.endif
|
|
|
|
|
1999-11-05 15:50:26 +01:00
|
|
|
post-install:
|
2005-12-20 12:45:27 +01:00
|
|
|
${MKDIR} ${PREFIX}/${APACHEINCLUDEDIR}/modules/perl
|
2000-01-12 17:46:54 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/modules/perl/*.h \
|
2005-12-20 12:45:27 +01:00
|
|
|
${PREFIX}/${APACHEINCLUDEDIR}/modules/perl
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/xs/*.h ${PREFIX}/${APACHEINCLUDEDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/xs/APR/PerlIO/*.h ${PREFIX}/${APACHEINCLUDEDIR}
|
|
|
|
${MKDIR} ${PREFIX}/${APACHEMODDIR}
|
2003-02-14 11:26:02 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/modules/perl/mod_perl.so \
|
2005-12-20 12:45:27 +01:00
|
|
|
${PREFIX}/${APACHEMODDIR}/mod_perl.so
|
2005-05-20 17:13:38 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2001-05-28 22:52:46 +02:00
|
|
|
|
2000-03-10 11:41:18 +01:00
|
|
|
.include <bsd.port.post.mk>
|