diff options
Diffstat (limited to 'repo/ardour')
-rw-r--r-- | repo/ardour/always-link-execinfo.patch | 13 | ||||
-rw-r--r-- | repo/ardour/ardour.xibuild | 41 | ||||
-rw-r--r-- | repo/ardour/disable-backtrace.patch | 13 |
3 files changed, 67 insertions, 0 deletions
diff --git a/repo/ardour/always-link-execinfo.patch b/repo/ardour/always-link-execinfo.patch new file mode 100644 index 0000000..02d2dc0 --- /dev/null +++ b/repo/ardour/always-link-execinfo.patch @@ -0,0 +1,13 @@ +Upstream: not yet, need proper alternative. +--- a/libs/pbd/wscript 2020-05-27 15:46:59.641983074 +0200 ++++ b/libs/pbd/wscript 2020-05-27 15:47:08.208661970 +0200 +@@ -181,8 +181,7 @@ + obj.install_path = bld.env['LIBDIR'] + obj.defines += [ 'PACKAGE="' + I18N_PACKAGE + '"' ] + +- if sys.platform.startswith('netbsd'): +- obj.linkflags = '-lexecinfo' ++ obj.ldflags = '-lexecinfo' + + if bld.env['build_target'] == 'x86_64': + obj.defines += [ 'USE_X86_64_ASM' ] diff --git a/repo/ardour/ardour.xibuild b/repo/ardour/ardour.xibuild new file mode 100644 index 0000000..88beac7 --- /dev/null +++ b/repo/ardour/ardour.xibuild @@ -0,0 +1,41 @@ +#!/bin/sh + +NAME="ardour" +DESC="professional-grade digital audio workstation" + +MAKEDEPS="alsa-lib atkmm aubio boost fftw gtk2 gtkmm itstool jack libarchive libexecinfo liblo libpng libsamplerate libsigc++ libsndfile lilv lrdf lv2 pulseaudio python readline redland rubberband serd sratom taglib vamp-sdk fluidsynth hidapi" + +PKG_VER=6.9.0 +SOURCE="https://community.ardour.org/src/Ardour-$PKG_VER.tar.bz2" + +ADDITIONAL=" +always-link-execinfo.patch +disable-backtrace.patch +" + +prepare () { + apply_patches +} + +build() { + python3 waf configure \ + --prefix=/usr \ + --cxx11 \ + --keepflags \ + --optimize \ + --freedesktop \ + --no-phone-home \ + --with-backends=pulseaudio,jack,alsa,dummy + #FIXME: add missing dependencies + # --use-external-libs + python3 waf build +} + +check() { + python3 waf test +} + +package() { + python3 waf install --destdir="$PKG_DEST" +} + diff --git a/repo/ardour/disable-backtrace.patch b/repo/ardour/disable-backtrace.patch new file mode 100644 index 0000000..7d8fc61 --- /dev/null +++ b/repo/ardour/disable-backtrace.patch @@ -0,0 +1,13 @@ +Disable use of execinfo backtrace because it causes a crash. + +Upstream bug report: https://tracker.ardour.org/view.php?id=8211 +--- a/libs/pbd/wscript 2020-06-10 14:33:53.822160367 +0200 ++++ b/libs/pbd/wscript 2020-06-10 14:34:03.742215341 +0200 +@@ -109,7 +109,6 @@ + autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.32.0', mandatory=True) + autowaf.check_pkg(conf, 'giomm-2.4', uselib_store='GIOMM', atleast_version='2.2', mandatory=True) + +- conf.check(header_name='execinfo.h', define_name='HAVE_EXECINFO',mandatory=False) + conf.check(header_name='unistd.h', define_name='HAVE_UNISTD',mandatory=False) + if not Options.options.ppc: + conf.check_cc( |