freebsd-ports/www/mod_webapp/Makefile
Ade Lovett 3f651573ad Whoa there, boy, that's a mighty big commit y'all have there...
Begin autotools sanitization sequence by requiring ports to explicitly
specify which version of {libtool,autoconf,automake} they need, erasing
the concept of a "system default".

For ports-in-waiting:

	USE_LIBTOOL=YES		->	USE_LIBTOOL_VER=13
	USE_AUTOCONF=YES	->	USE_AUTOCONF_VER=213
	USE_AUTOMAKE=YES	->	USE_AUTOMAKE_VER=14

Ports attempting to use the old style system after June 1st 2004 will be
sorely disappointed.
2004-03-14 06:17:56 +00:00

74 lines
1.9 KiB
Makefile

# Ports collection makefile for: mod_webapp for Apache 1.3.x
# Date created: Jun 12 2003
# Whom: Andre Sachs <asachs@uunet.co.za>
#
# $FreeBSD$
#
PORTNAME= mod_webapp
PORTVERSION= 4.1.24
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://jakarta.apache.org/%SUBDIR%/
MASTER_SITE_SUBDIR= builds/jakarta-tomcat-4.0/release/v${TOMCAT_RELEASE}/src
DISTNAME= jakarta-tomcat-connectors-${CONNECTORS_RELEASE}-src
DIST_SUBDIR= mod_webapp
MAINTAINER= asachs@uunet.co.za
COMMENT= Apache module mounts Tomcat web applications
BUILD_DEPENDS= ${NONEXISTANT}:${PORTSDIR}/devel/apr:extract \
${AUTOCONF}:${PORTSDIR}/devel/autoconf
USE_APACHE= yes
USE_LIBTOOL_VER=13
LIBTOOLFILES= # none
USE_GMAKE= yes
INSTALLS_SHLIB= yes
# Release information for distribution files.
TOMCAT_RELEASE= ${PORTVERSION}
CONNECTORS_RELEASE= ${PORTVERSION}
.include <bsd.port.pre.mk>
# Apache locations.
APACHECTL?= ${LOCALBASE}/sbin/apachectl
APR_LIB?= ${LOCALBASE}/lib/
APR_INCLUDE?= ${LOCALBASE}/include/apr-0/
APACHE_MODULES?= libexec/apache/
APR_SRC?= ${WRKDIRPREFIX}${PORTSDIR}/devel/apr/work/apr-?\.?\.?/
AUTOCONF?= ${LOCALBASE}/bin/autoconf
# If the user's changed the modules directory, pack things correctly.
PLIST_SUB= APACHE_MODULES=${APACHE_MODULES}
# Build options.
APACHE_VERSION= 1.3.6
WRKSRC= ${WRKDIR}/${DISTNAME}/webapp
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --with-apxs=${APXS} \
--with-apr-lib=${APR_LIB} \
--with-apr-include=${APR_INCLUDE} \
--with-apr=${APR_SRC} \
--without-ant
pre-configure:
cd ${WRKSRC} && ${AUTOCONF}
pre-build:
${MKDIR} ${WRKSRC}/build
${MKDIR} ${WRKSRC}/build/objs
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/apache-1.3/mod_webapp.so \
${PREFIX}/libexec/apache
post-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/mod_webapp
${INSTALL_MAN} ${WRKSRC}/INSTALL.txt ${PREFIX}/share/doc/mod_webapp
.endif
.include <bsd.port.post.mk>