Add a port of OpenJDK8.

Submitted by:	Brian Gardner <openjdk@getsnappy.com> (preliminary version)
This commit is contained in:
Jung-uk Kim 2014-03-28 22:11:29 +00:00
parent 50d0809adf
commit aa8f38c3b6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349468
18 changed files with 8780 additions and 0 deletions

View file

@ -128,6 +128,7 @@
SUBDIR += openjdk6
SUBDIR += openjdk6-jre
SUBDIR += openjdk7
SUBDIR += openjdk8
SUBDIR += phpeclipse
SUBDIR += poseidon
SUBDIR += proguard

211
java/openjdk8/Makefile Normal file
View file

@ -0,0 +1,211 @@
# $FreeBSD$
PORTNAME= openjdk
PORTVERSION= ${JDK_MAJOR_VERSION}.${PORT_MINOR_VERSION}.${PORT_BUILD_NUMBER:S/^0//}
CATEGORIES= java devel
MASTER_SITES= http://download.java.net/openjdk/jdk8/promoted/b${JDK_BUILD_NUMBER}/:jdk \
https://adopt-openjdk.ci.cloudbees.com/job/jtreg/${JTREG_JENKINS_BUILD}/artifact/:jtreg \
LOCAL/jkim:jdk LOCAL/jkim:jtreg
DISTNAME= ${PORTNAME}-${JDK_MAJOR_VERSION}-src-b${JDK_BUILD_NUMBER}-${JDK_BUILD_DATE}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:jdk
MAINTAINER= java@FreeBSD.org
COMMENT= Java Development Kit 8
LICENSE= GPLv2
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \
${LOCALBASE}/include/cups/cups.h:${PORTSDIR}/print/cups-client \
bash:${PORTSDIR}/shells/bash
LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib \
libfreetype.so:${PORTSDIR}/print/freetype2 \
libgif.so:${PORTSDIR}/graphics/giflib
RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper \
${LOCALBASE}/lib/X11/fonts/dejavu:${PORTSDIR}/x11-fonts/dejavu
USES= compiler:features dos2unix gmake iconv pkgconfig shebangfix zip
USE_AUTOTOOLS= autoconf
USE_XORG= x11 xext xi xrender xt xtst
LATEST_LINK= openjdk8
ONLY_FOR_ARCHS= i386 amd64
WRKSRC= ${WRKDIR}/${PORTNAME}
DOS2UNIX_FILES= jdk/src/share/classes/com/sun/org/apache/xml/internal/security/resource/xmlsecurity_en.properties
SHEBANG_FILES= configure
_MAKE_JOBS= #
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ENV= LANG="C" LC_ALL="C"
MAKE_ENV+= CLASSPATH="" JAVA_HOME="" LD_LIBRARY_PATH="" MAKEFLAGS=""
MAKE_ENV+= IGNORE_OLD_CONFIG=true
JDK_BUILDDIR= ${WRKSRC}/build/${JDK_OSARCH}-normal-server-${JDK_BUILD_TYPE}
JDK_IMAGEDIR= ${JDK_BUILDDIR}/images/j2sdk-image
JDK_OSARCH= bsd-${ARCH:S/i386/x86/:S/amd64/x86_64/}
INSTALLDIR= ${PREFIX}/${PORTNAME}${JDK_MAJOR_VERSION}
NOPRECIOUSMAKEVARS= yes
JDK_MAJOR_VERSION= 8
JDK_BUILD_NUMBER= 132
JDK_BUILD_DATE= 03_mar_2014
JTREG_VERSION= 4.1
JTREG_BUILD_NUMBER= b08
JTREG_JENKINS_BUILD= 77
PORT_MINOR_VERSION= 0
PORT_BUILD_NUMBER= ${JDK_BUILD_NUMBER}
CONFIGURE_ARGS= --with-boot-jdk=${BOOTSTRAPJDKDIR}
CONFIGURE_ARGS+= --with-build-number="b${PORT_BUILD_NUMBER}"
.if ${PORT_MINOR_VERSION} > 0
CONFIGURE_ARGS+= --with-update-version=${PORT_MINOR_VERSION}
.endif
CONFIGURE_ARGS+= --disable-freetype-bundling \
--disable-zip-debug-info \
--with-alsa=${LOCALBASE} \
--with-cacerts-file=${FILESDIR}/cacerts \
--with-cups=${LOCALBASE} \
--with-debug-level=${JDK_BUILD_TYPE} \
--with-freetype=${LOCALBASE} \
--with-freetype-include=${LOCALBASE}/include/freetype2 \
--with-giflib=system \
--with-jobs=${MAKE_JOBS_NUMBER} \
--with-milestone=fcs \
--with-zlib=system
CONFIGURE_SCRIPT= ../../configure
CONFIGURE_WRKSRC= ${WRKSRC}/common/autoconf
OPTIONS_DEFINE= POLICY TEST TZUPDATE
OPTIONS_DEFAULT= POLICY RELEASE TZUPDATE
OPTIONS_SINGLE= BUILD
OPTIONS_SINGLE_BUILD= DEBUG DEBUGFAST RELEASE
BUILD_DESC= Select OpenJDK build type
DEBUG_DESC= Build for debugging (without optimizations)
DEBUGFAST_DESC= Build for debugging (with optimizations)
POLICY_DESC= Install the Unlimited Strength Policy Files
RELEASE_DESC= Build for release (default)
TEST_DESC= Run regression tests
TZUPDATE_DESC= Update the time zone data
POLICY_CONFIGURE_ENABLE=unlimited-crypto
RELEASE_CONFIGURE_ON= --disable-debug-symbols
TEST_ALL_TARGET= test
TEST_CONFIGURE_ON= --with-jtreg=${WRKDIR}/jtreg
TEST_DISTFILES= jtreg${JTREG_VERSION}-${JTREG_BUILD_NUMBER}.tar.gz:jtreg
TZUPDATE_RUN_DEPENDS= ${LOCALBASE}/share/java/zi:${PORTSDIR}/java/java-zoneinfo:${PORTSDIR}/converters/libiconv
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDEBUG}
JDK_BUILD_TYPE= slowdebug
.elif ${PORT_OPTIONS:MDEBUGFAST}
JDK_BUILD_TYPE= fastdebug
.elif ${PORT_OPTIONS:MRELEASE}
JDK_BUILD_TYPE= release
.endif
.include <bsd.port.pre.mk>
BOOTSTRAP_JDKS= ${LOCALBASE}/openjdk8 \
${LOCALBASE}/openjdk7
# do we have valid native jdk installed?
.for BJDK in ${BOOTSTRAP_JDKS}
. if !defined(BOOTSTRAPJDKDIR) && exists(${BJDK}/bin/javac)
BOOTSTRAPJDKDIR= ${BJDK}
. endif
.endfor
# if no valid jdk found, set dependency
.if !defined(BOOTSTRAPJDKDIR)
BOOTSTRAPJDKDIR?= ${LOCALBASE}/openjdk7
BUILD_DEPENDS+= ${BOOTSTRAPJDKDIR}/bin/javac:${PORTSDIR}/java/openjdk7
.endif
.if ${COMPILER_TYPE} == clang
MAKE_ENV+= USE_CLANG=true
.if ${COMPILER_FEATURES:Mlibc++}
CONFIGURE_ENV= LIBCXX="-lc++"
.endif
.endif
.if empty(ICONV_LIB)
ICONV_CPPFLAGS= -DLIBICONV_PLUG
.else
ICONV_CPPFLAGS= -I${LOCALBASE}/include
ICONV_LDFLAGS= -L${LOCALBASE}/lib ${ICONV_LIB}
.endif
post-extract:
@${MKDIR} ${WRKSRC}/jdk/src/bsd/classes/java/net \
${WRKSRC}/jdk/src/bsd/classes/sun/nio/ch
@${MV} -f ${WRKSRC}/jdk/src/macosx/classes/java/net/DefaultInterface.java \
${WRKSRC}/jdk/src/bsd/classes/java/net
@${MV} -f ${WRKSRC}/jdk/src/macosx/classes/sun/nio/ch/DefaultSelectorProvider.java \
${WRKSRC}/jdk/src/bsd/classes/sun/nio/ch
@${MV} -f ${WRKSRC}/jdk/src/macosx/classes/sun/nio/ch/KQueue*.java \
${WRKSRC}/jdk/src/solaris/classes/sun/nio/ch
@${MV} -f ${WRKSRC}/jdk/src/macosx/native/sun/nio/ch/KQueue*.c \
${WRKSRC}/jdk/src/solaris/native/sun/nio/ch
@${RMDIR} ${WRKSRC}/jdk/src/macosx/classes/java/net \
${WRKSRC}/jdk/src/macosx/native/sun/nio/ch \
${WRKSRC}/jdk/src/macosx/native/sun/nio
post-patch:
@${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
${FILESDIR}/bsd.fontconfig.properties.in > \
${WRKSRC}/jdk/src/solaris/classes/sun/awt/fontconfigs/bsd.fontconfig.properties
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
${WRKSRC}/configure \
${WRKSRC}/hotspot/src/os/bsd/vm/os_bsd.cpp \
${WRKSRC}/jdk/make/lib/SoundLibraries.gmk \
${WRKSRC}/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/Metacity.java \
${WRKSRC}/jdk/src/solaris/bin/java_md_solinux.h \
${WRKSRC}/jdk/src/solaris/classes/sun/nio/fs/BsdFileSystemProvider.java
@${REINPLACE_CMD} -e 's|%%ICONV_CPPFLAGS%%|${ICONV_CPPFLAGS}|' \
-e 's|%%ICONV_LDFLAGS%%|${ICONV_LDFLAGS}|' \
${WRKSRC}/jdk/make/lib/CoreLibraries.gmk \
${WRKSRC}/jdk/make/lib/ServiceabilityLibraries.gmk
@${CHMOD} 755 ${WRKSRC}/configure
post-build:
@${JDK_IMAGEDIR}/bin/jar cfe \
${JDK_IMAGEDIR}/jre/lib/compilefontconfig.jar \
build.tools.compilefontconfig.CompileFontConfig \
-C ${JDK_BUILDDIR}/jdk/btclasses build/tools/compilefontconfig
@${JDK_IMAGEDIR}/bin/jar cfe \
${JDK_IMAGEDIR}/jre/lib/javazic.jar \
build.tools.tzdb.TzdbZoneRulesCompiler \
-C ${JDK_BUILDDIR}/jdk/btclasses build/tools/tzdb
.if ${PORT_OPTIONS:MTZUPDATE}
@# Update time zones
@${RM} -rf ${JDK_IMAGEDIR}/jre/lib/zi
@${LN} -sf ${LOCALBASE}/share/java/zi ${JDK_IMAGEDIR}/jre/lib
.endif
do-install:
@${MKDIR} ${STAGEDIR}${INSTALLDIR}
@cd ${JDK_IMAGEDIR} && \
${COPYTREE_SHARE} . ${STAGEDIR}${INSTALLDIR} \
"-not ( -type d -name bin -prune )"
@cd ${JDK_IMAGEDIR} && \
${COPYTREE_BIN} "bin jre/bin" ${STAGEDIR}${INSTALLDIR}
@cd ${JDK_IMAGEDIR} && \
${INSTALL_PROGRAM} jre/lib/jspawnhelper \
${STAGEDIR}${INSTALLDIR}/jre/lib
@cd ${JDK_IMAGEDIR} && \
${INSTALL_PROGRAM} jre/lib/${ARCH}/jexec \
${STAGEDIR}${INSTALLDIR}/jre/lib/${ARCH}
@cd ${JDK_IMAGEDIR} && \
${INSTALL_PROGRAM} lib/${ARCH}/jexec \
${STAGEDIR}${INSTALLDIR}/lib/${ARCH}
@${ECHO} "@unexec ${LOCALBASE}/bin/unregistervm ${INSTALLDIR}/bin/java" >> ${TMPPLIST}
@${FIND} -s ${STAGEDIR}${INSTALLDIR} -not -type d | ${SORT} | \
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
@${FIND} ${STAGEDIR}${INSTALLDIR} -type d | ${SORT} -r | \
${SED} -e 's,^${STAGEDIR}${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
@${ECHO} "@exec ${LOCALBASE}/bin/registervm '${INSTALLDIR}/bin/java # OpenJDK${JDK_MAJOR_VERSION}'" >> ${TMPPLIST}
.include <bsd.port.post.mk>

4
java/openjdk8/distinfo Normal file
View file

@ -0,0 +1,4 @@
SHA256 (openjdk-8-src-b132-03_mar_2014.zip) = ba651f9aa68fdc823b2ef55510710a013ab9f78fff291d5dc1c4d166f3e1e589
SIZE (openjdk-8-src-b132-03_mar_2014.zip) = 124099402
SHA256 (jtreg4.1-b08.tar.gz) = a9fbfac903313c12687e60978c4688c20189cdf873560125917d6ad53d55b30c
SIZE (jtreg4.1-b08.tar.gz) = 6834252

View file

@ -0,0 +1,191 @@
#
#
# Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
# Version
# Uses FreeBSD ports Tree fonts and file paths.
version=1
# Component Font Mappings
dialog.plain.latin-1=DejaVu Sans
dialog.plain.japanese-x0208=Sazanami Gothic
dialog.plain.korean=NanumGothic
dialog.plain.chinese-big5=AR PL UMing
dialog.plain.chinese-gb18030=AR PL UMing
dialog.bold.latin-1=DejaVu Sans Bold
dialog.bold.japanese-x0208=Sazanami Gothic
dialog.bold.korean=NanumGothic Bold
dialog.bold.chinese-big5=AR PL UMing
dialog.bold.chinese-gb18030=AR PL UMing
dialog.italic.latin-1=DejaVu Sans Oblique
dialog.italic.japanese-x0208=Sazanami Gothic
dialog.italic.korean=NanumGothic
dialog.italic.chinese-big5=AR PL UMing
dialog.italic.chinese-gb18030=AR PL UMing
dialog.bolditalic.latin-1=DejaVu Sans Bold Oblique
dialog.bolditalic.japanese-x0208=Sazanami Gothic
dialog.bolditalic.korean=NanumGothic Bold
dialog.bolditalic.chinese-big5=AR PL UMing
dialog.bolditalic.chinese-gb18030=AR PL UMing
sansserif.plain.latin-1=DejaVu Sans
sansserif.plain.japanese-x0208=Sazanami Gothic
sansserif.plain.korean=NanumGothic
sansserif.plain.chinese-big5=AR PL UMing
sansserif.plain.chinese-gb18030=AR PL UMing
sansserif.bold.latin-1=DejaVu Sans Bold
sansserif.bold.japanese-x0208=Sazanami Gothic
sansserif.bold.korean=NanumGothic Bold
sansserif.bold.chinese-big5=AR PL UMing
sansserif.bold.chinese-gb18030=AR PL UMing
sansserif.italic.latin-1=DejaVu Sans Oblique
sansserif.italic.japanese-x0208=Sazanami Gothic
sansserif.italic.korean=NanumGothic
sansserif.italic.chinese-big5=AR PL UMing
sansserif.italic.chinese-gb18030=AR PL UMing
sansserif.bolditalic.latin-1=DejaVu Sans Bold Oblique
sansserif.bolditalic.japanese-x0208=Sazanami Gothic
sansserif.bolditalic.korean=NanumGothic Bold
sansserif.bolditalic.chinese-big5=AR PL UMing
sansserif.bolditalic.chinese-gb18030=AR PL UMing
serif.plain.latin-1=DejaVu Serif
serif.plain.japanese-x0208=Sazanami Mincho
serif.plain.korean=NanumMyeongjo
serif.plain.chinese-big5=AR PL UKai
serif.plain.chinese-gb18030=AR PL UKai
serif.bold.latin-1=DejaVu Serif Bold
serif.bold.japanese-x0208=Sazanami Mincho
serif.bold.korean=NanumMyeongjo Bold
serif.bold.chinese-big5=AR PL UKai
serif.bold.chinese-gb18030=AR PL UKai
serif.italic.latin-1=DejaVu Serif Italic
serif.italic.japanese-x0208=Sazanami Mincho
serif.italic.korean=NanumMyeongjo
serif.italic.chinese-big5=AR PL UKai
serif.italic.chinese-gb18030=AR PL UKai
serif.bolditalic.latin-1=DejaVu Serif Bold Italic
serif.bolditalic.japanese-x0208=Sazanami Mincho
serif.bolditalic.korean=NanumMyeongjo Bold
serif.bolditalic.chinese-big5=AR PL UKai
serif.bolditalic.chinese-gb18030=AR PL UKai
monospaced.plain.latin-1=DejaVu Sans Mono
monospaced.plain.japanese-x0208=Sazanami Gothic
monospaced.plain.korean=NanumGothic
monospaced.plain.chinese-big5=AR PL UMing
monospaced.plain.chinese-gb18030=AR PL UMing
monospaced.bold.latin-1=DejaVu Sans Mono Bold
monospaced.bold.japanese-x0208=Sazanami Gothic
monospaced.bold.korean=NanumGothic Bold
monospaced.bold.chinese-big5=AR PL UMing
monospaced.bold.chinese-gb18030=AR PL UMing
monospaced.italic.latin-1=DejaVu Sans Mono Oblique
monospaced.italic.japanese-x0208=Sazanami Gothic
monospaced.italic.korean=NanumGothic
monospaced.italic.chinese-big5=AR PL UMing
monospaced.italic.chinese-gb18030=AR PL UMing
monospaced.bolditalic.latin-1=DejaVu Sans Mono Bold Oblique
monospaced.bolditalic.japanese-x0208=Sazanami Gothic
monospaced.bolditalic.korean=NanumGothic Bold
monospaced.bolditalic.chinese-big5=AR PL UMing
monospaced.bolditalic.chinese-gb18030=AR PL UMing
dialoginput.plain.latin-1=DejaVu Sans Mono
dialoginput.plain.japanese-x0208=Sazanami Gothic
dialoginput.plain.korean=NanumGothic
dialoginput.plain.chinese-big5=AR PL UMing
dialoginput.plain.chinese-gb18030=AR PL UMing
dialoginput.bold.latin-1=DejaVu Sans Mono Bold
dialoginput.bold.japanese-x0208=Sazanami Gothic
dialoginput.bold.korean=NanumGothic Bold
dialoginput.bold.chinese-big5=AR PL UMing
dialoginput.bold.chinese-gb18030=AR PL UMing
dialoginput.italic.latin-1=DejaVu Sans Mono Oblique
dialoginput.italic.japanese-x0208=Sazanami Gothic
dialoginput.italic.korean=NanumGothic
dialoginput.italic.chinese-big5=AR PL UMing
dialoginput.italic.chinese-gb18030=AR PL UMing
dialoginput.bolditalic.latin-1=DejaVu Sans Mono Bold Oblique
dialoginput.bolditalic.japanese-x0208=Sazanami Gothic
dialoginput.bolditalic.korean=NanumGothic Bold
dialoginput.bolditalic.chinese-big5=AR PL UMing
dialoginput.bolditalic.chinese-gb18030=AR PL UMing
# Search Sequences
sequence.allfonts=latin-1
sequence.allfonts.Big5=chinese-big5,latin-1
sequence.allfonts.x-euc-jp-bsd=japanese-x0208,latin-1
sequence.allfonts.EUC-KR=korean,latin-1
sequence.allfonts.GB18030=chinese-gb18030,latin-1
sequence.fallback=chinese-big5,chinese-gb18030,japanese-x0208,korean
# Font File Names
filename.DejaVu_Sans=%%LOCALBASE%%/lib/X11/fonts/dejavu/DejaVuSans.ttf
filename.DejaVu_Sans_Bold=%%LOCALBASE%%/lib/X11/fonts/dejavu/DejaVuSans-Bold.ttf
filename.DejaVu_Sans_Oblique=%%LOCALBASE%%/lib/X11/fonts/dejavu/DejaVuSans-Oblique.ttf
filename.DejaVu_Sans_Bold_Oblique=%%LOCALBASE%%/lib/X11/fonts/dejavu/DejaVuSans-BoldOblique.ttf
filename.DejaVu_Sans_Mono=%%LOCALBASE%%/lib/X11/fonts/dejavu/DejaVuSansMono.ttf
filename.DejaVu_Sans_Mono_Bold=%%LOCALBASE%%/lib/X11/fonts/dejavu/DejaVuSansMono-Bold.ttf
filename.DejaVu_Sans_Mono_Oblique=%%LOCALBASE%%/lib/X11/fonts/dejavu/DejaVuSansMono-Oblique.ttf
filename.DejaVu_Sans_Mono_Bold_Oblique=%%LOCALBASE%%/lib/X11/fonts/dejavu/DejaVuSansMono-BoldOblique.ttf
filename.DejaVu_Serif=%%LOCALBASE%%/lib/X11/fonts/dejavu/DejaVuSerif.ttf
filename.DejaVu_Serif_Bold=%%LOCALBASE%%/lib/X11/fonts/dejavu/DejaVuSerif-Bold.ttf
filename.DejaVu_Serif_Italic=%%LOCALBASE%%/lib/X11/fonts/dejavu/DejaVuSerif-Italic.ttf
filename.DejaVu_Serif_Bold_Italic=%%LOCALBASE%%/lib/X11/fonts/dejavu/DejaVuSerif-BoldItalic.ttf
filename.Sazanami_Gothic=%%LOCALBASE%%/share/font-sazanami/sazanami-gothic.ttf
filename.Sazanami_Mincho=%%LOCALBASE%%/share/font-sazanami/sazanami-mincho.ttf
filename.AR_PL_ShanHeiSun_Uni=%%LOCALBASE%%/share/fonts/TrueType/uming.ttc
filename.AR_PL_ZenKai_Uni=%%LOCALBASE%%/share/fonts/TrueType/ukai.ttc
filename.NanumGothic=%%LOCALBASE%%/lib/X11/fonts/nanum-ttf/NanumGothic.ttf
filename.NanumGothic_Bold=%%LOCALBASE%%/lib/X11/fonts/nanum-ttf/NanumGothicBold.ttf
filename.NanumMyeongjo=%%LOCALBASE%%/lib/X11/fonts/nanum-ttf/NanumMyeongjo.ttf
filename.NanumMyeongjo_Bold=%%LOCALBASE%%/lib/X11/fonts/nanum-ttf/NanumMyeongjoBold.ttf

BIN
java/openjdk8/files/cacerts Normal file

Binary file not shown.

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,10 @@
--- configure
+++ configure
@@ -26,4 +26,6 @@
# make sure that is called using bash.
this_script_dir=`dirname $0`
-bash $this_script_dir/common/autoconf/configure "$@"
+export CONFIG_SHELL=%%LOCALBASE%%/bin/bash
+export MAKE=%%LOCALBASE%%/bin/gmake
+%%LOCALBASE%%/bin/bash $this_script_dir/common/autoconf/configure "$@"

View file

@ -0,0 +1,11 @@
--- hotspot/src/os/bsd/vm/os_bsd.cpp
+++ hotspot/src/os/bsd/vm/os_bsd.cpp
@@ -441,7 +441,7 @@
ld_library_path = (char *) malloc(sizeof(REG_DIR) + sizeof("/lib/") +
strlen(cpu_arch) + sizeof(DEFAULT_LIBPATH));
#ifdef __FreeBSD__
- sprintf(ld_library_path, DEFAULT_LIBPATH ":/usr/local/lib");
+ sprintf(ld_library_path, DEFAULT_LIBPATH ":%%LOCALBASE%%/lib");
#else
sprintf(ld_library_path, REG_DIR "/lib/%s:" DEFAULT_LIBPATH, cpu_arch);
#endif

View file

@ -0,0 +1,16 @@
--- jdk/make/lib/CoreLibraries.gmk
+++ jdk/make/lib/CoreLibraries.gmk
@@ -513,11 +513,12 @@
CFLAGS := $(CFLAGS_JDKLIB) \
-I$(JDK_TOPDIR)/src/share/npt \
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt, \
+ CFLAGS_bsd := %%ICONV_CPPFLAGS%%, \
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnpt/mapfile-vers, \
LDFLAGS := $(LDFLAGS_JDKLIB) \
$(call SET_SHARED_LIBRARY_ORIGIN), \
LDFLAGS_macosx := -liconv, \
- LDFLAGS_bsd := -liconv, \
+ LDFLAGS_bsd := %%ICONV_LDFLAGS%%, \
LDFLAGS_SUFFIX_windows := -export:nptInitialize -export:nptTerminate, \
LDFLAGS_SUFFIX_solaris := -lc, \
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \

View file

@ -0,0 +1,19 @@
--- jdk/make/lib/ServiceabilityLibraries.gmk
+++ jdk/make/lib/ServiceabilityLibraries.gmk
@@ -244,6 +244,7 @@
CFLAGS := $(LIBINSTRUMENT_CFLAGS), \
CFLAGS_debug := -DJPLIS_LOGGING, \
CFLAGS_release := -DNO_JPLIS_LOGGING, \
+ CFLAGS_bsd := %%ICONV_CPPFLAGS%%, \
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libinstrument/mapfile-vers, \
LDFLAGS := $(LDFLAGS_JDKLIB) \
$(call SET_SHARED_LIBRARY_ORIGIN) \
@@ -255,7 +256,7 @@
-framework Cocoa -framework Security -framework ApplicationServices, \
LDFLAGS_SUFFIX := $(LIBINSTRUMENT_LDFLAGS_SUFFIX), \
LDFLAGS_SUFFIX_macosx := -liconv $(LIBZ), \
- LDFLAGS_SUFFIX_bsd := -liconv $(LIBZ) -L $(INSTALL_LIBRARIES_HERE)/jli -ljli, \
+ LDFLAGS_SUFFIX_bsd := %%ICONV_LDFLAGS%% $(LIBZ) -L $(INSTALL_LIBRARIES_HERE)/jli -ljli, \
LDFLAGS_SUFFIX_solaris := $(LIBZ) -L $(INSTALL_LIBRARIES_HERE)/jli -ljli $(LIBDL) -lc, \
LDFLAGS_SUFFIX_linux := $(LIBZ) -L $(INSTALL_LIBRARIES_HERE)/jli -ljli $(LIBDL), \
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \

View file

@ -0,0 +1,16 @@
--- jdk/make/lib/SoundLibraries.gmk
+++ jdk/make/lib/SoundLibraries.gmk
@@ -196,11 +196,11 @@
-DUSE_PORTS=TRUE, \
CFLAGS_linux := -DUSE_PLATFORM_MIDI_OUT=TRUE \
-DUSE_PLATFORM_MIDI_IN=TRUE, \
- CFLAGS_bsd := -I/usr/local/include, \
+ CFLAGS_bsd := -I%%LOCALBASE%%/include, \
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjsoundalsa/mapfile-vers, \
LDFLAGS := $(LDFLAGS_JDKLIB) \
$(call SET_SHARED_LIBRARY_ORIGIN), \
- LDFLAGS_bsd := -L/usr/local/lib, \
+ LDFLAGS_bsd := -L%%LOCALBASE%%/lib, \
LDFLAGS_SUFFIX := $(ALSA_LIBS) -ljava -ljvm, \
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjsoundalsa, \
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))

View file

@ -0,0 +1,15 @@
--- jdk/src/share/classes/com/sun/java/swing/plaf/gtk/Metacity.java
+++ jdk/src/share/classes/com/sun/java/swing/plaf/gtk/Metacity.java
@@ -477,10 +477,8 @@
String[] dirs = new String[] {
userHome + sep + ".themes",
System.getProperty("swing.metacitythemedir"),
- "/usr/X11R6/share/themes",
- "/usr/X11R6/share/gnome/themes",
- "/usr/local/share/themes",
- "/usr/local/share/gnome/themes",
+ "%%LOCALBASE%%/share/themes",
+ "%%LOCALBASE%%/share/gnome/themes",
"/usr/share/themes",
"/usr/gnome/share/themes", // Debian/Redhat/Solaris
"/opt/gnome2/share/themes" // SuSE

View file

@ -0,0 +1,12 @@
--- jdk/src/solaris/bin/java_md_solinux.h
+++ jdk/src/solaris/bin/java_md_solinux.h
@@ -48,6 +48,9 @@
#ifdef __linux__
static const char *system_dir = "/usr/java";
static const char *user_dir = "/java";
+#elif defined(_ALLBSD_SOURCE)
+static const char *system_dir = "%%LOCALBASE%%/openjdk8";
+static const char *user_dir = "/java";
#else /* Solaris */
static const char *system_dir = "/usr/jdk";
static const char *user_dir = "/jdk";

View file

@ -0,0 +1,30 @@
--- jdk/src/solaris/classes/sun/nio/fs/BsdFileSystemProvider.java
+++ jdk/src/solaris/classes/sun/nio/fs/BsdFileSystemProvider.java
@@ -26,6 +26,7 @@
package sun.nio.fs;
import java.nio.file.*;
+import java.nio.file.spi.FileSystemProvider;
import java.nio.file.spi.FileTypeDetector;
import java.io.IOException;
import java.security.AccessController;
@@ -40,6 +41,10 @@
super();
}
+ public BsdFileSystemProvider(FileSystemProvider f) {
+ super();
+ }
+
@Override
BsdFileSystem newFileSystem(String dir) {
return new BsdFileSystem(this, dir);
@@ -54,7 +59,7 @@
FileTypeDetector getFileTypeDetector() {
Path userMimeTypes = Paths.get(AccessController.doPrivileged(
new GetPropertyAction("user.home")), ".mime.types");
- Path etcMimeTypes = Paths.get("/etc/mime.types");
+ Path etcMimeTypes = Paths.get("%%LOCALBASE%%/etc/mime.types");
return chain(new GnomeFileTypeDetector(),
new MimeTypesFileTypeDetector(userMimeTypes),

View file

@ -0,0 +1,38 @@
--- jdk/src/solaris/classes/sun/nio/fs/DefaultFileSystemProvider.java
+++ jdk/src/solaris/classes/sun/nio/fs/DefaultFileSystemProvider.java
@@ -27,6 +27,8 @@
import java.nio.file.spi.FileSystemProvider;
import java.security.AccessController;
+import java.util.Set;
+import java.util.HashSet;
import sun.security.action.GetPropertyAction;
/**
@@ -36,6 +38,15 @@
public class DefaultFileSystemProvider {
private DefaultFileSystemProvider() { }
+ private static final Set<String> validFileSystemProviders
+ = new HashSet<String>();
+ static {
+ validFileSystemProviders.add("sun.nio.fs.SolarisFileSystemProvider");
+ validFileSystemProviders.add("sun.nio.fs.LinuxFileSystemProvider");
+ validFileSystemProviders.add("sun.nio.fs.BsdFileSystemProvider");
+ validFileSystemProviders.add("sun.nio.fs.MacOSXFileSystemProvider");
+ }
+
@SuppressWarnings("unchecked")
private static FileSystemProvider createProvider(String cn) {
Class<FileSystemProvider> c;
@@ -57,6 +68,10 @@
public static FileSystemProvider create() {
String osname = AccessController
.doPrivileged(new GetPropertyAction("os.name"));
+ String fileSystemProvider = System
+ .getProperty("java.nio.file.spi.DefaultFileSystemProvider");
+ if (validFileSystemProviders.contains(fileSystemProvider))
+ return createProvider(fileSystemProvider);
if (osname.equals("SunOS"))
return createProvider("sun.nio.fs.SolarisFileSystemProvider");
if (osname.equals("Linux"))

3
java/openjdk8/pkg-descr Normal file
View file

@ -0,0 +1,3 @@
An open-source implementation of the Java Platform, Standard Edition,
WWW: http://openjdk.java.net/

16
java/openjdk8/pkg-message Normal file
View file

@ -0,0 +1,16 @@
======================================================================
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
======================================================================