Skip to content

Commit

Permalink
rubberband: fix system test for < 10.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kencu authored and pmetzger committed Jun 4, 2018
1 parent be28d5e commit c09fac8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion audio/rubberband/Portfile
Expand Up @@ -25,7 +25,8 @@ checksums rmd160 4178002a1f318c7e104afa9e76321dca07bcbe95 \

depends_lib port:libsndfile

patchfiles patch-Makefile.osx.diff
patchfiles patch-Makefile.osx.diff \
patch-vectorops-snowleopard.diff

# error: unrecognized command line option "-mfpmath=sse"
supported_archs i386 x86_64
Expand Down
12 changes: 12 additions & 0 deletions audio/rubberband/files/patch-vectorops-snowleopard.diff
@@ -0,0 +1,12 @@
see https://bitbucket.org/breakfastquay/rubberband/issues/23/macos-system-test-in-src-system-vectoropsh
--- src/system/VectorOps.h.orig 2018-05-27 14:05:45.000000000 -0700
+++ src/system/VectorOps.h 2018-05-27 14:07:44.000000000 -0700
@@ -677,7 +677,7 @@
const int count)
{
float tmp[count];
-#if (defined(MACOSX_DEPLOYMENT_TARGET) && MACOSX_DEPLOYMENT_TARGET <= 1070 && MAC_OS_X_VERSION_MIN_REQUIRED <= 1070)
+#if (defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED < 1070)
vvfabf(tmp, dst, &count);
#else
vvfabsf(tmp, dst, &count);

0 comments on commit c09fac8

Please sign in to comment.