<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/e960346d17451a1a2f39241177fa206297f0c5bf">https://github.com/macports/macports-ports/commit/e960346d17451a1a2f39241177fa206297f0c5bf</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 e960346 supertuxkart: update to 0.9.3
</span>e960346 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit e960346d17451a1a2f39241177fa206297f0c5bf
</span>Author: kencu <ken.cunningham.webuse@gmail.com>
AuthorDate: Sat Dec 23 20:14:40 2017 -0800
<span style='display:block; white-space:pre;color:#404040;'> supertuxkart: update to 0.9.3
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> numerous changes from previous version
</span><span style='display:block; white-space:pre;color:#404040;'> in build requirements and build tools
</span><span style='display:block; white-space:pre;color:#404040;'> tested on 10.13 / Xcode 9.2
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> closes: https://trac.macports.org/ticket/26759
</span><span style='display:block; white-space:pre;color:#404040;'> fixes: https://trac.macports.org/ticket/38547
</span><span style='display:block; white-space:pre;color:#404040;'> fixes: https://trac.macports.org/ticket/43812
</span>---
games/supertuxkart/Portfile | 53 +++++++++++++++++-----
games/supertuxkart/files/patch-cmakelists-ogg.diff | 20 ++++++++
.../files/patch-libpng-genout-flags.diff | 10 ++++
3 files changed, 72 insertions(+), 11 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/games/supertuxkart/Portfile b/games/supertuxkart/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 31f2fd9..287c6eb 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/games/supertuxkart/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/games/supertuxkart/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,29 +1,60 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
</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>
PortSystem 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span>
name supertuxkart
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 0.4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 0.9.3
</span> categories games
<span style='display:block; white-space:pre;background:#ffe0e0;'>-license GPL-2+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-3+
</span> platforms darwin
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {kencu @kencu} openmaintainer
</span>
description Tux racing game
long_description SuperTuxKart is a Free 3D kart racing game, with many tracks, characters, and items for you to try.
distname ${name}-${version}-src
worksrcdir ${name}-${version}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+use_xz yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> homepage http://supertuxkart.sourceforge.net/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums md5 badcaf9cb51afc11c1abf126b2cbba74
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums md5 8de5455b8fdbb92679e302b76c9041cf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 4d32b61c99d6043c8007badd21bb79d38216cc4b \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 d8014e7106ba84f98b5ec5f146249dcffc284fc4083f8f237ff420b9e2219cb0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> master_sites sourceforge:project/${name}/SuperTuxKart/${version}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_build port:pkgconfig
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib port:libsdl \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:plib port:libvorbis
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-use_bzip2 yes
</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:curl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:zlib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libogg \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libvorbis
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# clang: error: unknown argument: '-pipe -Os -DNDEBUG'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-libpng-genout-flags.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# force cmake to use MacPorts libogg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-cmakelists-ogg.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DFREETYPE_INCLUDE_DIRS=${prefix}/include/freetype2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# /opt/local/include/fribidi/fribidi-common.h:61:12: fatal error: 'glib.h' file not found
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# multiple attempts enable fribidi ineffective
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DUSE_FRIBIDI:BOOL=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# supertuxkart fails to build with MacPorts angelscript
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# defaults to using bundled version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# suppress warning gl.h and gl3.h are both included
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cppflags-append -DGL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED
</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;'>+ move ${workpath}/build/bin/supertuxkart.app ${destroot}${applications_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete ${destroot}${applications_dir}/supertuxkart.app/Contents/Resources/data
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${worksrcpath}/data ${destroot}${applications_dir}/supertuxkart.app/Contents/Resources/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
livecheck.type sourceforge
<span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex "supertuxkart-((\\d+(\\.)*)+)-src\\.tar\\.bz2"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex "supertuxkart-((\\d+(\\.)*)+)-src\\.tar\\.xz"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/games/supertuxkart/files/patch-cmakelists-ogg.diff b/games/supertuxkart/files/patch-cmakelists-ogg.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..b1aeadb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/games/supertuxkart/files/patch-cmakelists-ogg.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt.orig 2017-12-23 18:49:15.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2017-12-23 18:50:14.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -236,7 +236,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # unix-style installs of Vorbis/Ogg/OpenAL/etc. they will be picked up over our frameworks. This is blocking when I make releases :
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # the mac I use to make STK releases does have other installs of vorbis/ogg/etc. which aren't compatible with STK, so letting
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # CMake pick the library it wants essentially means I can't build.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -I/Library/Frameworks/Ogg.framework/Versions/A/Headers -I/Library/Frameworks/Vorbis.framework/Versions/A/Headers")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ # set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -I/Library/Frameworks/Ogg.framework/Versions/A/Headers -I/Library/Frameworks/Vorbis.framework/Versions/A/Headers")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_package(OggVorbis REQUIRED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include_directories(${OGGVORBIS_INCLUDE_DIRS})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -450,7 +450,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # unix-style installs of Vorbis/Ogg/OpenAL/etc. they will be picked up over our frameworks. This is blocking when I make releases :
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # the mac I use to make STK releases does have other installs of vorbis/ogg/etc. which aren't compatible with STK, so letting
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # CMake pick the library it wants essentially means I can't build.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set_target_properties(supertuxkart PROPERTIES LINK_FLAGS "-arch x86_64 -F/Library/Frameworks -framework OpenAL -framework Ogg -framework Vorbis")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set_target_properties(supertuxkart PROPERTIES LINK_FLAGS "-arch x86_64 -F/Library/Frameworks -framework OpenAL -logg -lvorbis -lvorbisfile")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/Library/Frameworks/OpenAL.framework/Versions/A/Headers")
</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;color:#808080;'>diff --git a/games/supertuxkart/files/patch-libpng-genout-flags.diff b/games/supertuxkart/files/patch-libpng-genout-flags.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..0dee7dd
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/games/supertuxkart/files/patch-libpng-genout-flags.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/libpng/scripts/genout.cmake.in.orig 2017-12-23 16:15:19.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/libpng/scripts/genout.cmake.in 2017-12-23 16:15:38.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -45,7 +45,6 @@
</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;'>+ execute_process(COMMAND "${CMAKE_C_COMPILER}" "-E"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ${CMAKE_C_FLAGS}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "-I${SRCDIR}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "-I${BINDIR}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "-DPNGLIB_LIBNAME=PNG${PNGLIB_MAJOR}${PNGLIB_MINOR}_0"
</span></pre><pre style='margin:0'>
</pre>