summaryrefslogtreecommitdiff
path: root/www/jakarta-tomcat/Makefile
diff options
context:
space:
mode:
authorjwise <jwise@pkgsrc.org>2000-01-13 17:47:53 +0000
committerjwise <jwise@pkgsrc.org>2000-01-13 17:47:53 +0000
commit9e1289a3ec3cb646eff3a9a3aa1df0d0ce817463 (patch)
tree5f069b1419433fd4b31d841ff94780ed40ede76e /www/jakarta-tomcat/Makefile
parentcd74daddd2fc0ac664af24e55894d540f35fb29d (diff)
downloadpkgsrc-9e1289a3ec3cb646eff3a9a3aa1df0d0ce817463.tar.gz
Use new USE_JAVA support. This runs fine with either jdk or kaffe, but currently
cannot build with kaffe, which I am looking into.
Diffstat (limited to 'www/jakarta-tomcat/Makefile')
-rw-r--r--www/jakarta-tomcat/Makefile23
1 files changed, 15 insertions, 8 deletions
diff --git a/www/jakarta-tomcat/Makefile b/www/jakarta-tomcat/Makefile
index 960bf5c5e11..1137e6d841d 100644
--- a/www/jakarta-tomcat/Makefile
+++ b/www/jakarta-tomcat/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2000/01/12 22:21:34 jwise Exp $
+# $NetBSD: Makefile,v 1.2 2000/01/13 17:47:53 jwise Exp $
DISTNAME= jakarta-tomcat.src
PKGNAME= jakarta-tomcat-3.0
@@ -9,21 +9,20 @@ DISTFILES= jakarta-tomcat.src.zip jakarta-tools.src.zip
MAINTAINER= jwise@netbsd.org
HOMEPAGE= http://jakarta.apache.org/
-DEPENDS+= jdk-*:../../lang/jdk
+USE_JAVA= yes
WRKSRC= ${WRKDIR}/jakarta-tomcat
-BUILD_DEFS= JDK_HOME JAKARTA_HOME
+BUILD_DEFS+= JAKARTA_HOME
EXTRACT_CMD= ${DO_NADA}
.include "../../mk/bsd.prefs.mk"
-JDK_HOME?= ${LOCALBASE}/java
-JAKARTA_HOME?= ${JDK_HOME}/jakarta
-MAKE_ENV+= JAVA_HOME=${JDK_HOME}
+JAKARTA_HOME?= ${JAVA_HOME}/jakarta
+MAKE_ENV+= JAVA_HOME=${JAVA_HOME}
post-extract:
.for x in ${DISTFILES}
- cd ${WRKDIR} && ${LOCALBASE}/java/bin/jar xf ${DISTDIR}/$x
+ cd ${WRKDIR} && ${EXTRACTOR} ${DISTDIR}/$x
.endfor
post-patch:
@@ -43,4 +42,12 @@ do-install:
.include "../../mk/bsd.pkg.mk"
# This needs to be after bsd.pkg.mk
-PREFIX:= ${JDK_HOME}
+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