blob: 1cf02c234afccf6668405785d7c4553ede365bed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# 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= 3.3.1
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= http://jakarta.apache.org/Builds/jakarta-tomcat/release/v${PORTVERSION}/src/ \
http://www.metaverse.nl/~ernst/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= znerd
DISTNAME= jakarta-tomcat-${PORTVERSION}-src
MAINTAINER= znerd@FreeBSD.org
BUILD_DEPENDS= ${APXS}:${APACHE_PORT}
RUN_DEPENDS= ${APXS}:${APACHE_PORT} \
${TOMCAT_HOME}/lib/tomcat.jar:${PORTSDIR}/www/jakarta-tomcat3
USE_GMAKE= YES
USE_JAVA= 1.2+
MAKEFILE= Makefile.freebsd
WRKSRC= ${WRKDIR}/jakarta-tomcat-${PORTVERSION}-src/src/native/mod_jk/apache1.3
APXS?= ${LOCALBASE}/sbin/apxs
APACHE_PORT?= ${PORTSDIR}/www/apache13
TOMCAT_HOME?= ${LOCALBASE}/jakarta-tomcat${PORTVERSION}
post-extract:
${MV} ${WRKSRC}/Makefile.freebsd ${WRKSRC}/Makefile.freebsd.orig
post-patch:
${SED} \
-e "s#%%APXS%%#${APXS}#g" \
-e "s#%%JAVA_HOME%%#${JAVA_HOME}#g" \
${FILESDIR}/Makefile.freebsd \
> ${WRKSRC}/Makefile.freebsd
do-install:
${APXS} -i -A -n jk ${WRKSRC}/mod_jk.so
${SED} -e "s#%%TOMCAT_HOME%%#${TOMCAT_HOME}#g" ${FILESDIR}/mod_jk.conf > ${WRKDIR}/mod_jk.conf
${INSTALL_DATA} ${WRKDIR}/mod_jk.conf ${PREFIX}/etc/apache
.include <bsd.port.mk>
|