diff options
author | rh <rh@pkgsrc.org> | 2004-09-30 22:11:52 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 2004-09-30 22:11:52 +0000 |
commit | 2bc63ca58a60627287d0dcb306553f969b5f8b84 (patch) | |
tree | f477386bd07177c05a4ac18876641ba0bbdfdb60 /lang/sun-jre15/Makefile.common | |
parent | 71d41a3ed857db338a6fef3213113777cc16fb0f (diff) | |
download | pkgsrc-2bc63ca58a60627287d0dcb306553f969b5f8b84.tar.gz |
Initial import of sun-jre15-5.0, Sun's Java(tm) 2 Runtime Environment 1.5.0
Diffstat (limited to 'lang/sun-jre15/Makefile.common')
-rw-r--r-- | lang/sun-jre15/Makefile.common | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/lang/sun-jre15/Makefile.common b/lang/sun-jre15/Makefile.common new file mode 100644 index 00000000000..a07bae744f6 --- /dev/null +++ b/lang/sun-jre15/Makefile.common @@ -0,0 +1,73 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2004/09/30 22:11:53 rh Exp $ + +CATEGORIES= lang java +EXTRACT_SUFX= .bin + +MAINTAINER= tech-pkg@NetBSD.org +HOMEPAGE= http://java.sun.com/ +DOWNLOAD= http://java.sun.com/j2se/1.5.0/download.html +ARCHIVE= http://java.sun.com/products/archive/index.html + +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} + +INTERACTIVE_STAGE= fetch + +.include "../../mk/bsd.prefs.mk" + +JAVA_HOME= ${LOCALBASE}/java/sun-1.5 +JAVA_NAME= sun15 +JAVA_UNLIMIT= datasize + +MESSAGE_SUBST+= JAVA_HOME="${JAVA_HOME}" + +.if ${OPSYS} == "NetBSD" +DEPENDS+= suse_compat-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_compat +DEPENDS+= suse_x11-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_x11 +.endif + +USE_BUILDLINK3= yes +NO_MTREE= yes # since we change PREFIX +LDD= ${TRUE} + +ONLY_FOR_PLATFORM= NetBSD-1.6[U-Z]*-i386 NetBSD-[2-9]*-i386 +ONLY_FOR_PLATFORM+= Linux-*-i[3-6]86 + +_FETCH_MESSAGE= \ + ${ECHO} "======================================================================"; \ + ${ECHO} ; \ + ${ECHO} " The file ${DISTNAME}${EXTRACT_SUFX} containing"; \ + ${ECHO} " ${COMMENT} must be fetched"; \ + ${ECHO} " into:"; \ + ${ECHO} " ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}"; \ + ${ECHO} " from:"; \ + ${ECHO} " ${DOWNLOAD}"; \ + ${ECHO} " or ${ARCHIVE}"; \ + ${ECHO} ; \ + ${ECHO} " Click 'Download J2SE ${SHORT}', read and accept the"; \ + ${ECHO} " license, then choose 'Linux self-extracting file'."; \ + ${ECHO} ; \ + ${ECHO} "======================================================================" + + +post-fetch: + @if [ ! -x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \ + ${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}; \ + fi + +do-build: # nothing + +do-install: + ${INSTALL_PROGRAM_DIR} ${JAVA_HOME} + cd ${WRKSRC} && ${PAX} -rwp ma . ${JAVA_HOME} + +.if ${OPSYS} == "NetBSD" +. include "../../emulators/suse_linux/Makefile.application" +.endif + +.include "../../mk/java-env.mk" +.include "../../mk/bsd.pkg.mk" |