summaryrefslogtreecommitdiff
path: root/lang/sun-jdk13/Makefile
diff options
context:
space:
mode:
authortv <tv>2000-11-18 00:36:55 +0000
committertv <tv>2000-11-18 00:36:55 +0000
commitbffd74f0cbabe39391ac7d0ed467948c1c0c1b25 (patch)
tree92bb88945361e127bed1949d4862e603e644c8fd /lang/sun-jdk13/Makefile
parent3f90f09d171c32a83b989e64ada958f7b0929911 (diff)
downloadpkgsrc-bffd74f0cbabe39391ac7d0ed467948c1c0c1b25.tar.gz
Packages for the Sun [Linux, for now] port of the JDK/JRE 1.3.0.
Diffstat (limited to 'lang/sun-jdk13/Makefile')
-rw-r--r--lang/sun-jdk13/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/lang/sun-jdk13/Makefile b/lang/sun-jdk13/Makefile
new file mode 100644
index 00000000000..f8bc33bc425
--- /dev/null
+++ b/lang/sun-jdk13/Makefile
@@ -0,0 +1,61 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/11/18 00:37:15 tv Exp $
+#
+
+# MASTER_SITES is very special, and must end in "=":
+DISTNAME= j2sdk-1_3_0-linux
+PKGNAME= sun-jdk-1.3.0
+CATEGORIES= lang
+MASTER_SITES= http://java.sun.com/Download4?config-file=j2sdk-1_3_0-linux.config&platform=targzsh&protocol=HTTP+download&download-name=
+EXTRACT_SUFX= .bin
+
+MAINTAINER= tv@netbsd.org
+HOMEPAGE= http://java.sun.com/
+
+DEPENDS= sun-jre-1.3.0:../../lang/sun-jre13
+
+CONFLICTS= jdk-* blackdown-j*
+
+FETCH_BEFORE_ARGS=-o ${DISTNAME}${EXTRACT_SUFX}
+EXTRACT_CMD= ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
+WRKSRC= ${WRKDIR}/jdk1.3
+
+IS_INTERACTIVE= yes
+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"
+
+.if !defined(JDK_HOME)
+JDK_HOME:= ${LOCALBASE}/java
+.endif
+
+NO_BUILD= yes
+# since we change PREFIX:
+NO_MTREE= yes
+
+ONLY_FOR_PLATFORM= NetBSD-*-i386
+LDD= ${TRUE}
+
+post-fetch:
+ @${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
+
+post-extract:
+ @${RM} -rf ${WRKSRC}/jre
+
+post-patch:
+ @${FIND} ${WRKSRC} -name '*.orig' -print | xargs ${RM} -f
+
+# This is ugly. The chown should happen after copying, ot tar should have
+# a way to override permissions.
+do-install:
+ ${INSTALL_PROGRAM_DIR} ${PREFIX}
+ ${CHOWN} -hR ${BINOWN}:${BINGRP} ${WRKSRC}
+ ${GTAR} -C ${WRKSRC} -cf- . | ${GTAR} -C ${PREFIX} -xpf-
+
+.include "../../mk/bsd.pkg.mk"
+
+# This needs to be after bsd.pkg.mk
+PREFIX:= ${JDK_HOME}