diff options
Diffstat (limited to 'media-sound/mac')
-rw-r--r-- | media-sound/mac/Manifest | 4 | ||||
-rw-r--r-- | media-sound/mac/files/mac-10.18-linux.patch | 24 | ||||
-rw-r--r-- | media-sound/mac/files/mac-10.18-output.patch | 37 | ||||
-rw-r--r-- | media-sound/mac/mac-10.24.ebuild | 31 |
4 files changed, 96 insertions, 0 deletions
diff --git a/media-sound/mac/Manifest b/media-sound/mac/Manifest index 7146f47b15e6..936059d9d6a9 100644 --- a/media-sound/mac/Manifest +++ b/media-sound/mac/Manifest @@ -1,6 +1,10 @@ +AUX mac-10.18-linux.patch 1178 BLAKE2B 3566e9bcc5221cd04b75b9e43d3b944edb3f5e38b307e74bc49ec01f6000890c9077a7889fb1938c6e45de9aea9603cf008ac77cbb67e4344cb7fa3751be0cc3 SHA512 c46e3ba670b28306a51a5c9fff5d95653108ad0cebeeb8a2f5307c99ef0bfa64f5f8930ecfac427c07120be162cdfd65f5d5b384b8a4c4f53e258408c8b0ca62 +AUX mac-10.18-output.patch 2812 BLAKE2B 1b4324f2f13a1e87e5ee4f2f063f3e2f242c1a476ae6df9e3cc9d1170ce9ad7f3707f35e038c34db5ef941f7bbdfb823cc6163a117284f17ff6e5104b0fd855f SHA512 9e202deece5ffd5c3c2167de147767a0ce8d7badef0f5a0cc5575a89c9cce548daf19cc0d0f650b726bc63a13eb7565693b98e92dac579baca9eb161f96f15b5 AUX mac-4.11.4.5.7-gcc6.patch 10119 BLAKE2B d6a363f26c7a08c6bdb0e14fea6bb29553427372fa74375c1cf5721f28bd6bbcc6e091cb3703705d773bda93e3cede89725cbe28b8b678307fa3d5eeca1c3a5d SHA512 0439cb133779dd540c5cee6760dd6a8acd23434b60baaba804430883cb6d67ca37151370356e9adec3f031cb02c34d529a8f91618f0f9fca6e58e14a295c3a63 AUX mac-4.11.4.5.7-null.patch 406 BLAKE2B 8e8c38cebd040bc9728de64c994ee422ee6ab6f403773ff69ea26b85c38ceb4b15ced1b3b6343b36ebc7e380bde54eddf2c13e6c00e8f33cfac99955f6b44920 SHA512 d8fc2ed994b627176f78796980a9d8f4ce386c97aa05ce68085f642f3feb62a0994f88c8586f60a4a1f1116bc42e57d3881deb967e81a887eed800589d61c867 AUX mac-4.11.4.5.7-output.patch 1498 BLAKE2B 7016b28d4c9a71d02471de1f4a5e5f1ade7db75d53f096916d3f87b154d82fcb4c3e6fd3891f909e0eebef512795ad2072d332241d69315b9e1ab959f7f895ad SHA512 c96874817ea5389ea2af46c634cd548733e614274b43c9395e146c9151dd9e7a03bbb8c82f36807cc2178070f8a87b886c6db94c27cb4369dbfcb874074db490 +DIST mac-10.24.zip 1653617 BLAKE2B 4b22b29cbdaa8d715d985231feafdc4c5a3e85e623b2954bcdfaa3cc868502be8c6aa809264bc3b9d3b096bfa2b34fe22724ec5a072c3c93242834790d08aea7 SHA512 e6e88d14b2bc2b33425fc653e1771709f3cddfbed5441090eab32009365e8770aef52e0a4229ca189180d59b928f4f899302fde9f9b8ac7bfbc5fb15533b26c4 DIST monkeys-audio_4.11-u4-b5-s7.orig.tar.gz 511190 BLAKE2B 28b5a3aadd9dae410c93cfc43c40c07fe207036f27cf60d59d8fa137a0327f90a78746c14930b7d3becb7f5fa69a454a6855aae1553dc74cd5168a9a523bb8f0 SHA512 7e73b35c86d6007ab2a94a2d8b7449bb4ac505bbba53e40373a279dc83a9cad5f62a51419a6375335576cf325c88ed7d317b0ef3039b8a497100cb74a63c25d0 +EBUILD mac-10.24.ebuild 600 BLAKE2B 1d7e67320c7eaa0f8a9ff9ed8c2d4e182365e11769deeddf4fffe80a4d1f8946d47381e6bd4db9522b99e937f4426c7a9e635ac5333118b73783f44b2c4c4456 SHA512 937eec890d880ec9eef6ab82dbc739b2edc3e4231eef6b91b90a6c8de926bfee2684b14057e37c5ce043d129bd4746523f8f466bff46c27c5ee7f01173244fda EBUILD mac-4.11.4.5.7-r1.ebuild 1419 BLAKE2B f0f98dbf50f62289d4f6767b96c3a31d70561253c014c2f0dd4e0941941c3389ea5c59e404ded08c0e2e3d0d0c658dbb378993b18aca171e71ee17cd8c6a318f SHA512 96d6deb9c106b8efe2c7ec151aabafdf1922475274efaf37763a22e538bbb73b021b607c1fd95ad591dcce4ec5506b6ee6ce4bd9488d4e124a3ff6353a2a78ec MISC metadata.xml 374 BLAKE2B ac05d2add0cd7ac5956aad2f5a7bc031880ac86b1ba62266c3d5afcfa769e687d974cf00e1e1d4c3b50964b5a05c193f4a033eabe0ec0a6d626018aedf32be00 SHA512 586664bdcd30ef7b414740d264e143511f39411a33b845ce0f39503dd2215e501fba07c408ea777472ede967e91001617ac91dd9acb303ad8757bcabbba17b0e diff --git a/media-sound/mac/files/mac-10.18-linux.patch b/media-sound/mac/files/mac-10.18-linux.patch new file mode 100644 index 000000000000..0346101f3eb0 --- /dev/null +++ b/media-sound/mac/files/mac-10.18-linux.patch @@ -0,0 +1,24 @@ +diff -Naur mac-10.18_orig/Shared/All.h mac-10.18/Shared/All.h +--- mac-10.18_orig/Shared/All.h 2023-08-13 18:59:03.447085864 +0200 ++++ mac-10.18/Shared/All.h 2023-08-13 19:00:20.053081298 +0200 +@@ -11,7 +11,7 @@ + **************************************************************************************************/
+ #if !defined(PLATFORM_WINDOWS) && !defined(PLATFORM_APPLE) && !defined(PLATFORM_LINUX)
+ #pragma message("No platform set for MACLib, defaulting to Windows")
+- #define PLATFORM_WINDOWS
++ #define PLATFORM_LINUX
+ #endif
+
+ #ifdef PLATFORM_ANDROID
+diff -Naur mac-10.18_orig/Source/Shared/All.h mac-10.18/Source/Shared/All.h +--- mac-10.18_orig/Source/Shared/All.h 2023-08-13 18:59:03.453085864 +0200 ++++ mac-10.18/Source/Shared/All.h 2023-08-13 19:00:12.732081734 +0200 +@@ -11,7 +11,7 @@ + **************************************************************************************************/
+ #if !defined(PLATFORM_WINDOWS) && !defined(PLATFORM_APPLE) && !defined(PLATFORM_LINUX)
+ #pragma message("No platform set for MACLib, defaulting to Windows")
+- #define PLATFORM_WINDOWS
++ #define PLATFORM_LINUX
+ #endif
+
+ #ifdef PLATFORM_ANDROID
diff --git a/media-sound/mac/files/mac-10.18-output.patch b/media-sound/mac/files/mac-10.18-output.patch new file mode 100644 index 000000000000..f790842a93f8 --- /dev/null +++ b/media-sound/mac/files/mac-10.18-output.patch @@ -0,0 +1,37 @@ +diff -Naur mac-10.18_orig/Source/Console/Console.cpp mac-10.18/Source/Console/Console.cpp +--- mac-10.18_orig/Source/Console/Console.cpp 2023-08-14 19:06:29.480902250 +0200 ++++ mac-10.18/Source/Console/Console.cpp 2023-08-14 19:07:11.613901402 +0200 +@@ -67,7 +67,7 @@ + **************************************************************************************************/
+ static void DisplayProperUsage(FILE * pFile)
+ {
+- fwprintf(pFile, L"Proper Usage: [EXE] [Input File] [Output File] [Mode]\n\n");
++ fwprintf(pFile, L"Proper Usage: [mac] [Input File] [Output File] [Mode]\n\n");
+
+ fwprintf(pFile, L"Modes: \n");
+ fwprintf(pFile, L" Compress (fast): '-c1000'\n");
+@@ -83,15 +83,15 @@ + fwprintf(pFile, L" Remove Tag: '-r'\n\n");
+
+ fwprintf(pFile, L"Examples:\n");
+- fwprintf(pFile, L" Compress: mac.exe \"Metallica - One.wav\" \"Metallica - One.ape\" -c2000\n");
+- fwprintf(pFile, L" Compress: mac.exe \"Metallica - One.wav\" \"Metallica - One.ape\" -c2000 -t \"Artist=Metallica|Album=Black|Name=One\"\n");
+- fwprintf(pFile, L" Transcode from pipe: ffmpeg.exe -i \"Metallica - One.flac\" -f wav - | mac.exe - \"Metallica - One.ape\" -c2000\n");
+- fwprintf(pFile, L" Decompress: mac.exe \"Metallica - One.ape\" \"Metallica - One.wav\" -d\n");
+- fwprintf(pFile, L" Decompress: mac.exe \"Metallica - One.ape\" auto -d\n");
+- fwprintf(pFile, L" Verify: mac.exe \"Metallica - One.ape\" -v\n");
+- fwprintf(pFile, L" Full Verify: mac.exe \"Metallica - One.ape\" -V\n");
+- fwprintf(pFile, L" Tag: mac.exe \"Metallica - One.ape\" -t \"Artist=Metallica|Album=Black|Name=One|Comment=\\\"This is in quotes\\\"\"\n");
+- fwprintf(pFile, L" Remove tag: mac.exe \"Metallica - One.ape\" -r\n");
++ fwprintf(pFile, L" Compress: mac \"Metallica - One.wav\" \"Metallica - One.ape\" -c2000\n");
++ fwprintf(pFile, L" Compress: mac \"Metallica - One.wav\" \"Metallica - One.ape\" -c2000 -t \"Artist=Metallica|Album=Black|Name=One\"\n");
++ fwprintf(pFile, L" Transcode from pipe: ffmpeg -i \"Metallica - One.flac\" -f wav - | mac - \"Metallica - One.ape\" -c2000\n");
++ fwprintf(pFile, L" Decompress: mac \"Metallica - One.ape\" \"Metallica - One.wav\" -d\n");
++ fwprintf(pFile, L" Decompress: mac \"Metallica - One.ape\" auto -d\n");
++ fwprintf(pFile, L" Verify: mac \"Metallica - One.ape\" -v\n");
++ fwprintf(pFile, L" Full Verify: mac \"Metallica - One.ape\" -V\n");
++ fwprintf(pFile, L" Tag: mac \"Metallica - One.ape\" -t \"Artist=Metallica|Album=Black|Name=One|Comment=\\\"This is in quotes\\\"\"\n");
++ fwprintf(pFile, L" Remove tag: mac \"Metallica - One.ape\" -r\n");
+ fwprintf(pFile, L" (note: int filenames must be put inside of quotations)\n");
+ }
+
diff --git a/media-sound/mac/mac-10.24.ebuild b/media-sound/mac/mac-10.24.ebuild new file mode 100644 index 000000000000..4b25756f5a06 --- /dev/null +++ b/media-sound/mac/mac-10.24.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Monkey's Audio Codecs" +HOMEPAGE="https://www.monkeysaudio.com" +SRC_URI="http://monkeysaudio.com/files/MAC_${PV/.}_SDK.zip -> ${P}.zip" + +LICENSE="mac" +SLOT="0/10" +KEYWORDS="~alpha ~amd64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND="" +DEPEND="" +BDEPEND="app-arch/unzip" + +src_unpack() { + mkdir -p "${S}" || die + cd "${S}" || die + default +} + +CMAKE_BUILD_TYPE=Release + +PATCHES=( + "${FILESDIR}/${PN}-10.18-linux.patch" + "${FILESDIR}/${PN}-10.18-output.patch" +) |