<pre style='margin:0'>
Mojca Miklavec (mojca) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/c46fb11ea3e028e0d605b4bc18ab9bc221609ec8">https://github.com/macports/macports-ports/commit/c46fb11ea3e028e0d605b4bc18ab9bc221609ec8</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit c46fb11ea3e028e0d605b4bc18ab9bc221609ec8
</span>Author: Mojca Miklavec <mojca@macports.org>
AuthorDate: Thu May 5 08:42:12 2022 +0200
<span style='display:block; white-space:pre;color:#404040;'> Revert "Faudio: remove obsolete port"
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This reverts commit 13e3e185af1939706d8f044ca33961d0b30cbc0e.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://github.com/macports/macports-ports/pull/13875
</span>---
audio/FAudio/Portfile | 52 ++++++++++++++++++++++
.../patch-faudio-remove-deployment-target.diff | 13 ++++++
2 files changed, 65 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/audio/FAudio/Portfile b/audio/FAudio/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..8f7c5526c09
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/audio/FAudio/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,52 @@
</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 github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup FNA-XNA FAudio 20.12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license zlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories audio
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description XAudio reimplementation
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description an XAudio reimplementation that focuses solely on developing \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fully accurate DirectX Audio runtime libraries for the FNA project,\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ including XAudio2, X3DAudio, XAPO, and XACT3.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:libsdl2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 a735305895754d503a71c03a71225513c0d55ddc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 5599d4351b716e1dc8716b3ddd5855fddbf7a48f47558e04648a8a731cb39637 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1134780
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# remove set deployment target and hard-coded RPATH setting
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-faudio-remove-deployment-target.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args -DGSTREAMER=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DBUILD_UTILS=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DBUILD_TESTS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DXNASONG=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_INSTALL_INCLUDEDIR=include/FAudio
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant wma description "Use gstreamer1-gst-libav for additional xWMA support - note license changes" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ license GPL-2+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:gstreamer1-gst-libav
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace -DGSTREAMER=OFF -DGSTREAMER=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;'>+# This legacy compatibility variant can be removed after August 2021.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant ffmpeg requires wma description {Legacy compatibility variant} {}
</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;'>+# there are some utilities to consider, but the facttool segfaulted when I tried to open an audio engine
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# they are not installed by default with the cmake install script, and other pkg systems don't install them
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# they can be re-enabled by toggling -DBUILD_UTILS=ON, and manually installed like so if desired
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# file copy ${workpath}/build/facttool ${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;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.cmd ./faudio_tests
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.target
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/audio/FAudio/files/patch-faudio-remove-deployment-target.diff b/audio/FAudio/files/patch-faudio-remove-deployment-target.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..e30a8d2cce1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/audio/FAudio/files/patch-faudio-remove-deployment-target.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git CMakeLists.txt.orig CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index db377dd..6d596b1 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -52,8 +52,6 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Platform Flags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(CMAKE_MACOSX_RPATH ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ elseif(WIN32)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # "FAudio.dll", not "libFAudio.dll"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(CMAKE_SHARED_LIBRARY_PREFIX "")
</span></pre><pre style='margin:0'>
</pre>