diff options
author | davidovski <david@davidovski.xyz> | 2022-06-04 15:08:04 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-04 15:08:04 +0100 |
commit | 873665024ebfaa761ee49b508a79db7178aeb778 (patch) | |
tree | 6cd3b4ce3a9f4b0586ffa48e73a6ba4c8da2db43 /repo/jack | |
parent | 4445f6e15185f58dc599390ab74df3ca19b437b7 (diff) |
added gnupg
Diffstat (limited to 'repo/jack')
-rw-r--r-- | repo/jack/fix-execinfo.patch | 24 | ||||
-rw-r--r-- | repo/jack/increase-api-version.patch | 16 | ||||
-rw-r--r-- | repo/jack/jack.xibuild | 34 |
3 files changed, 74 insertions, 0 deletions
diff --git a/repo/jack/fix-execinfo.patch b/repo/jack/fix-execinfo.patch new file mode 100644 index 0000000..24218ae --- /dev/null +++ b/repo/jack/fix-execinfo.patch @@ -0,0 +1,24 @@ +--- jack-1.9.10.orig/dbus/sigsegv.c ++++ jack-1.9.10/dbus/sigsegv.c +@@ -11,6 +11,8 @@ + * Copyright (C) 2005 - 2008 Jaco Kroon + */ + ++#ifdef __GLIBC__ ++ + #if defined(HAVE_CONFIG_H) + #include "config.h" + #endif +@@ -209,4 +211,12 @@ + static void __attribute((constructor)) init(void) { + setup_sigsegv(); + } ++#endif ++ ++#else ++ ++int setup_sigsegv() { ++ return 1; ++} ++ + #endif diff --git a/repo/jack/increase-api-version.patch b/repo/jack/increase-api-version.patch new file mode 100644 index 0000000..78b07ef --- /dev/null +++ b/repo/jack/increase-api-version.patch @@ -0,0 +1,16 @@ +jack's low API version (so:libjack.so.0.1.0) makes apk prefer pipewire-jack over jack +We don't want this, users need to explicitly tell users they prefer pipewire-jack, so we increase the API version here to be always higher than pipewire-jack + +diff --git a/wscript b/wscript +index e0d32c8d..2c0a7123 100644 +--- a/wscript ++++ b/wscript +@@ -13,7 +13,7 @@ from waflib.Build import BuildContext, CleanContext, InstallContext, UninstallCo + + VERSION='1.9.20' + APPNAME='jack' +-JACK_API_VERSION = '0.1.0' ++JACK_API_VERSION = '0.999.0' + + # these variables are mandatory ('/' are converted automatically) + top = '.' diff --git a/repo/jack/jack.xibuild b/repo/jack/jack.xibuild new file mode 100644 index 0000000..04ad8c0 --- /dev/null +++ b/repo/jack/jack.xibuild @@ -0,0 +1,34 @@ +#!/bin/sh + +NAME="jack" +DESC="The Jack Audio Connection Kit" + +MAKEDEPS="alsa-lib dbus expat libsamplerate libsndfile ncurses readline python linux-headers" + +PKG_VER=1.9.20 +SOURCE="https://github.com/jackaudio/jack2/archive/v$PKG_VER/jack2-v$PKG_VER.tar.gz" + +ADDITIONAL=" +fix-execinfo.patch +increase-api-version.patch +" +prepare () { + apply_patches +} + +build() { + ./waf configure \ + --prefix=/usr \ + --mandir=/usr/share/man/man1 \ + --libdir=/usr/lib \ + --dbus \ + --alsa \ + --classic + + ./waf build -v +} + +package() { + ./waf --destdir="$PKG_DEST" install +} + |