1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/www/mod_jk/Makefile
Edwin Groothuis ff0b1b2d09 Update mod_jk to 1.2.4 & add optional apache2 building
This update updates mod_jk to 1.2.4 and optionally creates
	an apache2 module, if APACHE_PORT is set to ${PORTSDIR}/www/apache2

	As a separate PR, I send a new slave port that will hopefully
	see to it that there's a package at your favourite package
	site for both versions of apache.

PR:		ports/56657
Submitted by:	Palle Girgensohn <girgen@pingpong.net>
2003-09-24 08:55:01 +00:00

68 lines
1.7 KiB
Makefile

# New ports collection makefile for: mod_jk
# Date created: Sun May 20 12:58:02 CEST 2001
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= mod_jk
PORTVERSION= 1.2.4
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
MASTER_SITE_SUBDIR= jakarta-tomcat-connectors/jk/release/v${PORTVERSION}/src
DISTNAME= jakarta-tomcat-connectors-jk-${PORTVERSION}-src
MAINTAINER= girgen@pingpong.net
COMMENT= Apache JK module for connecting to Tomcat using AJP1X
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/include/apache2/apr.h)
APACHE_PORT?= ${PORTSDIR}/www/apache2
.else
APACHE_PORT?= ${PORTSDIR}/www/apache13
.endif
.if ${APACHE_PORT:S/${PORTSDIR}\///} == "www/apache2"
APACHE_VER= 2.0
APACHE2= 2
PLIST_SUB= APACHE2=2
PKGNAMESUFFIX= -apache2
.else
APACHE_VER= 1.3
APACHE2=
PLIST_SUB= APACHE2=
.endif
BUILD_DEPENDS= ${APXS}:${APACHE_PORT}
RUN_DEPENDS= ${APXS}:${APACHE_PORT}
APXS= ${LOCALBASE}/sbin/apxs
APACHE_CONF= ${LOCALBASE}/etc/apache${APACHE2}
WRKSRC= ${WRKDIR}/jakarta-tomcat-connectors-jk-${PORTVERSION}-src/jk/native
USE_GMAKE= YES
USE_LIBTOOL= YES
USE_AUTOCONF_VER= 253
USE_AUTOMAKE_VER= 15
AUTOMAKE_ARGS= --add-missing
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --with-apxs=${APXS}
pre-patch: build-depends
post-patch:
cd ${WRKSRC}; ${ACLOCAL}; ${LIBTOOLIZE}
do-install:
${APXS} -i -A -n jk ${WRKSRC}/apache-${APACHE_VER}/mod_jk.so
${SED} -e "s#%%APACHE_CONF%%#${APACHE_CONF}#g" ${FILESDIR}/mod_jk.conf.sample > ${WRKDIR}/mod_jk.conf.sample
${INSTALL_DATA} ${WRKDIR}/mod_jk.conf.sample ${APACHE_CONF}
${INSTALL_DATA} ${FILESDIR}/workers.properties.sample ${APACHE_CONF}
post-install:
${CAT} ${PKGMESSAGE} | ${SED} "s|/usr/local|${PREFIX}|g"
.include <bsd.port.post.mk>