From c9f6b0dab5facc7206119eaea268d1f12ddd75c9 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 9 Aug 2013 11:04:04 -0400 Subject: [PATCH] the JACK audio backend shared object depends on libasound (ALSA) on linux, so it requires explicit linkage --- libs/ardour/wscript | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/libs/ardour/wscript b/libs/ardour/wscript index f13c4e5eef..c140c6eb3a 100644 --- a/libs/ardour/wscript +++ b/libs/ardour/wscript @@ -4,6 +4,7 @@ from waflib import Options import os import re import subprocess +import sys # default state file version for this build CURRENT_SESSION_FILE_VERSION = 3001 @@ -253,6 +254,10 @@ def configure(conf): atleast_version='0.1.0') autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0') + + if re.search ("linux", sys.platform) != None: + autowaf.check_pkg(conf, 'alsa', uselib_store='ALSA') + if Options.options.lv2: autowaf.check_pkg(conf, 'lv2', uselib_store='LV2', atleast_version='1.0.0', mandatory=True) @@ -450,6 +455,15 @@ def build(bld): obj.name = 'jack_audiobackend' obj.target = 'jack_audiobackend' obj.uselib = [ 'JACK' ] + + # + # device discovery code in the jack backend needs ALSA + # on Linux. + # + + if re.search ("linux", sys.platform) != None: + obj.uselib += [ 'ALSA' ] + obj.use = [ 'ardour' ] obj.vnum = '1.0.0' obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')