<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5d60470392e7a34939ee9a1262efdd49fd4a416b">https://github.com/macports/macports-ports/commit/5d60470392e7a34939ee9a1262efdd49fd4a416b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 5d60470392e7a34939ee9a1262efdd49fd4a416b
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Sun Apr 28 20:50:08 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> abaddon: update miniaudio module, drop a patch, revbump
</span>---
net/abaddon/Portfile | 21 ++------
.../files/0005-miniaudio.h-fix-for-macOS.patch | 60 ----------------------
2 files changed, 5 insertions(+), 76 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/abaddon/Portfile b/net/abaddon/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 3dedda0e360..ad4589b315f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/abaddon/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/abaddon/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -14,7 +14,7 @@ if {${configure.cxx_stdlib} eq "libc++"} {
</span> }
github.setup uowuo abaddon 0.2.1 v
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories net www
license GPL-3
maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,7 +24,7 @@ long_description {*}${description} made with C++ and GTK3. \
</span>
github.tarball_from archive
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set miniaudio_hash 3ba0595c6afffa37f9715c2db50efcb516febf4b
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set miniaudio_hash 88436b25ef4ca8434d6268f19b748d917ee7f39d
</span>
master_sites-append https://github.com/mackron/miniaudio/archive/${miniaudio_hash}/:miniaudio
distfiles-append miniaudio-${miniaudio_hash}.tar.gz:miniaudio
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,9 +34,9 @@ checksums ${distname}${extract.suffix} \
</span> sha256 407d14bc7659c65eca1c5266fb96a60b1e169b31c122159ae7f54e69a86e0b45 \
size 14187672 \
miniaudio-${miniaudio_hash}.tar.gz \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 d72f7cac3679df69bd0c9892a0eb2b734e53796b \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 e25ada69d716af44945077b92c3c7c52d512374abe9cefd7416d0b49337ca620 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 1473742
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 a20c48d4c789ab509634ea003681307f2d2c1057 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 2578de252bbc158bed771fa4ecba2d05899de1148937b587ab0fb429479f7c4d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1473883
</span>
extract.only ${distname}${extract.suffix}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -54,9 +54,6 @@ patchfiles-append 0003-CMakeLists-also-link-to-AudioUnit-on-Apple.patch
</span> # https://github.com/uowuo/abaddon/pull/292
patchfiles-append 0004-platform.cpp-add-a-missing-spdlog-include.patch
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# https://github.com/mackron/miniaudio/pull/840
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles-append 0005-miniaudio.h-fix-for-macOS.patch
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> post-patch {
reinplace "s|@PREFIX@|${prefix}|" \
${worksrcpath}/src/platform.cpp \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -101,14 +98,6 @@ configure.args-append \
</span> -DUSE_KEYCHAIN=OFF \
-DUSE_LIBHANDY=ON
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {[string match *gcc* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # miniaudio.h: error: invalid conversion from 'UInt32*' {aka 'long unsigned int*'}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # to 'ma_uint32*' {aka 'unsigned int*'} [-fpermissive]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # https://github.com/mackron/miniaudio/issues/841
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.cxxflags-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -fpermissive
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> # Install target is broken: https://github.com/uowuo/abaddon/issues/290
# We need to do it manually.
destroot {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/abaddon/files/0005-miniaudio.h-fix-for-macOS.patch b/net/abaddon/files/0005-miniaudio.h-fix-for-macOS.patch
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 373462cdffd..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/abaddon/files/0005-miniaudio.h-fix-for-macOS.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,60 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From f0914664a174ddf10fea909fc532c91f718fa594 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From: Sergey Fedorov <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Date: Sat, 20 Apr 2024 02:55:56 +0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH] miniaudio.h: fix for macOS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>----
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- miniaudio.h | 17 +++++++++++++----
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 1 file changed, 13 insertions(+), 4 deletions(-)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git miniaudio.h miniaudio.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index 1be3ec8..2ab67ce 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- subprojects/miniaudio/miniaudio.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ subprojects/miniaudio/miniaudio.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -3749,8 +3749,7 @@ extern "C" {
</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;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--#if defined(__LP64__) || defined(_WIN64) || (defined(__x86_64__) && !defined(__ILP32__)) || defined(_M_X64) || defined(__ia64) || defined(_M_IA64) || defined(__aarch64__) || defined(_M_ARM64) || defined(__powerpc64__)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#if defined(__LP64__) || defined(_WIN64) || (defined(__x86_64__) && !defined(__ILP32__)) || defined(_M_X64) || defined(__ia64) || defined(_M_IA64) || defined(__aarch64__) || defined(_M_ARM64) || defined(__powerpc64__) || defined(__ppc64__)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #define MA_SIZEOF_PTR 8
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #define MA_SIZEOF_PTR 4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -17977,9 +17976,13 @@ DEVICE I/O
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</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;'>-+#ifdef MA_APPLE
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ #include <AvailabilityMacros.h>
</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;'>- #ifndef MA_NO_DEVICE_IO
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--#if defined(MA_APPLE) && (__MAC_OS_X_VERSION_MIN_REQUIRED < 101200)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#if defined(MA_APPLE) && (MAC_OS_X_VERSION_MIN_REQUIRED < 101200)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <mach/mach_time.h> /* For mach_absolute_time() */
</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;'>-@@ -18545,7 +18548,7 @@ Timing
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return (double)(counter.QuadPart - pTimer->counter) / g_ma_TimerFrequency.QuadPart;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--#elif defined(MA_APPLE) && (__MAC_OS_X_VERSION_MIN_REQUIRED < 101200)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#elif defined(MA_APPLE) && (MAC_OS_X_VERSION_MIN_REQUIRED < 101200)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- static ma_uint64 g_ma_TimerFrequency = 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- static void ma_timer_init(ma_timer* pTimer)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -32308,6 +32311,12 @@ static ma_result ma_get_channel_map_from_AudioChannelLayout(AudioChannelLayout*
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #define AUDIO_OBJECT_PROPERTY_ELEMENT kAudioObjectPropertyElementMaster
</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;'>-+/* kAudioDevicePropertyScope* were renamed to kAudioObjectPropertyScope* in 10.8. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#if !defined(MAC_OS_X_VERSION_10_8) || (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_8)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#define kAudioObjectPropertyScopeInput kAudioDevicePropertyScopeInput
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#define kAudioObjectPropertyScopeOutput kAudioDevicePropertyScopeOutput
</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;'>- static ma_result ma_get_device_object_ids__coreaudio(ma_context* pContext, UInt32* pDeviceCount, AudioObjectID** ppDeviceObjectIDs) /* NOTE: Free the returned buffer with ma_free(). */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AudioObjectPropertyAddress propAddressDevices;
</span></pre><pre style='margin:0'>
</pre>