<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/0d8b828389512965727d1c7a48fbcfaef8c09bff">https://github.com/macports/macports-ports/commit/0d8b828389512965727d1c7a48fbcfaef8c09bff</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 0d8b828389512965727d1c7a48fbcfaef8c09bff
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Sun Apr 14 09:58:03 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> openjdk7-bootstrap: use Macports X11 by default
</span>---
java/openjdk7-bootstrap/Portfile | 40 +++++++++++++++++++++++++++++++++++++---
1 file changed, 37 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/java/openjdk7-bootstrap/Portfile b/java/openjdk7-bootstrap/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e784fb134da..3a5e348f2ca 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/java/openjdk7-bootstrap/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/java/openjdk7-bootstrap/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem 1.0
</span>
name openjdk7-bootstrap
version 1.7.0_2
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> set build 2012-03-14
categories java devel
platforms {darwin < 11}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -31,8 +32,12 @@ worksrcdir ${distname}
</span> use_xcode no
use_configure no
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# Incompatible library version: /Library/Java/JavaVirtualMachines/openjdk7-bootstrap/jre/lib/ppc/libfontmanager.dylib requires version 13.0.0 or later
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib port:freetype
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib port:freetype \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:xorg-libX11 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:xorg-libXext \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:xorg-libXi \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:xorg-libXtst \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:xrender
</span>
build {}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -56,6 +61,35 @@ destroot {
</span>
destroot.violate_mtree yes
<span style='display:block; white-space:pre;background:#e0ffe0;'>+variant apple_x11 description "Use Apple version of X11" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-delete \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:xorg-libX11 port:xorg-libXext \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:xorg-libXi port:xorg-libXtst \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:xrender
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- system "install_name_tool -change /usr/X11/lib/libfreetype.6.dylib ${prefix}/lib/libfreetype.6.dylib ${destroot}${path}/jre/lib/ppc/libfontmanager.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # This is a required change, since the Apple one is too old:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Incompatible library version: /Library/Java/JavaVirtualMachines/openjdk7-bootstrap/jre/lib/ppc/libfontmanager.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # requires version 13.0.0 or later
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change /usr/X11/lib/libfreetype.6.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/lib/libfreetype.6.dylib ${destroot}${path}/jre/lib/ppc/libfontmanager.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Remaining ones are optional, however we rather avoid depending on Apple X11, since it is not a part
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # of macOS as such, and can be missing or uninstalled later. Also, having two X11 versions tends to create conflicts
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # and lead to obscure bugs. It is safer to use only Macports X11.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![variant_isset apple_x11]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach x11lib [list libX11.6 libXext.6 libXi.6 libXrender.1 libXtst.6] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change /usr/X11/lib/${x11lib}.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/lib/${x11lib}.dylib ${destroot}${path}/bin/appletviewer"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change /usr/X11/lib/${x11lib}.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/lib/${x11lib}.dylib ${destroot}${path}/bin/policytool"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change /usr/X11/lib/${x11lib}.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/lib/${x11lib}.dylib ${destroot}${path}/jre/bin/policytool"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change /usr/X11/lib/${x11lib}.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/lib/${x11lib}.dylib ${destroot}${path}/jre/lib/ppc/libsplashscreen.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change /usr/X11/lib/${x11lib}.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/lib/${x11lib}.dylib ${destroot}${path}/jre/lib/ppc/xawt/libmawt.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
</pre><pre style='margin:0'>
</pre>