-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openjdk8, openjdk11: Add new port for OpenJDK 8 and migrate OpenJDK 1…
…1 to AdoptOpenJDK
- Loading branch information
1 parent
694f35a
commit a9c8334
Showing
2 changed files
with
111 additions
and
74 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 | ||
|
||
PortSystem 1.0 | ||
|
||
name openjdk8 | ||
version 8u192 | ||
revision 0 | ||
|
||
set build 12 | ||
set major 8 | ||
|
||
subport openjdk10 { | ||
version 10.0.2 | ||
revision 2 | ||
|
||
set build 13 | ||
set major 10 | ||
} | ||
|
||
subport openjdk11 { | ||
version 11.0.1 | ||
revision 3 | ||
|
||
set build 13 | ||
set major 11 | ||
} | ||
|
||
categories java devel | ||
maintainers {breun.nl:nils @breun} openmaintainer | ||
platforms darwin | ||
license GPL-2 | ||
supported_archs x86_64 | ||
|
||
description Open Java Development Kit ${major} | ||
|
||
long_description AdoptOpenJDK provides prebuilt OpenJDK binaries from a fully \ | ||
open-source set of build scripts and infratructure. | ||
|
||
homepage https://adoptopenjdk.net/ | ||
|
||
if {${subport} eq ${name}} { | ||
# openjdk8 (AdoptOpenJDK) | ||
master_sites https://github.com/AdoptOpenJDK/openjdk${major}-binaries/releases/download/jdk${version}-b${build}/ | ||
|
||
checksums rmd160 625de009ff2a8a31d72774a863ae6dc6a17fbc96 \ | ||
sha256 cde59e884c473c3be52400bfad14b3ea1d8c42c994649f064ef335a727a36594 \ | ||
size 75821422 | ||
|
||
distname OpenJDK${major}U-jdk_x64_mac_hotspot_${version}b${build} | ||
worksrcdir jdk${version}-b${build} | ||
|
||
configure.cxx_stdlib libstdc++ | ||
} elseif {${subport} eq "openjdk10"} { | ||
# openjdk10 (Oracle) | ||
master_sites https://download.java.net/java/GA/jdk${major}/${version}/19aef61b38124481863b1413dce1855f/${build}/ | ||
|
||
checksums rmd160 d29498411adc487bf8191adbc4276c72602022cf \ | ||
sha256 77ea7675ee29b85aa7df138014790f91047bfdafbc997cb41a1030a0417356d7 \ | ||
size 200916897 | ||
|
||
distname openjdk-${version}_osx-x64_bin | ||
worksrcdir jdk-${version}.jdk | ||
|
||
long_description Production-ready, free and open-source build of the Java \ | ||
Development Kit, an implementation of the Java Standard \ | ||
Edition (SE) ${major} Platform. OpenJDK is the official reference \ | ||
implementation of Java SE. Included components are the \ | ||
HotSpot virtual machine, the Java class library and the Java \ | ||
compiler. | ||
|
||
homepage https://jdk.java.net/${major}/ | ||
} else { | ||
# openjdk11 (AdoptOpenJDK) | ||
master_sites https://github.com/AdoptOpenJDK/openjdk${major}-binaries/releases/download/jdk-${version}%2B${build}/ | ||
|
||
checksums rmd160 e579e79d76ba1692a1ac5ea59ea0ffa9a3a1daa3 \ | ||
sha256 e219e7e2d586ed09ae65f4ec390fca5d5f0c37a61b47677648610194daf1aaa7 \ | ||
size 189911499 | ||
|
||
distname OpenJDK${major}U-jdk_x64_mac_hotspot_${version}_${build} | ||
worksrcdir jdk-${version}+${build} | ||
} | ||
|
||
use_configure no | ||
|
||
build {} | ||
|
||
# macOS Java tools expect to find Java virtual machines under /Library/Java/JavaVirtualMachines, which is not under ${prefix}. | ||
destroot.violate_mtree yes | ||
|
||
set target /Library/Java/JavaVirtualMachines/openjdk${major} | ||
set destroot_target ${destroot}${target} | ||
|
||
destroot { | ||
xinstall -m 755 -d ${destroot_target} | ||
copy ${worksrcpath}/Contents ${destroot_target} | ||
} | ||
|
||
notes " | ||
If you have more than one JDK installed you can make JDK ${major} the default | ||
by adding the following line to your Bash shell profile (~/.bash_profile): | ||
export JAVA_HOME=${target}/Contents/Home | ||
" | ||
|
||
if {${subport} eq "openjdk10"} { | ||
notes-append " | ||
Warning: Support for OpenJDK ${major} has reached end of life and there will be no more updates. | ||
Please consider migrating to a supported OpenJDK version. | ||
" | ||
} |
a9c8334
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AdoptOpenJDK is broken on mac: adoptium/temurin-build#489