2013-08-21 07:04:24 +00:00
|
|
|
# This now builds a version of JACKv1 which matches the current API
|
|
|
|
# for JACKv2. JACKv2 is not buildable on a number of Mac OS X
|
|
|
|
# distributions, and the JACK team instead suggests installation of
|
|
|
|
# JACKOSX, a pre-built binary form for which the source is not available.
|
|
|
|
# If you require JACKv2, you should use that. Otherwise, this formula should
|
|
|
|
# operate fine.
|
2013-12-14 18:13:11 +00:00
|
|
|
# Please see https://github.com/Homebrew/homebrew/pull/22043 for more info
|
2011-03-10 05:11:03 +00:00
|
|
|
class Jack < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Jack Audio Connection Kit (JACK)"
|
2015-02-24 14:44:07 +00:00
|
|
|
homepage "http://jackaudio.org"
|
2014-07-17 08:45:43 +00:00
|
|
|
url "http://jackaudio.org/downloads/jack-audio-connection-kit-0.124.1.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "eb42df6065576f08feeeb60cb9355dce4eb53874534ad71534d7aa31bae561d6"
|
2010-07-03 14:05:23 +00:00
|
|
|
|
2014-06-09 16:05:56 +00:00
|
|
|
bottle do
|
2015-02-24 15:05:46 +00:00
|
|
|
revision 2
|
2015-09-23 20:36:11 +00:00
|
|
|
sha256 "b4c1720c1e79b3d9a71cc79906175b90f6e30a8c2704c94e3c941d288b5453cc" => :el_capitan
|
2015-02-24 15:05:46 +00:00
|
|
|
sha1 "d81b70761532c0ab23e4ad05d1637a097a54013d" => :yosemite
|
|
|
|
sha1 "76ccc2252a0fd976c6e90e3473c1e3013646e7b3" => :mavericks
|
|
|
|
sha1 "31a06a65e0b68251172b1816df8c37bfdde7f5bd" => :mountain_lion
|
2014-06-09 16:05:56 +00:00
|
|
|
end
|
|
|
|
|
2015-02-24 14:44:07 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "berkeley-db"
|
|
|
|
depends_on "libsndfile"
|
|
|
|
depends_on "libsamplerate"
|
2010-10-20 11:22:24 +00:00
|
|
|
|
2014-03-19 17:07:53 +00:00
|
|
|
# Change pThread header include from CarbonCore
|
|
|
|
patch :p0, :DATA if MacOS.version >= :mountain_lion
|
2012-06-13 03:31:11 +00:00
|
|
|
|
2013-09-24 23:59:44 +00:00
|
|
|
plist_options :manual => "jackd -d coreaudio"
|
|
|
|
|
|
|
|
def plist; <<-EOS.undent
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
|
|
<plist version="1.0">
|
|
|
|
<dict>
|
|
|
|
<key>Label</key>
|
|
|
|
<string>#{plist_name}</string>
|
|
|
|
<key>WorkingDirectory</key>
|
|
|
|
<string>#{prefix}</string>
|
|
|
|
<key>ProgramArguments</key>
|
|
|
|
<array>
|
2014-03-06 05:28:31 +00:00
|
|
|
<string>#{opt_bin}/jackd</string>
|
2013-09-24 23:59:44 +00:00
|
|
|
<string>-d</string>
|
|
|
|
<string>coreaudio</string>
|
|
|
|
</array>
|
|
|
|
<key>RunAtLoad</key>
|
|
|
|
<true/>
|
|
|
|
<key>KeepAlive</key>
|
|
|
|
<true/>
|
|
|
|
</dict>
|
|
|
|
</plist>
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2010-07-03 14:05:23 +00:00
|
|
|
def install
|
2015-08-09 06:00:37 +00:00
|
|
|
# Makefile hardcodes Carbon header location
|
|
|
|
inreplace Dir["drivers/coreaudio/Makefile.{am,in}"],
|
|
|
|
"/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h",
|
|
|
|
"#{MacOS.sdk_path}/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h"
|
|
|
|
|
2015-02-24 14:44:07 +00:00
|
|
|
ENV["LINKFLAGS"] = ENV.ldflags
|
2013-08-21 07:04:24 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2015-02-24 14:44:07 +00:00
|
|
|
system "make", "install"
|
2010-07-03 14:05:23 +00:00
|
|
|
end
|
|
|
|
end
|
2013-08-21 07:04:24 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
--- config/os/macosx/pThreadUtilities.h
|
|
|
|
+++ config/os/macosx/pThreadUtilities.h
|
|
|
|
@@ -66,7 +66,7 @@
|
|
|
|
#define __PTHREADUTILITIES_H__
|
|
|
|
|
|
|
|
#import "pthread.h"
|
|
|
|
-#import <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h>
|
|
|
|
+#import <MacTypes.h>
|
|
|
|
|
|
|
|
#define THREAD_SET_PRIORITY 0
|
|
|
|
#define THREAD_SCHEDULED_PRIORITY 1
|