0
0
Fork 0
haikuports/dev-lang/openjdk/openjdk10_bin-10.0.2.13.recipe

52 lines
1.5 KiB
Bash

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="all"
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
}