Skip to content

Commit

Permalink
olaf-devel: fix for older systems and powerpc (#23913)
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed May 12, 2024
1 parent 3e17ec9 commit c910209
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
7 changes: 6 additions & 1 deletion audio/olaf-devel/Portfile
Expand Up @@ -8,7 +8,6 @@ name olaf-devel
version 20230929
revision 0
categories audio
platforms darwin
license AGPL-3
maintainers {l2dy @l2dy} openmaintainer
description Overly Lightweight Acoustic Fingerprinting
Expand All @@ -20,6 +19,12 @@ checksums rmd160 dc0dbfa5d0a113f43094892571016bd5bbc0962f \

depends_run port:rb32-threach

# https://github.com/JorenSix/Olaf/issues/50
patchfiles-append patch-altivec.diff

# cc1: error: unrecognized command line option "-std=gnu11"
compiler.c_standard 2011

use_configure no
build.target compile

Expand Down
11 changes: 11 additions & 0 deletions audio/olaf-devel/files/patch-altivec.diff
@@ -0,0 +1,11 @@
--- src/pffft.c 2023-09-29 22:52:51.000000000 +0800
+++ src/pffft.c 2024-05-12 10:31:03.000000000 +0800
@@ -96,7 +96,7 @@
/*
Altivec support macros
*/
-#if !defined(PFFFT_SIMD_DISABLE) && (defined(__ppc__) || defined(__ppc64__))
+#if !defined(PFFFT_SIMD_DISABLE) && (defined(__ppc__) || defined(__ppc64__)) && !defined(__APPLE__)
typedef vector float v4sf;
# define SIMD_SZ 4
# define VZERO() ((vector float) vec_splat_u8(0))

0 comments on commit c910209

Please sign in to comment.