Skip to content

Commit

Permalink
openjdk8: workaround for @rpath/libfreetype.6.dylib UnsatisfiedLinkError
Browse files Browse the repository at this point in the history
  • Loading branch information
breun authored and pmetzger committed Dec 29, 2018
1 parent 86e8570 commit 4b27d90
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion java/openjdk8/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PortSystem 1.0

name openjdk8
version 8u192
revision 0
revision 1

set build 12
set major 8
Expand Down Expand Up @@ -122,6 +122,13 @@ destroot {
copy ${worksrcpath}/Contents ${destroot_target}
}

# Workaround for https://github.com/AdoptOpenJDK/openjdk-build/issues/489
if {${subport} eq "openjdk8"} {
post-destroot {
ln -s libfreetype.dylib.6 ${destroot_target}/Contents/Home/jre/lib/libfreetype.6.dylib
}
}

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):
Expand Down

0 comments on commit 4b27d90

Please sign in to comment.