Skip to content

Commit

Permalink
kvazaar: enable dispatch on powerpc
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Dec 29, 2024
1 parent d1ac44b commit 4c15337
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
6 changes: 5 additions & 1 deletion multimedia/kvazaar/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PortGroup compiler_blacklist_versions 1.0

github.setup ultravideo kvazaar 2.3.1 v
github.tarball_from releases
revision 0
revision 1
categories multimedia devel
license BSD
maintainers {makr @mohd-akram} openmaintainer
Expand All @@ -22,3 +22,7 @@ checksums rmd160 65fe6d5f27230fe51cfe0fb6e76761795c2a6699 \
# implicit declaration of function '_tzcnt_u32' is invalid in C99
# uses newer intrinsic functions
compiler.blacklist {clang < 700} {*gcc-[34].*}

# On 10a190 either drop the patch or use libdispatch-legacy port.
# On 10.6.8 ppc this works.
patchfiles-append patch-enable-dispatch.diff
14 changes: 14 additions & 0 deletions multimedia/kvazaar/files/patch-enable-dispatch.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- src/threads.h 2024-01-19 19:07:44.000000000 +0800
+++ src/threads.h 2024-12-29 15:40:31.000000000 +0800
@@ -88,9 +88,9 @@

#endif //__GNUC__

-#if defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED > 1050 && !defined(__ppc__)
+#if defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED > 1050
// POSIX semaphores are deprecated on Mac so we use Grand Central Dispatch semaphores instead.
-// However GCD is supported only on 10.6+, and is not supported on any ppc, including 10.6 Rosetta.
+// However GCD is supported only on 10.6+. (Looks like PowerPC on 10.6 can be enabled now.)
#include <dispatch/dispatch.h>
typedef dispatch_semaphore_t kvz_sem_t;

0 comments on commit 4c15337

Please sign in to comment.