<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/4e0db065eafb421609c3435138658e9ed60dd82a">https://github.com/macports/macports-ports/commit/4e0db065eafb421609c3435138658e9ed60dd82a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 4e0db065eafb421609c3435138658e9ed60dd82a
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Fri Jan 19 05:57:50 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> musikcube: update to 3.0.2, fix PowerPC
</span>---
multimedia/musikcube/Portfile | 87 +++++++++++++++++++++---
multimedia/musikcube/files/cmakelists.patch | 41 -----------
multimedia/musikcube/files/musikcube | 11 +++
multimedia/musikcube/files/musikcubed | 11 +++
multimedia/musikcube/files/patch-CMakeLists.diff | 55 +++++++++++++++
multimedia/musikcube/files/patch-fix-curses.diff | 36 ++++++++++
6 files changed, 190 insertions(+), 51 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/musikcube/Portfile b/multimedia/musikcube/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 5be68702126..8537cd245b0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/multimedia/musikcube/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/musikcube/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,18 +1,17 @@
</span> # -*- 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
PortSystem 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup boost 1.0
</span> PortGroup cmake 1.1
PortGroup github 1.0
PortGroup openssl 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup clangen musikcube 0.96.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup clangen musikcube 3.0.2
</span> github.tarball_from archive
revision 0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 fb0cc1779a7e2924c15bda76ab7ce9ea5ed30694 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 81922ec6e86c06061dc009be3ec7c4bc8e8fd5ed3bb92231dabede8bbccaf723 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 9504554
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 455138d428e6e60a68191b820f8d4b84f8e4ce24 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 65f82db36d635bdbfd99f67d1d68c9e1aedf8e38efa627f303cf7971c306d063 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 4800648
</span>
categories multimedia
license BSD
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,25 +23,93 @@ long_description {*}${description}
</span>
homepage https://musikcube.com
<span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.c_standard 1999
</span> compiler.cxx_standard \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- 2014
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2017
</span>
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# There is no dependency on Boost anymore,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# instead a standalone Asio is used.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:asio \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Care should be taken with regard to FFMpeg.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# ffmpeg6 is broken presently: avoid it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# unless it is fixed and works across the board.
</span> depends_lib-append port:curl \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:flac \
</span> port:lame \
path:lib/libavcodec.dylib:ffmpeg \
port:libev \
port:libmicrohttpd \
port:libogg \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libopenmpt \
</span> port:libvorbis \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:mpg123 \
</span> port:ncurses \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:portaudio \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pulseaudio \
</span> port:taglib \
port:zlib
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles cmakelists.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-CMakeLists.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-fix-curses.diff
</span>
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# The following will be relevant only if a custom-located FFMpeg is used,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# and CMakeLists patch has related lines uncommented.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# reinplace "s,@PREFIX@,${prefix}," ${worksrcpath}/src/plugins/stockencoders/CMakeLists.txt
</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;'>+# Please do not change default settings without a good reason to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# and sufficient testing on all supported systems. In particular,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# everything may build with no errors but fail to work.
</span> configure.args-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- -DENABLE_BUNDLED_TAGLIB=false
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_BUNDLED_TAGLIB=false \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_PCH=false
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# The following are just here for convenience:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -DENABLE_MACOS_SYSTEM_NCURSES=true will link against dynamic libs.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -DDISABLE_WIDE_NCURSES_LIB_SUFFIXES=true should be used if ncurses does not install w-postfixed libs.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/clangen/musikcube/issues/656
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[string match *gcc* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -std=c99 -fobjc-exceptions
</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;'>+# atomics check pretends to be there but does nothing:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/clangen/musikcube/issues/657
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[string match *gcc* ${configure.compiler}] && ${configure.build_arch} in [list arm i386 ppc]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ldflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -latomic
</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;'>+# PowerPC-dedicated issue:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/clangen/musikcube/issues/658
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin powerpc {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We do need custom optflags here, otherwise while the build succeeds,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # the app does not work correctly.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.optflags \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -O0 -g
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Presently CoreAudio output may not work correctly on PowerPC systyems.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Please use PortAudio or possibly PulseAudio instead.
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Build system dumps everything into share. Fix installation:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/share/musikcube/libmusikcore.dylib ${destroot}${prefix}/lib/libmusikcore.dylib
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Same condition as in legacysupport:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} ne "libc++"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # The port installs its wrappers, but they do not work correctly.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Replace with fixed ones. These are only wrappers, not actual binaries.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f {musikcube musikcubed} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${destroot}${prefix}/bin/${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s,@PREFIX@,${prefix},g" ${filespath}/${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 ${filespath}/${f} ${destroot}${prefix}/bin
</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;color:#808080;'>diff --git a/multimedia/musikcube/files/cmakelists.patch b/multimedia/musikcube/files/cmakelists.patch
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 4dbb7678b7f..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/multimedia/musikcube/files/cmakelists.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,41 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- CMakeLists.txt.orig 2021-04-19 15:55:14.000000000 -0700
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ CMakeLists.txt 2021-10-13 02:03:19.000000000 -0700
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -39,9 +39,11 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # custom include/library directories for BSDs
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (CMAKE_SYSTEM_NAME MATCHES "Darwin" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- link_directories ("/usr/local/lib")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ link_directories ("@PREFIX@")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- link_directories ("/usr/local/opt/openssl/lib")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- link_directories ("/usr/local/opt/ncurses/lib")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- include_directories("/usr/local/include")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ include_directories("@PREFIX@")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- include_directories("/usr/local/opt/openssl/include")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- include_directories("/usr/local/opt/ncurses/include")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- endif ()
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -107,7 +109,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (EXISTS "/etc/arch-release" OR EXISTS "/etc/manjaro-release" OR NO_NCURSESW)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- add_definitions (-DNO_NCURSESW)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR CMAKE_SYSTEM_NAME MATCHES "OpenBSD" )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR CMAKE_SYSTEM_NAME MATCHES "OpenBSD" )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- add_definitions (-DNO_NCURSESW)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- endif()
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -205,7 +207,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file(GLOB plugins "bin/plugins/*.dylib")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- install(FILES ${plugins} DESTINATION share/musikcube/plugins)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ install(FILES ${plugins} DESTINATION lib)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else ()
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file(GLOB plugins "bin/plugins/*.so")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- install(FILES ${plugins} DESTINATION share/musikcube/plugins)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -235,7 +237,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # libmusikcore sshared library
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- install(FILES "bin/libmusikcore.dylib" DESTINATION share/musikcube)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ install(FILES "bin/libmusikcore.dylib" DESTINATION lib)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else()
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- install(FILES "bin/libmusikcore.so" DESTINATION share/musikcube)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- endif()
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/musikcube/files/musikcube b/multimedia/musikcube/files/musikcube
</span>new file mode 100755
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..bff101a5533
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/musikcube/files/musikcube
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#!/bin/bash
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if [ -n "$DYLD_LIBRARY_PATH" ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DYLD_LIBRARY_PATH=@PREFIX@/lib/libgcc:${DYLD_LIBRARY_PATH}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DYLD_LIBRARY_PATH=@PREFIX@/lib/libgcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+export DYLD_LIBRARY_PATH
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cd @PREFIX@/share/musikcube/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+exec ./musikcube "$@"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/musikcube/files/musikcubed b/multimedia/musikcube/files/musikcubed
</span>new file mode 100755
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..a7fe0512e9b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/musikcube/files/musikcubed
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#!/bin/bash
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if [ -n "$DYLD_LIBRARY_PATH" ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DYLD_LIBRARY_PATH=@PREFIX@/lib/libgcc:${DYLD_LIBRARY_PATH}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DYLD_LIBRARY_PATH=@PREFIX@/lib/libgcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+export DYLD_LIBRARY_PATH
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cd @PREFIX@/share/musikcube/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+exec ./musikcubed "$@"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/musikcube/files/patch-CMakeLists.diff b/multimedia/musikcube/files/patch-CMakeLists.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..9f58d13ce14
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/musikcube/files/patch-CMakeLists.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,55 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt 2023-09-11 10:03:12.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2024-01-18 13:26:52.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -29,7 +29,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include(ConfigureCompilerFlags)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include(DependencyDetection)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if (NOT DEFINED ENV{HOMEBREW_PREFIX} AND NOT ${BUILD_STANDALONE} MATCHES "true")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if (NOT ${BUILD_STANDALONE} MATCHES "true")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_program(CCACHE_FOUND ccache)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (CCACHE_FOUND)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ message(STATUS "${BoldGreen}[ccache] ccache enabled!${ColorReset}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -37,7 +37,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif(CCACHE_FOUND)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message(STATUS "${BoldYellow}[ccache] disabled; homebrew or standalone build detected.${ColorReset}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ message(STATUS "${BoldYellow}[ccache] disabled; standalone build detected.${ColorReset}")
</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;'>+ if (CROSS_COMPILE_SYSROOT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -55,8 +55,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "${musikcube_SOURCE_DIR}/src/musikcore"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "${musikcube_SOURCE_DIR}/src/musikcube"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "${musikcube_SOURCE_DIR}/src/musikcube/cursespp"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- "${musikcube_SOURCE_DIR}/src/3rdparty/include"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- "${musikcube_SOURCE_DIR}/src/3rdparty/asio/asio/include")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "${musikcube_SOURCE_DIR}/src/3rdparty/include")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include_directories(${PROJECT_INCLUDE_DIRECTORIES})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -78,8 +77,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # disable update check for environments that we know will provided hosted,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # prebuilt binaries.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if (DEFINED ENV{HOMEBREW_PREFIX})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message(STATUS "[build] detected homebrew, disabling update check functionality.")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if (APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ message(STATUS "[build] detected Darwin, disabling update check functionality.")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ add_definitions(-DDISABLE_UPDATE_CHECK)
</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/plugins/stockencoders/CMakeLists.txt 2023-09-11 10:03:12.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/plugins/stockencoders/CMakeLists.txt 2024-01-18 13:47:58.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -13,9 +13,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_vendor_library(SWRESAMPLE swresample-musikcube)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_vendor_library(MP3LAME mp3lame)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # fedora (and probably other RPM-based distros) put ffmpeg includes here...
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- include_directories("/usr/include/ffmpeg")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- include_directories("/usr/local/include/ffmpeg")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ # This will be needed only for FFMpeg 6:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ # include_directories("@PREFIX@/libexec/ffmpeg6")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_library(AVCODEC NAMES avcodec)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_library(AVUTIL NAMES avutil)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_library(AVFORMAT NAMES avformat)
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/musikcube/files/patch-fix-curses.diff b/multimedia/musikcube/files/patch-fix-curses.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..0d9994a268c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/musikcube/files/patch-fix-curses.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,36 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/musikcube/CMakeLists.txt 2023-09-11 10:03:12.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/musikcube/CMakeLists.txt 2024-01-18 13:33:57.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -69,10 +69,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ./cursespp/ToastOverlay.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ./cursespp/Window.cpp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-set(musikcube_INSTALL_DIR ${HOMEBREW_PREFIX})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if (NOT DEFINED musikcube_INSTALL_DIR)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(musikcube_INSTALL_DIR ${CMAKE_INSTALL_PREFIX})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++set(musikcube_INSTALL_DIR ${CMAKE_INSTALL_PREFIX})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure_file("musikcube.in" "musikcube" @ONLY)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -92,7 +89,7 @@
</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;'>+ # figure out if we have a "w" suffix or not...
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if ((${DISABLE_WIDE_NCURSES_LIB_SUFFIXES} MATCHES "true") OR ((APPLE) AND (${ENABLE_MACOS_SYSTEM_NCURSES} MATCHES "true")))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if (${DISABLE_WIDE_NCURSES_LIB_SUFFIXES} MATCHES "true")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ message(STATUS "[ncurses] using library names *WITHOUT* 'w' prefix")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(CURSES_LIBRARY_NAME ncurses)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(PANEL_LIBRARY_NAME panel)
</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;'>+--- src/musikcube/cursespp/cursespp/curses_config.h 2023-09-11 10:03:12.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/musikcube/cursespp/cursespp/curses_config.h 2024-01-18 13:21:51.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -40,7 +40,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #undef MOUSE_MOVED
</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;'>+-#if defined(WIN32) || defined(NO_NCURSESW)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(WIN32) || defined(NO_NCURSESW) || defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <curses.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <panel.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span></pre><pre style='margin:0'>
</pre>