<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/6d73da20b476510368aa1138f36d2efcad592373">https://github.com/macports/macports-ports/commit/6d73da20b476510368aa1138f36d2efcad592373</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 6d73da2 smplayer: new port
</span>6d73da2 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 6d73da20b476510368aa1138f36d2efcad592373
</span>Author: ken-cunningham-webuse <ken.cunningham.webuse@gmail.com>
AuthorDate: Tue Feb 26 08:34:20 2019 -0800
<span style='display:block; white-space:pre;color:#404040;'> smplayer: new port
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> qt4 or qt5 gui for Mplayer and mpv
</span><span style='display:block; white-space:pre;color:#404040;'> with numerous additional features
</span>---
multimedia/smplayer/Portfile | 84 ++++++++++++++++++++++
.../smplayer/files/patch-makefile-no-werror.diff | 19 +++++
multimedia/smplayer/files/patch-player-path.diff | 24 +++++++
multimedia/smplayer/files/patch-smplayer.diff | 14 ++++
4 files changed, 141 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/smplayer/Portfile b/multimedia/smplayer/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..bb141aa
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/smplayer/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,84 @@
</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;'>+PortSystem 1.0
</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;'>+ PortGroup qmake 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup qmake5 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ qt5.depends_component qtscript
</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;'>+PortGroup active_variants 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name smplayer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 19.1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories multimedia
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-2+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {kencu @kencu} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.smplayer.info
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Versatile media player. Elegant GUI for MPlayer and mpv.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites sourceforge
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_bzip2 yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 fcf20a6206b5dd693cafae73b5fd29a9a0af31ff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 7a483d24c928fa51e8d48322cfd7d747fa5bf6cf587505d29a44c256abb64360 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 5169546
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:makeicns
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_run-append path:${prefix}/bin/mplayer:MPlayer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# it appears the smplayer helper app launch scripts expect these variants
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+require_active_variants MPlayer fribidi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+require_active_variants MPlayer osd
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.dir ${worksrcpath}/src
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# add an application icon
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# remove -Werror from the simpler_web_server makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# add paths to find the helper apps in ${prefix}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-smplayer.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-makefile-no-werror.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-player-path.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # we need to help the MacOS application find the accessory programs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/src/prefgeneral.cpp \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/src/chromecast.cpp
</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;'>+build.dir ${worksrcpath}/src
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # build the icon file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath} "${prefix}/bin/makeicns \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -512 ./icons/smplayer_icon512.png \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -256 ./icons/smplayer_icon256.png \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -192 ./icons/smplayer_icon192.png \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -128 ./icons/smplayer_icon128.png \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -64 ./icons/smplayer_icon64.png \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -32 ./icons/smplayer_icon32.png \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -16 ./icons/smplayer_icon16.png \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -out src/smplayer.icns"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # build the small webserver as a separate C project
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath}/webserver \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "CC=\"${configure.cc} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${configure.cflags} [get_canonical_archflags cc] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${configure.ldflags} [get_canonical_archflags ld]\" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ make"
</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;'>+pre-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|com.yourcompany.smplayer|org.smplayer.smplayer|g" ${worksrcpath}/src/smplayer.app/Contents/Info.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${worksrcpath}/src/translations ${worksrcpath}/src/smplayer.app/Contents/MacOS/
</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;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/src/smplayer.app ${destroot}${applications_dir}/smplayer.app
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/webserver/simple_web_server ${destroot}${prefix}/bin/simple_web_server
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/smplayer/files/patch-makefile-no-werror.diff b/multimedia/smplayer/files/patch-makefile-no-werror.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..2183e9e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/smplayer/files/patch-makefile-no-werror.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+mongoose.c:2762:37: error: format specifies type 'unsigned short' but the argument has type 'int' [-Werror,-Wformat]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ inet_ntoa(sa->sin.sin_addr), ntohs(sa->sin.sin_port)));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+We could either cast ntohs to an (unsigned short) or we can remove the -Werror
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+I elected to do the latter
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+kencu@macports.org
</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;'>+--- webserver/Makefile.orig 2019-02-25 20:40:46.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ webserver/Makefile 2019-02-25 20:40:56.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2,7 +2,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MODULE_CFLAGS=-DMG_DISABLE_DAV_AUTH -DMG_ENABLE_HTTP_CGI=0 -DMG_ENABLE_THREADS=0 -DMG_ENABLE_HTTP_SSI=0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SOURCES = main.c mongoose.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CFLAGS = -O2 -W -Wall -Werror -Wno-unused-function $(CFLAGS_EXTRA) $(MODULE_CFLAGS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CFLAGS = -O2 -W -Wall -Wno-unused-function $(CFLAGS_EXTRA) $(MODULE_CFLAGS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ifeq ($(OS), Windows_NT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CFLAGS += -lws2_32 -Wno-format
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/smplayer/files/patch-player-path.diff b/multimedia/smplayer/files/patch-player-path.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..21bd30e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/smplayer/files/patch-player-path.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,24 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/prefgeneral.cpp.orig 2019-02-25 22:41:30.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/prefgeneral.cpp 2019-02-25 22:42:06.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -39,8 +39,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define PLAYER_COMBO_MPLAYER_PATH "mplayer/mplayer.exe"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define PLAYER_COMBO_MPV_PATH "mpv/mpv.exe"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- #define PLAYER_COMBO_MPLAYER_PATH "mplayer"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- #define PLAYER_COMBO_MPV_PATH "mpv"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ #define PLAYER_COMBO_MPLAYER_PATH "@@PREFIX@@/bin/mplayer"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ #define PLAYER_COMBO_MPV_PATH "@@PREFIX@@/bin/mpv"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/chromecast.cpp.orig 2019-02-25 23:06:50.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/chromecast.cpp 2019-02-25 23:07:29.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -340,7 +340,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ args << "-F" << "-d" << "-4" << "-p" << QString::number(server_port) << "-r" << doc_root;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (!directoryListing()) args << "-j";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #elif defined(CHROMECAST_USE_SERVER_SIMPLE_WEB_SERVER)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- prog = "simple_web_server";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ prog = "@@PREFIX@@/bin/simple_web_server";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef Q_OS_WIN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ prog += ".exe";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/smplayer/files/patch-smplayer.diff b/multimedia/smplayer/files/patch-smplayer.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..fe8e893
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/smplayer/files/patch-smplayer.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Add an icon
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff -u src/smplayer.pro.orig src/smplayer.pro
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/smplayer.pro.orig 2019-02-22 13:03:30.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/smplayer.pro 2019-02-22 13:03:55.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -9,6 +9,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ RESOURCES = icons.qrc H2O.qrc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ICON = smplayer.icns
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #DEFINES += EXPERIMENTAL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DEFINES += SINGLE_INSTANCE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DEFINES += FIND_SUBTITLES
</span></pre><pre style='margin:0'>
</pre>