blob: 1137e6d841df5492dbfe532ca3c0b43338b4d150 (
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
49
50
51
52
53
|
# $NetBSD: Makefile,v 1.2 2000/01/13 17:47:53 jwise Exp $
DISTNAME= jakarta-tomcat.src
PKGNAME= jakarta-tomcat-3.0
CATEGORIES= www
MASTER_SITES= http://jakarta.apache.org/builds/tomcat/release/v3.0/src/
DISTFILES= jakarta-tomcat.src.zip jakarta-tools.src.zip
MAINTAINER= jwise@netbsd.org
HOMEPAGE= http://jakarta.apache.org/
USE_JAVA= yes
WRKSRC= ${WRKDIR}/jakarta-tomcat
BUILD_DEFS+= JAKARTA_HOME
EXTRACT_CMD= ${DO_NADA}
.include "../../mk/bsd.prefs.mk"
JAKARTA_HOME?= ${JAVA_HOME}/jakarta
MAKE_ENV+= JAVA_HOME=${JAVA_HOME}
post-extract:
.for x in ${DISTFILES}
cd ${WRKDIR} && ${EXTRACTOR} ${DISTDIR}/$x
.endfor
post-patch:
${SED} -e s,@TOMCAT_HOME@,${JAKARTA_HOME}/tomcat,g \
< ${WRKSRC}/build.xml > ${WRKSRC}/build.xml.tmp
${MV} ${WRKSRC}/build.xml.tmp ${WRKSRC}/build.xml
do-build:
cd ${WRKSRC} && ${SH} ./build.sh
do-install:
${MKDIR} ${JAKARTA_HOME}/tomcat
cd ${WRKSRC} && ${SH} ./build.sh dist
${INSTALL_DATA} ${WRKSRC}/Tomcat+Apache-HOWTO ${JAKARTA_HOME}/tomcat
${CHMOD} +x ${JAKARTA_HOME}/tomcat/*.sh
.include "../../mk/bsd.pkg.mk"
# This needs to be after bsd.pkg.mk
PREFIX:= ${JAVA_HOME}
# work around a bug in kaffe's jar utility
.if ${PKG_JVM} == "kaffe"
DEPENDS+= unzip-[0-9]*:../../archivers/unzip
EXTRACTOR= ${LOCALBASE}/bin/unzip -x
.else
EXTRACTOR= ${JAVA_HOME}/bin/jar xf
.endif
|