summaryrefslogtreecommitdiff
path: root/lang/sun-jre13/Makefile.common
diff options
context:
space:
mode:
authorjschauma <jschauma>2002-07-27 21:54:30 +0000
committerjschauma <jschauma>2002-07-27 21:54:30 +0000
commit64b7e3cc268257787800cbfd8f48c9527dda66d9 (patch)
treedb8b5365917c4e74a55afafaddfc2bf77b36a8ef /lang/sun-jre13/Makefile.common
parent4e6a981a1fef0f58b5cef1fa06e68e1ebd4853fb (diff)
downloadpkgsrc-64b7e3cc268257787800cbfd8f48c9527dda66d9.tar.gz
We allow several JDKs/JREs to coexist, installing them in separate
subdirectories under ${PREFIX}/java/ -- Change III of many. Thus install this JRE into ${PREFIX}/java/sun-1.3.1 and remove CONFLICTS with other JDKs/JREs. Rename package from sun-jre-1.3.1.0.2 to sun-jre13-1.0.2 (avoids conflict with sun-jre14). Split Makefile into Makefile and Makefile.common, to allow reusing of some of the stuff in lang/sun-jdk13 (commit coming up). Add informative MESSAGE and finally bump PKGREVISION.
Diffstat (limited to 'lang/sun-jre13/Makefile.common')
-rw-r--r--lang/sun-jre13/Makefile.common72
1 files changed, 72 insertions, 0 deletions
diff --git a/lang/sun-jre13/Makefile.common b/lang/sun-jre13/Makefile.common
new file mode 100644
index 00000000000..f916106bb5b
--- /dev/null
+++ b/lang/sun-jre13/Makefile.common
@@ -0,0 +1,72 @@
+# $NetBSD: Makefile.common,v 1.1 2002/07/27 21:54:31 jschauma Exp $
+
+# MASTER_SITES is very special, and must end in "=":
+CATEGORIES= lang
+EXTRACT_SUFX= .bin
+
+MAINTAINER= jschauma@netbsd.org
+HOMEPAGE= http://java.sun.com/
+
+FETCH_BEFORE_ARGS=-o ${DISTNAME}${EXTRACT_SUFX}
+EXTRACT_CMD= ${ECHO} yes | ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} >/dev/null
+
+LICENSE= jdk13-license
+RESTRICTED= "Redistribution of repackaged binaries not permitted"
+NO_SRC_ON_CDROM=${RESTRICTED}
+NO_SRC_ON_FTP= ${RESTRICTED}
+NO_BIN_ON_CDROM=${RESTRICTED}
+NO_BIN_ON_FTP= ${RESTRICTED}
+
+.include "../../mk/bsd.prefs.mk"
+
+# We need to overwrite JDK_HOME, since JRE and JDK need to be
+# installed in the same directory
+JDK_HOME:= ${LOCALBASE}/java/sun-1.3.1
+MESSAGE_SUBST+= JDK_HOME=${JDK_HOME}
+
+# Needs to be after bsd.prefs.mk
+.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
+
+# since we change PREFIX:
+NO_MTREE= yes
+
+ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-i[3-6]86 Darwin-*-*
+LDD= ${TRUE}
+NO_BUILD= # defined
+
+post-fetch:
+. if ${OPSYS} != "Darwin"
+ @${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
+. endif
+
+do-install:
+. if ${OPSYS} == "Darwin"
+ @${ECHO_MSG} "Darwin ships with a JRE and a JDK based on Sun's 1.3.1 release."
+. else
+ ${INSTALL_PROGRAM_DIR} ${PREFIX}
+ cd ${WRKSRC} && ${PAX} -rw . ${PREFIX}
+. endif
+
+.include "../../emulators/suse_linux/Makefile.application"
+
+# These need to be after bsd.pkg.mk
+
+.if ${OPSYS} == "Linux"
+# No patches on linux
+PATCHDIR= ${WRKDIR}/.patches
+pre-patch:
+ ${MKDIR} ${PATCHDIR}
+.endif
+
+PREFIX:= ${JDK_HOME}