git: 7775b61192af - main - audio/mac: Install patched headers
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 15 Oct 2025 09:56:19 UTC
The branch main has been updated by jhale:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7775b61192af1982e534486fd3019531c3dc4bc9
commit 7775b61192af1982e534486fd3019531c3dc4bc9
Author: Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2025-10-15 09:46:01 +0000
Commit: Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2025-10-15 09:46:01 +0000
audio/mac: Install patched headers
While the headers in Source/Shared are built against, the copies in
Shared are the ones installed, so patch both.
Fixes: 11b21784e3cc audio/mac: Update to 11.62
MFH: 2025Q4
---
audio/mac/Makefile | 4 +++-
audio/mac/files/patch-Shared_All.h | 27 +++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 1 deletion(-)
diff --git a/audio/mac/Makefile b/audio/mac/Makefile
index c01f8463ae6d..cd5891747773 100644
--- a/audio/mac/Makefile
+++ b/audio/mac/Makefile
@@ -1,5 +1,6 @@
PORTNAME= mac
PORTVERSION= 11.62
+PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= https://www.monkeysaudio.com/files/
DISTNAME= ${PORTNAME:tu}_${PORTVERSION:S|.||}_SDK
@@ -13,7 +14,8 @@ LICENSE_FILE= ${WRKSRC}/License.txt
USES= cmake dos2unix zip
-DOS2UNIX_FILES= Source/Console/*.cpp \
+DOS2UNIX_FILES= Shared/*.h \
+ Source/Console/*.cpp \
Source/Shared/*.cpp \
Source/Shared/*.h
diff --git a/audio/mac/files/patch-Shared_All.h b/audio/mac/files/patch-Shared_All.h
new file mode 100644
index 000000000000..10b574e7d180
--- /dev/null
+++ b/audio/mac/files/patch-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.
+
+--- Shared/All.h.orig 2025-10-15 08:20:58 UTC
++++ 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