mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
Add bootstrap JDK for OpenJDK6.
java/bootstrap-openjdk will be used for OpenJDK7 and OpenJDK8 later.
This commit is contained in:
parent
5f81b8df55
commit
16f59a4286
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=450710
@ -8,6 +8,7 @@
|
||||
SUBDIR += berkeley-db
|
||||
SUBDIR += bluej
|
||||
SUBDIR += bootstrap-openjdk
|
||||
SUBDIR += bootstrap-openjdk6
|
||||
SUBDIR += bouncycastle
|
||||
SUBDIR += bouncycastle15
|
||||
SUBDIR += cacao
|
||||
|
48
java/bootstrap-openjdk6/Makefile
Normal file
48
java/bootstrap-openjdk6/Makefile
Normal file
@ -0,0 +1,48 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= openjdk6
|
||||
PORTVERSION= ${DISTVERSION_${ARCH}}
|
||||
CATEGORIES= java devel
|
||||
MASTER_SITES= LOCAL/jkim
|
||||
PKGNAMEPREFIX= bootstrap-
|
||||
DISTNAME= ${PORTNAME}-${ARCH}-${PORTVERSION}
|
||||
|
||||
MAINTAINER= jkim@FreeBSD.org
|
||||
COMMENT= Oracle\'s Java 6 virtual machine release under the GPL v2
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
ONLY_FOR_ARCHS= amd64 i386
|
||||
|
||||
RUN_DEPENDS= java-zoneinfo>0:java/java-zoneinfo
|
||||
|
||||
DISTINFO_FILE= ${.CURDIR}/distinfo.${ARCH}
|
||||
DISTVERSION_amd64= r450701
|
||||
DISTVERSION_i386= r450701
|
||||
|
||||
JDK_ROOT= bootstrap-${PORTNAME}
|
||||
|
||||
NO_BUILD= yes
|
||||
PLIST_SUB= ARCH=${ARCH} JDK_ROOT=${JDK_ROOT}
|
||||
USES= tar:xz
|
||||
WRKSRC= ${WRKDIR}/${JDK_ROOT}
|
||||
|
||||
INSTALLDIR= ${STAGEDIR}${PREFIX}/${JDK_ROOT}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "i386"
|
||||
PLIST_SUB+= CLIENTVM=""
|
||||
.else
|
||||
PLIST_SUB+= CLIENTVM="@comment "
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${INSTALLDIR}
|
||||
@cd ${WRKSRC} && ${COPYTREE_BIN} "bin jre/bin" ${INSTALLDIR}
|
||||
|
||||
update:
|
||||
@${MAKE} -f ${.CURDIR}/Makefile.update \
|
||||
JDK_PORT=${PORTNAME} JDK_ROOT=${JDK_ROOT}
|
||||
|
||||
.include <bsd.port.post.mk>
|
92
java/bootstrap-openjdk6/Makefile.update
Normal file
92
java/bootstrap-openjdk6/Makefile.update
Normal file
@ -0,0 +1,92 @@
|
||||
# $FreeBSD$
|
||||
|
||||
JDK_PORT?= openjdk6
|
||||
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}-${ARCH}-r${PORTREVISION}.tar.xz
|
||||
DISTINFO_FILE= ${.CURDIR}/distinfo.${ARCH}
|
||||
MAKEFILE= ${.CURDIR}/Makefile
|
||||
PLIST?= ${.CURDIR}/pkg-plist
|
||||
PLIST_SUB= ARCH="${ARCH}" JDK_ROOT="."
|
||||
|
||||
BUILD_ARGS= BATCH=yes PORT_DBDIR=/var/empty
|
||||
BUILD_ENV= __MAKE_CONF=/dev/null PATH="${PATH}"
|
||||
JDK_BUILD_ARGS= ${BUILD_ARGS}
|
||||
JDK_BUILD_ARGS+=java_openjdk6_UNSET=ICEDTEA
|
||||
|
||||
.if ${ARCH} == "i386"
|
||||
PLIST_SUB+= CLIENTVM=""
|
||||
.else
|
||||
PLIST_SUB+= CLIENTVM="@comment "
|
||||
.endif
|
||||
|
||||
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_${ARCH}=.*/DISTVERSION_${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} ""
|
3
java/bootstrap-openjdk6/distinfo.amd64
Normal file
3
java/bootstrap-openjdk6/distinfo.amd64
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1506476350
|
||||
SHA256 (openjdk6-amd64-r450701.tar.xz) = efeae4b3d09d92d06182fe79b9a0348fddf4229909db33cbb0aef6d25a2fabf0
|
||||
SIZE (openjdk6-amd64-r450701.tar.xz) = 22084332
|
3
java/bootstrap-openjdk6/distinfo.i386
Normal file
3
java/bootstrap-openjdk6/distinfo.i386
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1506476351
|
||||
SHA256 (openjdk6-i386-r450701.tar.xz) = ec38b1473e1a7c4118080043cc6458771f3ac8a9b56dc344e10badd6e4abeece
|
||||
SIZE (openjdk6-i386-r450701.tar.xz) = 22155724
|
7
java/bootstrap-openjdk6/pkg-descr
Normal file
7
java/bootstrap-openjdk6/pkg-descr
Normal file
@ -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/
|
19
java/bootstrap-openjdk6/pkg-message
Normal file
19
java/bootstrap-openjdk6/pkg-message
Normal file
@ -0,0 +1,19 @@
|
||||
======================================================================
|
||||
|
||||
WARNING: This port only exists for bootstrapping java/openjdk[67].
|
||||
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
|
||||
|
||||
======================================================================
|
53
java/bootstrap-openjdk6/pkg-plist
Normal file
53
java/bootstrap-openjdk6/pkg-plist
Normal file
@ -0,0 +1,53 @@
|
||||
%%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/jni.h
|
||||
%%JDK_ROOT%%/include/freebsd/jni_md.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/charsets.jar
|
||||
%%JDK_ROOT%%/jre/lib/currency.data
|
||||
%%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/%%ARCH%%/jvm.cfg
|
||||
%%JDK_ROOT%%/jre/lib/%%ARCH%%/libawt.so
|
||||
%%JDK_ROOT%%/jre/lib/%%ARCH%%/libfontmanager.so
|
||||
%%JDK_ROOT%%/jre/lib/%%ARCH%%/libjava.so
|
||||
%%JDK_ROOT%%/jre/lib/%%ARCH%%/libjpeg.so
|
||||
%%JDK_ROOT%%/jre/lib/%%ARCH%%/liblcms.so
|
||||
%%JDK_ROOT%%/jre/lib/%%ARCH%%/libnet.so
|
||||
%%JDK_ROOT%%/jre/lib/%%ARCH%%/libnio.so
|
||||
%%JDK_ROOT%%/jre/lib/%%ARCH%%/libverify.so
|
||||
%%JDK_ROOT%%/jre/lib/%%ARCH%%/libzip.so
|
||||
%%CLIENTVM%%%%JDK_ROOT%%/jre/lib/%%ARCH%%/client/libjvm.so
|
||||
%%JDK_ROOT%%/jre/lib/%%ARCH%%/headless/libmawt.so
|
||||
%%JDK_ROOT%%/jre/lib/%%ARCH%%/server/libjvm.so
|
||||
%%JDK_ROOT%%/jre/lib/%%ARCH%%/xawt/libmawt.so
|
||||
%%JDK_ROOT%%/jre/lib/cmm/GRAY.pf
|
||||
%%JDK_ROOT%%/jre/lib/cmm/PYCC.pf
|
||||
%%JDK_ROOT%%/jre/lib/cmm/sRGB.pf
|
||||
%%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/security/java.security
|
||||
%%JDK_ROOT%%/jre/lib/zi
|
||||
%%JDK_ROOT%%/lib/ct.sym
|
||||
%%JDK_ROOT%%/lib/tools.jar
|
Loading…
Reference in New Issue
Block a user