summaryrefslogtreecommitdiff
path: root/audio/mac
diff options
context:
space:
mode:
Diffstat (limited to 'audio/mac')
-rw-r--r--audio/mac/Makefile6
-rw-r--r--audio/mac/distinfo6
-rw-r--r--audio/mac/files/patch-Shared_All.h14
-rw-r--r--audio/mac/files/patch-Source_Shared_All.h27
-rw-r--r--audio/mac/files/patch-Source_Shared_CPUFeatures.cpp46
5 files changed, 70 insertions, 29 deletions
diff --git a/audio/mac/Makefile b/audio/mac/Makefile
index 2a99619bd084..77173a14bcfb 100644
--- a/audio/mac/Makefile
+++ b/audio/mac/Makefile
@@ -1,5 +1,5 @@
PORTNAME= mac
-PORTVERSION= 11.54
+PORTVERSION= 11.86
CATEGORIES= audio
MASTER_SITES= https://www.monkeysaudio.com/files/
DISTNAME= ${PORTNAME:tu}_${PORTVERSION:S|.||}_SDK
@@ -14,7 +14,9 @@ LICENSE_FILE= ${WRKSRC}/License.txt
USES= cmake dos2unix zip
DOS2UNIX_FILES= Shared/*.h \
- Source/Console/Console.cpp
+ Source/Console/*.cpp \
+ Source/Shared/*.cpp \
+ Source/Shared/*.h
NO_WRKSUBDIR= yes
diff --git a/audio/mac/distinfo b/audio/mac/distinfo
index c420dbd014e0..93c67b392fd0 100644
--- a/audio/mac/distinfo
+++ b/audio/mac/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1759128267
-SHA256 (MAC_1154_SDK.zip) = 6f825a606e474a03729eb50d8b6967c74dbd1863c172e0732d836bebd9813dfc
-SIZE (MAC_1154_SDK.zip) = 1704471
+TIMESTAMP = 1763531873
+SHA256 (MAC_1186_SDK.zip) = b1256882eab96f3cb3f618b13879fd2411589840b700b8aa29a395a8efcba67c
+SIZE (MAC_1186_SDK.zip) = 1730612
diff --git a/audio/mac/files/patch-Shared_All.h b/audio/mac/files/patch-Shared_All.h
index 03e25dc1defc..10b574e7d180 100644
--- a/audio/mac/files/patch-Shared_All.h
+++ b/audio/mac/files/patch-Shared_All.h
@@ -1,6 +1,9 @@
We need to define PLATFORM_LINUX as the default if consumers don't do so.
---- Shared/All.h.orig 2025-02-07 08:39:49 UTC
+Fix runtime for little endian archs. At least on amd64, _BIG_ENDIAN is defined
+somewhere in the toolchain, causing the byte order to be reversed.
+
+--- Shared/All.h.orig 2025-10-15 08:20:58 UTC
+++ Shared/All.h
@@ -10,8 +10,8 @@ PLATFORM_ANDROID
PLATFORM_ANDROID
@@ -13,3 +16,12 @@ We need to define PLATFORM_LINUX as the default if consumers don't do so.
#endif
#ifdef PLATFORM_ANDROID
+@@ -311,7 +311,7 @@ Byte order
+ #define APE_LITTLE_ENDIAN 1234
+ #define APE_BIG_ENDIAN 4321
+
+-#if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__) || (defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__))
++#if defined(__BIG_ENDIAN__) || (defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__))
+ #define APE_BYTE_ORDER APE_BIG_ENDIAN
+ #else
+ #define APE_BYTE_ORDER APE_LITTLE_ENDIAN
diff --git a/audio/mac/files/patch-Source_Shared_All.h b/audio/mac/files/patch-Source_Shared_All.h
new file mode 100644
index 000000000000..d7748cd159f8
--- /dev/null
+++ b/audio/mac/files/patch-Source_Shared_All.h
@@ -0,0 +1,27 @@
+We need to define PLATFORM_LINUX as the default if consumers don't do so.
+
+Fix runtime for little endian archs. At least on amd64, _BIG_ENDIAN is defined
+somewhere in the toolchain, causing the byte order to be reversed.
+
+--- Source/Shared/All.h.orig 2025-10-15 08:20:58 UTC
++++ Source/Shared/All.h
+@@ -10,8 +10,8 @@ PLATFORM_ANDROID
+ PLATFORM_ANDROID
+ **************************************************************************************************/
+ #if !defined(PLATFORM_WINDOWS) && !defined(PLATFORM_APPLE) && !defined(PLATFORM_LINUX) && !defined(PLATFORM_ANDROID)
+- #pragma message("No platform set for MACLib, defaulting to Windows")
+- #define PLATFORM_WINDOWS
++ #pragma message("No platform set for MACLib, defaulting to Linux")
++ #define PLATFORM_LINUX
+ #endif
+
+ #ifdef PLATFORM_ANDROID
+@@ -311,7 +311,7 @@ Byte order
+ #define APE_LITTLE_ENDIAN 1234
+ #define APE_BIG_ENDIAN 4321
+
+-#if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__) || (defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__))
++#if defined(__BIG_ENDIAN__) || (defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__))
+ #define APE_BYTE_ORDER APE_BIG_ENDIAN
+ #else
+ #define APE_BYTE_ORDER APE_LITTLE_ENDIAN
diff --git a/audio/mac/files/patch-Source_Shared_CPUFeatures.cpp b/audio/mac/files/patch-Source_Shared_CPUFeatures.cpp
index 3713b9bb9152..4c89888d95e9 100644
--- a/audio/mac/files/patch-Source_Shared_CPUFeatures.cpp
+++ b/audio/mac/files/patch-Source_Shared_CPUFeatures.cpp
@@ -1,26 +1,26 @@
--- Source/Shared/CPUFeatures.cpp.orig 2025-08-04 20:52:19 UTC
+++ Source/Shared/CPUFeatures.cpp
@@ -4,7 +4,7 @@
- #if defined(PLATFORM_LINUX)
- #include <sys/auxv.h>
-
-- #if defined(__arm__)
-+ #if defined(__arm__) && defined(__linux__)
- #include <asm/hwcap.h>
-
- #ifndef HWCAP_NEON
-@@ -187,7 +187,14 @@ bool GetNeonSupported()
- #if defined(__ARM_NEON) || defined(__ARM_NEON__) || defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC)
- return true;
- #elif defined(__arm__) && defined(PLATFORM_LINUX)
-+#ifdef __linux__
- return getauxval(AT_HWCAP) & HWCAP_NEON;
-+#elif defined(__FreeBSD__)
-+ long hwcap = 0;
-+
-+ elf_aux_info(AT_HWCAP, &hwcap, sizeof hwcap);
-+ return (hwcap & HWCAP_NEON);
-+#endif
- #else
- return false;
- #endif
+ #if defined(PLATFORM_LINUX)
+ #include <sys/auxv.h>
+
+- #if defined(__arm__)
++ #if defined(__arm__) && defined(__linux__)
+ #include <asm/hwcap.h>
+
+ #ifndef HWCAP_NEON
+@@ -187,7 +187,14 @@ bool GetNeonSupported()
+ #if defined(__ARM_NEON) || defined(__ARM_NEON__) || defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC)
+ return true;
+ #elif defined(__arm__) && defined(PLATFORM_LINUX)
++#ifdef __linux__
+ return getauxval(AT_HWCAP) & HWCAP_NEON;
++#elif defined(__FreeBSD__)
++ long hwcap = 0;
++
++ elf_aux_info(AT_HWCAP, &hwcap, sizeof hwcap);
++ return (hwcap & HWCAP_NEON);
++#endif
+ #else
+ return false;
+ #endif