openjdk10: add bootstrap JDK for x86_64.

to simplify the recipe changes it's actually JDK11 for x86_64.
This commit is contained in:
Jerome Duval
2019-02-20 23:05:13 +01:00
parent f142a821c3
commit 60583fcce1

View File

@@ -0,0 +1,51 @@
SUMMARY="Open-source implementation of the Java Platform, SE"
DESCRIPTION="OpenJDK (Open Java Development Kit) is a free and open source \
implementation of the Java Platform, Standard Edition (Java SE). It is the \
result of an effort Sun Microsystems began in 2006. The implementation is \
licensed under the GNU General Public License (GNU GPL) with a linking \
exception. Were it not for the GPL linking exception, components that linked \
to the Java class library would be subject to the terms of the GPL license. \
OpenJDK is the official Java SE 7 reference implementation."
HOMEPAGE="http://openjdk.java.net/"
COPYRIGHT="2012 Oracle and/or its affiliates."
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://korli.keybase.pub/openjdk-11.0.1%2B13-haiku-x86_64.tar.bz2#noarchive"
CHECKSUM_SHA256="cf91d8ec5f974921db6a4fac11cf4269f1feb11f930fb2ea081fdfb91253e872"
ARCHITECTURES="x86_64"
DISABLE_SOURCE_PACKAGE="yes"
PROVIDES="
openjdk10_bin$secondaryArchSuffix = $portVersion compat >= 1.10
java:environment = 10
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku
"
BUILD_PREREQUIRES="
cmd:tar
cmd:xz
"
INSTALL()
{
jdkDir=$libDir/openjdk10
mkdir -p $jdkDir
tar xvf $sourceDir/openjdk-11.0.1%2B13-haiku-x86_64.tar.bz2 -C $jdkDir
# create a profile.d file that sets up JDK10_HOME
jdkProfile=$dataDir/profile.d/openjdk10.sh
mkdir -p $(dirname $jdkProfile)
echo "JDK10_HOME=$jdkDir" > $jdkProfile
echo "export JDK10_HOME" >> $jdkProfile
}