Skip to content

Commit

Permalink
patch to disable jack support digego/extempore#403
Browse files Browse the repository at this point in the history
  • Loading branch information
CastixGitHub committed May 22, 2021
1 parent 968baa0 commit b59853f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
17 changes: 12 additions & 5 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Maintainer: Abdó Roig-Maranges <[email protected]>

pkgname=extempore-git
pkgver=0.8.7.r35.g78c44413
pkgrel=2
pkgver=v0.8.9.r0.g0368489b
pkgrel=1
pkgdesc="A cyber-physical programming environment for live coding"
arch=('i686' 'x86_64')
url="http://extempore.moso.com.au"
Expand All @@ -19,16 +19,23 @@ pkgver() {
git --git-dir="${srcdir}/extempore/.git" describe --long --tags | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
prepare() {
# I was unable to compile portaudio with jack backend
cd "${srcdir}/extempore"
patch -p0 < ../../disable_jack.patch
}

build() {
mkdir -p "${srcdir}/build"
cd "${srcdir}/build"

# NOTE: set ASSETS to OFF you you don't want to download ~500MB of assets
# NOTE: building with debug symbols for easy reporting of bugs
cmake -DCMAKE_INSTALL_PREFIX=/opt/${pkgname} \
-DJACK=ON \
-DBUILD_DEPS=ON \
-DPACKAGE=ON \
-DASSETS=ON \
-DJACK=OFF \
-DCMAKE_BUILD_TYPE=Debug \
../extempore

make
Expand Down
19 changes: 19 additions & 0 deletions disable_jack.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--- CMakeLists.txt 2021-05-22 11:30:27.958294663 +0200
+++ CMakeLists.txt.new 2021-05-22 11:29:17.120943327 +0200
@@ -14,6 +14,8 @@

option(EXT_DYLIB "build extempore as a dynamic library" OFF)

+option(JACK "use the Jack Portaudio backend" ON)
+
## this is useful because we can group targets together (e.g. all the AOT libs)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)

@@ -186,6 +188,7 @@
-DPA_BUILD_STATIC=ON
-DPA_BUILD_SHARED=OFF
-DPA_LIBNAME_ADD_SUFFIX=OFF
+ -DPA_USE_JACK=${JACK}
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_C_FLAGS=${EXT_DEPS_C_FLAGS}
-DCMAKE_CXX_FLAGS=${EXT_DEPS_CXX_FLAGS}

0 comments on commit b59853f

Please sign in to comment.