Skip to content
Permalink
Browse files

jack: Fix build on legacy systems

  • Loading branch information
neverpanic committed Apr 9, 2018
1 parent 1a0c2a4 commit 0020079b7d555c5d32bb3c329d25832c72e2ce28
Showing with 29 additions and 0 deletions.
  1. +6 −0 audio/jack/Portfile
  2. +23 −0 audio/jack/files/MacTypes.diff
@@ -24,6 +24,12 @@ long_description \
Through JACK, users are enabled to build powerful systems for signal \
processing and music production.

platform darwin {
if {${os.major} < 12} {
patchfiles MacTypes.diff
}
}

depends_build-append \
port:pkgconfig
depends_lib port:libsamplerate \
@@ -0,0 +1,23 @@
diff -Naur ./macosx/JackMachThread.h ../jack2-1.9.12/macosx/JackMachThread.h
--- ./macosx/JackMachThread.h 2017-12-13 22:19:04.000000000 +0100
+++ ../jack2-1.9.12/macosx/JackMachThread.h 2018-04-08 01:18:03.000000000 +0200
@@ -70,7 +70,7 @@

#include "JackPosixThread.h"
#ifndef MY_TARGET_OS_IPHONE
-#include <MacTypes.h>
+#include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h>
#endif

#include <mach/thread_policy.h>
diff -Naur ./macosx/coremidi/JackCoreMidiUtil.h ../jack2-1.9.12/macosx/coremidi/JackCoreMidiUtil.h
--- ./macosx/coremidi/JackCoreMidiUtil.h 2017-12-13 22:19:04.000000000 +0100
+++ ../jack2-1.9.12/macosx/coremidi/JackCoreMidiUtil.h 2018-04-08 01:16:34.000000000 +0200
@@ -22,7 +22,7 @@

#include <string>

-#include <MacTypes.h>
+#include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h>

namespace Jack {

0 comments on commit 0020079

Please sign in to comment.
You can’t perform that action at this time.