aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to 'java')
-rw-r--r--java/Makefile1
-rw-r--r--java/bootstrap-openjdk8/Makefile52
-rw-r--r--java/bootstrap-openjdk8/Makefile.update87
-rw-r--r--java/bootstrap-openjdk8/distinfo.amd643
-rw-r--r--java/bootstrap-openjdk8/distinfo.arm3
-rw-r--r--java/bootstrap-openjdk8/distinfo.i3863
-rw-r--r--java/bootstrap-openjdk8/pkg-descr7
-rw-r--r--java/bootstrap-openjdk8/pkg-message19
-rw-r--r--java/bootstrap-openjdk8/pkg-plist49
-rw-r--r--java/bootstrap-openjdk8/pkg-plist.arm56
10 files changed, 280 insertions, 0 deletions
diff --git a/java/Makefile b/java/Makefile
index 531e4f19674a..df73b87ef9b8 100644
--- a/java/Makefile
+++ b/java/Makefile
@@ -9,6 +9,7 @@
SUBDIR += bluej
SUBDIR += bootstrap-openjdk
SUBDIR += bootstrap-openjdk6
+ SUBDIR += bootstrap-openjdk8
SUBDIR += bouncycastle
SUBDIR += bouncycastle15
SUBDIR += cacao
diff --git a/java/bootstrap-openjdk8/Makefile b/java/bootstrap-openjdk8/Makefile
new file mode 100644
index 000000000000..9d6c5ea39790
--- /dev/null
+++ b/java/bootstrap-openjdk8/Makefile
@@ -0,0 +1,52 @@
+# $FreeBSD$
+
+PORTNAME= openjdk8
+PORTVERSION= ${DISTVERSION_${JDK_ARCH}}
+CATEGORIES= java devel
+MASTER_SITES= LOCAL/jkim
+PKGNAMEPREFIX= bootstrap-
+DISTNAME= ${JDK_PORT}-${JDK_ARCH}-${PORTVERSION}
+
+MAINTAINER= jkim@FreeBSD.org
+COMMENT= Java Development Kit 8
+
+LICENSE= GPLv2
+
+ONLY_FOR_ARCHS= amd64 armv6 armv7 i386
+
+DISTINFO_FILE= ${.CURDIR}/distinfo.${JDK_ARCH}
+DISTVERSION_amd64= r450802
+DISTVERSION_arm= r444448
+DISTVERSION_i386= r450802
+
+JDK_ARCH= ${ARCH:C/armv.*/arm/}
+JDK_PORT= openjdk8
+JDK_ROOT= bootstrap-${PORTNAME}
+
+NO_BUILD= yes
+PLIST_SUB= JDK_ARCH=${JDK_ARCH} JDK_ROOT=${JDK_ROOT}
+USES= tar:xz
+WRKSRC= ${WRKDIR}/${JDK_ROOT}
+
+INSTALLDIR= ${STAGEDIR}${PREFIX}/${JDK_ROOT}
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH:Marmv*}
+RUN_DEPENDS+= ${LOCALBASE}/lib/libffi.so.6:devel/libffi
+RUN_DEPENDS+= java-zoneinfo>0:java/java-zoneinfo
+PLIST= ${PKGDIR}/pkg-plist.arm
+.endif
+
+do-install:
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${INSTALLDIR}
+ @cd ${WRKSRC} && ${COPYTREE_BIN} bin ${INSTALLDIR}
+.if ${ARCH:Marmv*}
+ @cd ${WRKSRC} && ${COPYTREE_BIN} jre/bin ${INSTALLDIR}
+.endif
+
+update:
+ @${MAKE} -f ${.CURDIR}/Makefile.update \
+ JDK_PORT=${JDK_PORT} JDK_ROOT=${JDK_ROOT}
+
+.include <bsd.port.post.mk>
diff --git a/java/bootstrap-openjdk8/Makefile.update b/java/bootstrap-openjdk8/Makefile.update
new file mode 100644
index 000000000000..ce468ae2a3bd
--- /dev/null
+++ b/java/bootstrap-openjdk8/Makefile.update
@@ -0,0 +1,87 @@
+# $FreeBSD$
+
+JDK_ARCH?= ${ARCH:C/armv.*/arm/}
+JDK_PORT?= openjdk8
+JDK_ROOT?= bootstrap-${JDK_PORT}
+TARGET_OS?= 10
+
+.if !defined(PORTSDIR)
+.if exists(${.CURDIR}/../${JDK_PORT}/Makefile)
+PORTSDIR= ${.CURDIR}/../..
+.else
+PORTSDIR= /usr/ports
+.endif
+.endif
+
+LOCALBASE?= /usr/local
+
+.include "${PORTSDIR}/Mk/bsd.commands.mk"
+
+JDK_PORTDIR!= ${REALPATH} ${PORTSDIR}/java/${JDK_PORT}
+JDK_IMAGEDIR?= ${JDK_PORTDIR}/work/stage/usr/local/${JDK_PORT}
+
+GET_REVISION= ${LOCALBASE}/bin/svnversion ${JDK_PORTDIR}
+TAR?= /usr/bin/tar
+
+.if !defined(ARCH)
+ARCH!= ${UNAME} -p
+.endif
+BUILD_OS!= ${UNAME} -r | ${SED} -e 's/\..*//'
+PORTREVISION!= ${GET_REVISION} 2>/dev/null || ${TRUE}
+
+DISTDIR?= ${.CURDIR}
+DISTFILE= ${JDK_PORT}-${JDK_ARCH}-r${PORTREVISION}.tar.xz
+DISTINFO_FILE= ${.CURDIR}/distinfo.${JDK_ARCH}
+MAKEFILE= ${.CURDIR}/Makefile
+PLIST?= ${.CURDIR}/pkg-plist
+PLIST_SUB= JDK_ARCH="${JDK_ARCH}" JDK_ROOT="."
+
+BUILD_ARGS= BATCH=yes PORT_DBDIR=/var/empty
+BUILD_ENV= __MAKE_CONF=/dev/null PATH="${PATH}"
+BUILD_ENV+= java_openjdk8_UNSET="ALSA X11"
+JDK_BUILD_ARGS= ${BUILD_ARGS}
+
+all:
+ @${ECHO} ""
+ @${ECHO} "=============================================================="
+ @${ECHO} ""
+.if ${BUILD_OS} > ${TARGET_OS}
+ @${ECHO} "We need FreeBSD ${TARGET_OS} but you seem to have ${BUILD_OS}."
+ @${ECHO} ""
+ @${ECHO} "=============================================================="
+ @${ECHO} ""
+ @${FALSE}
+.endif
+ @${ECHO} "Building ${DISTFILE}...."
+ @${ECHO} ""
+ @${ECHO} "Started at "`date -u`"."
+ @${ECHO} ""
+ @${ECHO} "=============================================================="
+ @${ECHO} ""
+.if !defined(NO_BUILD)
+ @${SETENV} -i ${BUILD_ENV} \
+ ${MAKE} -C "${JDK_PORTDIR}" ${JDK_BUILD_ARGS} stage
+ @${FIND} "${JDK_IMAGEDIR}" -type f \
+ -exec ${STRIP_CMD} -s {} \; 2> /dev/null
+.endif
+ @cd "${JDK_IMAGEDIR}" && \
+ ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${PLIST} | \
+ ${GREP} -v ^@ | ${TAR} -c -f - -T - -s '|^\./|${JDK_ROOT}/|' | \
+ ${XZ_CMD} -9 -c > "${DISTDIR}/${DISTFILE}"
+ @${SED} -i.bak \
+ 's/^DISTVERSION_${JDK_ARCH}=.*/DISTVERSION_${JDK_ARCH}= r${PORTREVISION}/' \
+ "${MAKEFILE}"
+ @${MAKE} -f "${MAKEFILE}" makesum DISTDIR="${DISTDIR}" \
+ DISTINFO_FILE="${DISTINFO_FILE}"
+ @${ECHO} ""
+ @${ECHO} "=============================================================="
+ @${ECHO} ""
+ @${ECHO} "${DISTFILE} was built successfully!"
+ @${ECHO} ""
+ @${ECHO} "Finished at "`date -u`"."
+ @${ECHO} ""
+ @${ECHO} "You may clean up the build directory if everything looks okay,"
+ @${ECHO} "e.g., 'rm -fr ${JDK_PORTDIR}/work'."
+ @${ECHO} ""
+ @${ECHO} "=============================================================="
+ @${ECHO} ""
diff --git a/java/bootstrap-openjdk8/distinfo.amd64 b/java/bootstrap-openjdk8/distinfo.amd64
new file mode 100644
index 000000000000..938a21121a2d
--- /dev/null
+++ b/java/bootstrap-openjdk8/distinfo.amd64
@@ -0,0 +1,3 @@
+TIMESTAMP = 1506581409
+SHA256 (openjdk8-amd64-r450802.tar.xz) = 62436cab1d96c02130c6165d64d3c2e20823bd71bacf3a006f95fea90892897d
+SIZE (openjdk8-amd64-r450802.tar.xz) = 28889044
diff --git a/java/bootstrap-openjdk8/distinfo.arm b/java/bootstrap-openjdk8/distinfo.arm
new file mode 100644
index 000000000000..bba2a5e5b5e8
--- /dev/null
+++ b/java/bootstrap-openjdk8/distinfo.arm
@@ -0,0 +1,3 @@
+TIMESTAMP = 1506551470
+SHA256 (openjdk8-arm-r444448.tar.xz) = 9ebe082068fd919ae956c5b604a9db1e4199afc00875eb890ff6c132ebe6d371
+SIZE (openjdk8-arm-r444448.tar.xz) = 22669660
diff --git a/java/bootstrap-openjdk8/distinfo.i386 b/java/bootstrap-openjdk8/distinfo.i386
new file mode 100644
index 000000000000..f6d4b20cc039
--- /dev/null
+++ b/java/bootstrap-openjdk8/distinfo.i386
@@ -0,0 +1,3 @@
+TIMESTAMP = 1506626048
+SHA256 (openjdk8-i386-r450802.tar.xz) = fd50a89cba62639bbc5778f5cab169f81be0ae3753c5dc44f68bfd1d576ccca9
+SIZE (openjdk8-i386-r450802.tar.xz) = 28295956
diff --git a/java/bootstrap-openjdk8/pkg-descr b/java/bootstrap-openjdk8/pkg-descr
new file mode 100644
index 000000000000..74c5ea8d924c
--- /dev/null
+++ b/java/bootstrap-openjdk8/pkg-descr
@@ -0,0 +1,7 @@
+OpenJDK is an open-source implementation of the Java Platform, Standard Edition.
+
+Much of the OpenJDK code is licensed under the GPL version 2 with the
+Classpath exception. The Java Hotspot virtual machine source code is
+licensed under the GPL version 2 only.
+
+WWW: http://openjdk.java.net/
diff --git a/java/bootstrap-openjdk8/pkg-message b/java/bootstrap-openjdk8/pkg-message
new file mode 100644
index 000000000000..f644fb30d822
--- /dev/null
+++ b/java/bootstrap-openjdk8/pkg-message
@@ -0,0 +1,19 @@
+======================================================================
+
+WARNING: This port only exists for bootstrapping java/openjdk8.
+You are advised to remove this port as soon as a stable JDK is built.
+
+This OpenJDK implementation requires fdescfs(5) mounted on /dev/fd and
+procfs(5) mounted on /proc.
+
+If you have not done it yet, please do the following:
+
+ mount -t fdescfs fdesc /dev/fd
+ mount -t procfs proc /proc
+
+To make it permanent, you need the following lines in /etc/fstab:
+
+ fdesc /dev/fd fdescfs rw 0 0
+ proc /proc procfs rw 0 0
+
+======================================================================
diff --git a/java/bootstrap-openjdk8/pkg-plist b/java/bootstrap-openjdk8/pkg-plist
new file mode 100644
index 000000000000..d3583716ebc7
--- /dev/null
+++ b/java/bootstrap-openjdk8/pkg-plist
@@ -0,0 +1,49 @@
+%%JDK_ROOT%%/ASSEMBLY_EXCEPTION
+%%JDK_ROOT%%/LICENSE
+%%JDK_ROOT%%/THIRD_PARTY_README
+%%JDK_ROOT%%/bin/jar
+%%JDK_ROOT%%/bin/java
+%%JDK_ROOT%%/bin/javac
+%%JDK_ROOT%%/bin/javah
+%%JDK_ROOT%%/bin/javap
+%%JDK_ROOT%%/bin/native2ascii
+%%JDK_ROOT%%/bin/rmic
+%%JDK_ROOT%%/include/freebsd/jni_md.h
+%%JDK_ROOT%%/include/jni.h
+%%JDK_ROOT%%/jre/ASSEMBLY_EXCEPTION
+%%JDK_ROOT%%/jre/LICENSE
+%%JDK_ROOT%%/jre/THIRD_PARTY_README
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/jspawnhelper
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/jvm.cfg
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/libawt.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/libawt_headless.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/libjava.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/libnet.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/libnio.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/libverify.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/libzip.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/server/libjvm.so
+%%JDK_ROOT%%/jre/lib/charsets.jar
+%%JDK_ROOT%%/jre/lib/currency.data
+%%JDK_ROOT%%/jre/lib/ext/cldrdata.jar
+%%JDK_ROOT%%/jre/lib/ext/dnsns.jar
+%%JDK_ROOT%%/jre/lib/ext/jaccess.jar
+%%JDK_ROOT%%/jre/lib/ext/localedata.jar
+%%JDK_ROOT%%/jre/lib/ext/meta-index
+%%JDK_ROOT%%/jre/lib/ext/nashorn.jar
+%%JDK_ROOT%%/jre/lib/ext/sunec.jar
+%%JDK_ROOT%%/jre/lib/ext/sunjce_provider.jar
+%%JDK_ROOT%%/jre/lib/ext/sunpkcs11.jar
+%%JDK_ROOT%%/jre/lib/ext/zipfs.jar
+%%JDK_ROOT%%/jre/lib/jce.jar
+%%JDK_ROOT%%/jre/lib/jsse.jar
+%%JDK_ROOT%%/jre/lib/logging.properties
+%%JDK_ROOT%%/jre/lib/meta-index
+%%JDK_ROOT%%/jre/lib/net.properties
+%%JDK_ROOT%%/jre/lib/resources.jar
+%%JDK_ROOT%%/jre/lib/rt.jar
+%%JDK_ROOT%%/jre/lib/security/java.security
+%%JDK_ROOT%%/jre/lib/tzdb.dat
+%%JDK_ROOT%%/lib/%%JDK_ARCH%%/jli/libjli.so
+%%JDK_ROOT%%/lib/ct.sym
+%%JDK_ROOT%%/lib/tools.jar
diff --git a/java/bootstrap-openjdk8/pkg-plist.arm b/java/bootstrap-openjdk8/pkg-plist.arm
new file mode 100644
index 000000000000..900acead941e
--- /dev/null
+++ b/java/bootstrap-openjdk8/pkg-plist.arm
@@ -0,0 +1,56 @@
+%%JDK_ROOT%%/ASSEMBLY_EXCEPTION
+%%JDK_ROOT%%/LICENSE
+%%JDK_ROOT%%/THIRD_PARTY_README
+%%JDK_ROOT%%/bin/idlj
+%%JDK_ROOT%%/bin/jar
+%%JDK_ROOT%%/bin/java
+%%JDK_ROOT%%/bin/javac
+%%JDK_ROOT%%/bin/javah
+%%JDK_ROOT%%/bin/javap
+%%JDK_ROOT%%/bin/native2ascii
+%%JDK_ROOT%%/bin/rmic
+%%JDK_ROOT%%/include/freebsd/jni_md.h
+%%JDK_ROOT%%/include/jni.h
+%%JDK_ROOT%%/jre/ASSEMBLY_EXCEPTION
+%%JDK_ROOT%%/jre/LICENSE
+%%JDK_ROOT%%/jre/THIRD_PARTY_README
+%%JDK_ROOT%%/jre/bin/java
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/jvm.cfg
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/libawt.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/libawt_headless.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/libawt_xawt.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/libfontmanager.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/libjava.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/libjpeg.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/liblcms.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/libnet.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/libnio.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/libverify.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/libzip.so
+%%JDK_ROOT%%/jre/lib/%%JDK_ARCH%%/server/libjvm.so
+%%JDK_ROOT%%/jre/lib/charsets.jar
+%%JDK_ROOT%%/jre/lib/cmm/CIEXYZ.pf
+%%JDK_ROOT%%/jre/lib/cmm/GRAY.pf
+%%JDK_ROOT%%/jre/lib/cmm/LINEAR_RGB.pf
+%%JDK_ROOT%%/jre/lib/cmm/PYCC.pf
+%%JDK_ROOT%%/jre/lib/cmm/sRGB.pf
+%%JDK_ROOT%%/jre/lib/currency.data
+%%JDK_ROOT%%/jre/lib/ext/dnsns.jar
+%%JDK_ROOT%%/jre/lib/ext/localedata.jar
+%%JDK_ROOT%%/jre/lib/ext/meta-index
+%%JDK_ROOT%%/jre/lib/ext/sunjce_provider.jar
+%%JDK_ROOT%%/jre/lib/ext/sunpkcs11.jar
+%%JDK_ROOT%%/jre/lib/fontconfig.bfc
+%%JDK_ROOT%%/jre/lib/jce.jar
+%%JDK_ROOT%%/jre/lib/jsse.jar
+%%JDK_ROOT%%/jre/lib/logging.properties
+%%JDK_ROOT%%/jre/lib/meta-index
+%%JDK_ROOT%%/jre/lib/net.properties
+%%JDK_ROOT%%/jre/lib/resources.jar
+%%JDK_ROOT%%/jre/lib/rt.jar
+%%JDK_ROOT%%/jre/lib/security/java.security
+%%JDK_ROOT%%/jre/lib/tzdb.dat
+%%JDK_ROOT%%/jre/lib/zi
+%%JDK_ROOT%%/lib/%%JDK_ARCH%%/jli/libjli.so
+%%JDK_ROOT%%/lib/ct.sym
+%%JDK_ROOT%%/lib/tools.jar