homebrew-core/Formula/jack.rb

75 lines
2.2 KiB
Ruby
Raw Normal View History

require 'formula'
# 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.
# Please see https://github.com/Homebrew/homebrew/pull/22043 for more info
2011-03-10 05:11:03 +00:00
class Jack < Formula
homepage 'http://jackaudio.org'
url "http://jackaudio.org/downloads/jack-audio-connection-kit-0.124.1.tar.gz"
sha1 "e9ba4a4c754ec95fbe653dcf7344edd6cc47cd60"
2014-06-09 16:05:56 +00:00
bottle do
2014-10-22 01:39:09 +00:00
revision 1
sha1 "77d0ff244fa183a4f520498229b7c3263b6d099d" => :yosemite
sha1 "5ba1cd3b59da76cbec24b2ce8cfafb920934b5e7" => :mavericks
sha1 "01f34e585df06210bfc2f06d07d1ef7058d17f67" => :mountain_lion
2014-06-09 16:05:56 +00:00
end
depends_on 'berkeley-db'
depends_on 'celt'
depends_on 'libsndfile'
depends_on 'libsamplerate'
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
def install
ENV['LINKFLAGS'] = ENV.ldflags
system "./configure", "--prefix=#{prefix}"
system "make","install"
end
end
__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