contrib: add JACK
authorTristan Matthews <tmatth@videolan.org>
Fri, 31 Oct 2014 20:58:25 +0000 (16:58 -0400)
committerTristan Matthews <tmatth@videolan.org>
Fri, 31 Oct 2014 20:58:25 +0000 (16:58 -0400)
Default disabled for now.

contrib/src/jack/SHA512SUMS [new file with mode: 0644]
contrib/src/jack/config-osx.patch [new file with mode: 0644]
contrib/src/jack/rules.mak [new file with mode: 0644]

diff --git a/contrib/src/jack/SHA512SUMS b/contrib/src/jack/SHA512SUMS
new file mode 100644 (file)
index 0000000..84f4f8a
--- /dev/null
@@ -0,0 +1 @@
+a52655ca895e37a49a14cb72811f25c65c54bc26ae6d4ce35331b8b85f87905f1be25a88b2efb96c47b344abd0a6bf9371e4043e05ccf91cb08287835e5cc8ac  jack1-0.121.3.tar.gz
diff --git a/contrib/src/jack/config-osx.patch b/contrib/src/jack/config-osx.patch
new file mode 100644 (file)
index 0000000..fd1004f
--- /dev/null
@@ -0,0 +1,25 @@
+From 7bbaa8a2541987ae8db90819f4a94b9f3b133b24 Mon Sep 17 00:00:00 2001
+From: Tristan Matthews <tristan.matthews@savoirfairelinux.com>
+Date: Fri, 31 Oct 2014 16:29:26 -0400
+Subject: [PATCH 1/1] config: patch to build on OS X
+
+---
+ config/os/macosx/pThreadUtilities.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/config/os/macosx/pThreadUtilities.h b/config/os/macosx/pThreadUtilities.h
+index bd1d1e8..cdb59b4 100644
+--- a/config/os/macosx/pThreadUtilities.h
++++ b/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
+-- 
+1.9.3
+
diff --git a/contrib/src/jack/rules.mak b/contrib/src/jack/rules.mak
new file mode 100644 (file)
index 0000000..6798c3c
--- /dev/null
@@ -0,0 +1,29 @@
+# JACK
+
+JACK_VERSION := 0.121.3
+JACK_URL := https://github.com/jackaudio/jack1/archive/$(JACK_VERSION).tar.gz
+
+# disabled by default for now
+#PKGS += jack
+ifeq ($(call need_pkg,"jack"),)
+PKGS_FOUND += jack
+endif
+
+$(TARBALLS)/jack1-$(JACK_VERSION).tar.gz:
+       $(call download,$(JACK_URL))
+
+.sum-jack: jack1-$(JACK_VERSION).tar.gz
+
+jack: jack1-$(JACK_VERSION).tar.gz .sum-jack
+       $(UNPACK)
+ifdef HAVE_MACOSX
+       $(APPLY) $(SRC)/jack/config-osx.patch
+endif
+       $(UPDATE_AUTOCONFIG)
+       $(MOVE)
+
+.jack: jack
+       $(RECONF)
+       cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+       cd $< && $(MAKE) install
+       touch $@