<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/6985027eff0d6effc43d71834205745974cbff8d">https://github.com/macports/macports-ports/commit/6985027eff0d6effc43d71834205745974cbff8d</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 6985027eff0 turbovnc: new port
</span>6985027eff0 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 6985027eff0d6effc43d71834205745974cbff8d
</span>Author: Andrew Udvare <audvare@gmail.com>
AuthorDate: Fri Mar 26 19:35:07 2021 -0400
<span style='display:block; white-space:pre;color:#404040;'> turbovnc: new port
</span>---
x11/turbovnc-viewer/Portfile | 78 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 78 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/x11/turbovnc-viewer/Portfile b/x11/turbovnc-viewer/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..a72b1daddbe
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/x11/turbovnc-viewer/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,78 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup active_variants 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup java 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup TurboVNC turbovnc 2.2.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name turbovnc-viewer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {gmail.com:audvare @Tatsh} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories x11 net
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description TurboVNC VNC viewer.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 de684a6e9c2f2e1ef1f05b98229fd40269d17a7c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 71a89600d1e4ffe67aa65e5ddc6b21b1659b9105892c07074e99181218dc33e8 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 9023665
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:libjpeg-turbo
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+java.version 1.8+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+require_active_variants openjdk11 JNI
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+require_active_variants libjpeg-turbo java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # This must be called to set ${java.home}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ java_set_env
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DTVNC_BUILDSERVER=no \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_C_FLAGS=-I${prefix}/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DTJPEG_JAR=${prefix}/share/java/turbojpeg.jar \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DJAVA_INCLUDE_PATH=${java.home}/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DJAVA_INCLUDE_PATH2=${java.home}/include/darwin \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DJAVA_AWT_INCLUDE_PATH=${java.home}/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DTVNC_BUILDNATIVE=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/release/Info.plist.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@PKGVENDOR@|MacPorts|g" ${worksrcpath}/release/Info.plist.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@BUILD@|${version}|g" ${worksrcpath}/release/Info.plist.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@CMAKE_PROJECT_NAME@|TurboVNC|g" ${worksrcpath}/release/Info.plist.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|^<dict>|<dict><key>NSHighResolutionCapable</key><true/>|" ${worksrcpath}/release/Info.plist.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set appdir "${destroot}${applications_dir}/TurboVNC Viewer.app"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 -d ${appdir}/Contents/MacOS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 -d ${appdir}/Contents/Resources/Java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 -d ${appdir}/Contents/Resources/Native
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 ${worksrcpath}/release/Info.plist.in \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${appdir}/Contents/Info.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 ${worksrcpath}/unix/vncviewer/JavaAppLauncher \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "${appdir}/Contents/MacOS/TurboVNC Viewer"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set chan [open ${appdir}/Contents/PkgInfo w+]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts -nonewline ${chan} "APPL????"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ close ${chan}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 ${worksrcpath}/release/turbovnc.icns \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/release/vncviewer.icns ${appdir}/Contents/Resources/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 ${prefix}/lib/libturbojpeg.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${cmake.build_dir}/java/libturbovnchelper.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${appdir}/Contents/Resources/Native/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 ${cmake.build_dir}/java/VncViewer.jar \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${appdir}/Contents/Resources/Java/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ known_fail yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-fetch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "${name} @${version} requires OS X 10.7 or later."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "incompatible OS X version"
</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>