summaryrefslogtreecommitdiff
path: root/lang/sun-jre13
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2002-06-30 15:01:47 +0000
committerschmonz <schmonz@pkgsrc.org>2002-06-30 15:01:47 +0000
commitbcc48e8a450118113db386c607f280a115e3e58b (patch)
tree0ee0f19358fd88265595eaa8f7fb1eecef31add7 /lang/sun-jre13
parent7726d6c13b1bb32744dcb80933ad1ca816b1470b (diff)
downloadpkgsrc-bcc48e8a450118113db386c607f280a115e3e58b.tar.gz
Register lang/sun{jre,jdk}13 as stub packages on Darwin, pointing
to the included 1.3.1 JDK. Teach USE_JAVA about this. Approved by jwise and agc.
Diffstat (limited to 'lang/sun-jre13')
-rw-r--r--lang/sun-jre13/Makefile20
-rw-r--r--lang/sun-jre13/PLIST.Darwin2
2 files changed, 19 insertions, 3 deletions
diff --git a/lang/sun-jre13/Makefile b/lang/sun-jre13/Makefile
index 37b1d1cb35d..7c3411b9658 100644
--- a/lang/sun-jre13/Makefile
+++ b/lang/sun-jre13/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2002/04/04 12:29:49 tron Exp $
+# $NetBSD: Makefile,v 1.21 2002/06/30 15:01:49 schmonz Exp $
# MASTER_SITES is very special, and must end in "=":
DISTNAME= j2re-1_3_1_02-linux-i386
@@ -27,11 +27,19 @@ NO_BIN_ON_FTP= ${RESTRICTED}
.include "../../mk/bsd.prefs.mk"
# Needs to be after bsd.prefs.mk
-.if ${OPSYS} != "Linux"
+.if ${OPSYS} == "NetBSD"
DEPENDS+= suse_compat-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_compat
DEPENDS+= suse_x11-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_x11
.endif
+.if ${OPSYS} == "Darwin"
+DISTFILES= # empty
+NO_PATCH= # defined
+NO_CONFIGURE= # defined
+NO_BUILD= # defined
+PLIST_SRC= ${PKGDIR}/PLIST.Darwin
+.endif
+
.if !defined(JDK_HOME)
JDK_HOME:= ${LOCALBASE}/java
.endif
@@ -39,11 +47,13 @@ JDK_HOME:= ${LOCALBASE}/java
# since we change PREFIX:
NO_MTREE= yes
-ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-i[3-6]86
+ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-i[3-6]86 Darwin-*-*
LDD= ${TRUE}
post-fetch:
+. if ${OPSYS} != "Darwin"
@${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
+. endif
post-patch:
@${FIND} ${WRKSRC} -name '*.orig' -print | ${XARGS} ${RM} -f
@@ -54,11 +64,15 @@ do-build:
# This is ugly. The chown should happen after copying, or tar should have
# a way to override permissions.
do-install:
+. if ${OPSYS} == "Darwin"
+ @${ECHO_MSG} "Darwin ships with a JRE based on Sun's 1.3.1 release."
+. else
${INSTALL_PROGRAM_DIR} ${PREFIX} ${PREFIX}/jre
${INSTALL_PROGRAM_DIR} ${PREFIX} ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKDIR}/java ${PREFIX}/bin/java
${CHOWN} -hR ${BINOWN}:${BINGRP} ${WRKSRC}
${GTAR} -C ${WRKSRC} -cf- . | ${GTAR} -C ${PREFIX}/jre -xpf-
+. endif
.include "../../emulators/suse_linux/Makefile.application"
diff --git a/lang/sun-jre13/PLIST.Darwin b/lang/sun-jre13/PLIST.Darwin
new file mode 100644
index 00000000000..87cd9f48e6a
--- /dev/null
+++ b/lang/sun-jre13/PLIST.Darwin
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST.Darwin,v 1.1 2002/06/30 15:01:49 schmonz Exp $
+@comment Darwin ships with a JRE based on Sun's 1.3.1 release.