commit:     e0e8fbe3c6e96c86b95825f3ddb8b89518c89782
Author:     Daniel Pielmeier <billie <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 30 14:46:45 2023 +0000
Commit:     Daniel Pielmeier <billie <AT> gentoo <DOT> org>
CommitDate: Sat Sep 30 14:46:45 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0e8fbe3

media-sound/mac/files: Add missing patches

Signed-off-by: Daniel Pielmeier <billie <AT> gentoo.org>

 media-sound/mac/files/mac-10.18-linux.patch  | 24 ++++++++++++++++++
 media-sound/mac/files/mac-10.18-output.patch | 37 ++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)

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");
+ }
+ 

Reply via email to