<pre style='margin:0'>
Zhenfu Shi (i0ntempest) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/37dd40fae69c3a4a1f75ffc7381c3ba68074ec63">https://github.com/macports/macports-ports/commit/37dd40fae69c3a4a1f75ffc7381c3ba68074ec63</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 37dd40fae69c3a4a1f75ffc7381c3ba68074ec63
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Thu Apr 21 05:57:57 2022 +0800
<span style='display:block; white-space:pre;color:#404040;'> transmission-x11: move to Cmake build system, fixes build on PPC
</span>---
net/transmission-x11/Portfile | 43 ++++++++++++++++++++++++-------------------
1 file changed, 24 insertions(+), 19 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/transmission-x11/Portfile b/net/transmission-x11/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 438e6d8c37c..e4c5fe120ce 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/transmission-x11/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/transmission-x11/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,9 +2,10 @@
</span>
PortSystem 1.0
PortGroup github 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span>
github.setup transmission transmission 3.00
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span> name transmission-x11
categories net x11
license {GPL-2 OpenSSLException}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,44 +27,48 @@ checksums rmd160 5286c3e183474cba6ed1c6cfc022f4f5afab4fda \
</span> sha256 9144652fe742f7f7dd6657716e378da60b751aaeda8bef8344b3eefc4db255f2 \
size 3329220
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin freebsd
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> # Do not remove this as it allows transmission and this port to share files
dist_subdir transmission
depends_build port:intltool \
port:pkgconfig \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:autoconf \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:automake \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:cmake \
</span> port:libtool
depends_lib port:miniupnpc \
path:lib/libssl.dylib:openssl \
port:curl \
port:gettext \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:libevent
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.cmd ./autogen.sh
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args --enable-daemon \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --enable-cli \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --without-gtk \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --disable-mac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libevent \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:zlib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libb64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DENABLE_CLI=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_DAEMON=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_GTK=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DINSTALL_DOC=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_MAC=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_QT=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_SYSTEM_B64=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_TESTS=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_NLS=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.ldflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -lstdc++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.c_standard 2011
</span>
post-extract {
# https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c13b5e88c6e9c7bd2698d844cb5ed127ed809f7e
# Prevent m4_copy error when running aclocal
# m4_copy: won't overwrite defined macro: glib_DEFUN
delete ${worksrcpath}/m4/glib-gettext.m4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> }
default_variants +gtk
variant aqua description {Build Aqua front-end} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-replace --disable-mac --enable-mac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace -DENABLE_QT=OFF -DENABLE_QT=ON
</span> }
variant gtk description {Build Gtk3 front-end} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -71,9 +76,9 @@ variant gtk description {Build Gtk3 front-end} {
</span> port:libnotify \
port:desktop-file-utils
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_run port:adwaita-icon-theme
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace -DENABLE_GTK=OFF -DENABLE_GTK=ON
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-replace --without-gtk --with-gtk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run port:adwaita-icon-theme
</span>
post-activate {
system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
</pre><pre style='margin:0'>
</pre>