summaryrefslogtreecommitdiff
path: root/lang/jdk
diff options
context:
space:
mode:
authorjschauma <jschauma>2002-07-27 21:32:48 +0000
committerjschauma <jschauma>2002-07-27 21:32:48 +0000
commitf122539501d281e392e748e50e0fc5a0ce26821d (patch)
tree9ddbae79ebf1b9e3e2e8fca7b3ce7fcd6ab2a099 /lang/jdk
parent9aee9cafdda4ef88435e3d381d7e32bb5de6c7b5 (diff)
downloadpkgsrc-f122539501d281e392e748e50e0fc5a0ce26821d.tar.gz
We allow several JDKs/JREs to coexist, installing them in separate
subdirectories under ${PREFIX}/java/ -- Change II of many. Thus, install this jdk in ${PREFIX}/java/jdk-1.1.8, remove CONFLICTS with other JDKs/JREs and bump PKGREVISION.
Diffstat (limited to 'lang/jdk')
-rw-r--r--lang/jdk/Makefile13
-rw-r--r--lang/jdk/PLIST3
2 files changed, 7 insertions, 9 deletions
diff --git a/lang/jdk/Makefile b/lang/jdk/Makefile
index bb6c168667e..6e414fc42c0 100644
--- a/lang/jdk/Makefile
+++ b/lang/jdk/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.27 2002/03/01 01:58:35 abs Exp $
+# $NetBSD: Makefile,v 1.28 2002/07/27 21:32:48 jschauma Exp $
#
VERSION= 1.1.8
PKGNAME= jdk-${VERSION}
+PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/java/i386/${VERSION}/ \
ftp://ftp.de.netbsd.org/pub/NetBSD/misc/java/i386/${VERSION}/
@@ -12,15 +13,11 @@ MAINTAINER= jwise@netbsd.org
HOMEPAGE= http://www.quick.com.au/java/
COMMENT= Sun's Java(tm) Development Kit
-CONFLICTS= blackdown-j* sun-j*
-
LICENSE= jdk-license
.include "../../mk/bsd.prefs.mk"
-.if !defined(JDK_HOME)
-JDK_HOME:= ${LOCALBASE}/java
-.endif
+JDK_HOME:= ${LOCALBASE}/java/${PKGNAME}
MESSAGE_SUBST+= JDK_HOME=${JDK_HOME}
.if ${OBJECT_FMT} == "ELF"
@@ -66,8 +63,8 @@ pre-install:
do-install:
${RM} -f ${WRKSRC}/*.orig
- ${MKDIR} ${JDK_HOME}
- cd ${WRKSRC} ; ${GTAR} pcf - . | ( cd ${JDK_HOME} ; ${GTAR} pvxf - )
+ ${INSTALL_PROGRAM_DIR} ${JDK_HOME}
+ cd ${WRKSRC} && ${PAX} -rw . ${JDK_HOME}
.include "../../mk/bsd.pkg.mk"
diff --git a/lang/jdk/PLIST b/lang/jdk/PLIST
index 39faf5ab5cc..f45763a4d76 100644
--- a/lang/jdk/PLIST
+++ b/lang/jdk/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2001/11/01 00:23:51 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.2 2002/07/27 21:32:48 jschauma Exp $
bin/i386/green_threads/javah_g
bin/i386/green_threads/javah
bin/i386/green_threads/java_g
@@ -574,3 +574,4 @@ index.html
@dirrm bin/i386/green_threads
@dirrm bin/i386
@dirrm bin
+@unexec ${RMDIR} %D 2>/dev/null || ${TRUE}