5 'jack_freewheel' : 'freewheel.c',
6 'jack_connect' : 'connect.c',
8 'jack_metro' : 'metro.c',
9 'jack_midiseq' : 'midiseq.c',
10 'jack_midisine' : 'midisine.c',
11 'jack_showtime' : 'showtime.c',
12 'jack_simple_client' : 'simple_client.c',
13 'jack_zombie' : 'zombie.c',
14 'jack_load' : 'ipload.c',
15 'jack_unload' : 'ipunload.c',
16 'jack_showtime' : 'showtime.c',
17 'jack_alias' : 'alias.c',
18 'jack_bufsize' : 'bufsize.c',
19 'jack_wait' : 'wait.c',
20 'jack_samplerate' : 'samplerate.c',
21 'jack_evmon' : 'evmon.c',
22 'jack_monitor_client' : 'monitor_client.c',
23 'jack_thru' : 'thru_client.c',
24 'jack_cpu_load' : 'cpu_load.c',
25 'jack_simple_session_client' : 'simple_session_client.c',
26 'jack_session_notify' : 'session_notify.c',
27 'jack_server_control' : 'server_control.cpp',
28 'jack_net_slave' : 'netslave.c',
29 'jack_net_master' : 'netmaster.c',
30 'jack_latent_client' : 'latent_client.c',
31 'jack_midi_dump' : 'midi_dump.c',
32 'jack_midi_latency_test' : 'midi_latency_test.c'
36 'inprocess' : 'inprocess.c',
40 e
= conf
.check_cc(header_name
='sndfile.h', define_name
="HAVE_SNDFILE")
42 if conf
.is_defined('HAVE_SNDFILE'):
43 conf
.env
['LIB_SNDFILE'] = ['sndfile']
45 conf
.check_cfg(package
='celt', atleast_version
='0.5.0', args
='--cflags --libs')
47 e
= conf
.check_cc(lib
='readline', define_name
="HAVE_READLINE")
49 # define_name="HAVE_READLINE" has no effect, LIB_READLINE is defined if readline is available
50 #if conf.is_defined('HAVE_READLINE'):
51 # conf.env['LIB_READLINE'] = ['readline']
53 conf
.env
['BUILD_EXAMPLE_CLIENT_TRANSPORT'] = bool(conf
.env
['LIB_READLINE']) and bool(conf
.env
['LIB_NCURSES'])
55 conf
.env
['BUILD_EXAMPLE_CLIENT_REC'] = conf
.is_defined('HAVE_SNDFILE')
57 conf
.env
['BUILD_EXAMPLE_ALSA_IO'] = conf
.is_defined('HAVE_SAMPLERATE') and conf
.env
['BUILD_DRIVER_ALSA']
60 if bld
.env
['IS_LINUX']:
61 os_incdir
= ['../linux', '../posix']
62 if bld
.env
['IS_MACOSX']:
63 os_incdir
= ['../macosx', '../posix']
65 os_incdir
= ['../solaris', '../posix']
66 for example_program
, example_program_source
in list(example_programs
.items()):
67 if example_program
== 'jack_server_control':
68 uselib_local
= 'serverlib'
69 elif example_program
== 'jack_net_slave':
70 if not bld
.env
['BUILD_NETLIB']:
72 uselib_local
= 'netlib'
73 elif example_program
== 'jack_net_master':
74 if not bld
.env
['BUILD_NETLIB']:
76 uselib_local
= 'netlib'
78 uselib_local
= 'clientlib'
80 prog
= bld(features
='c cprogram')
81 prog
.includes
= os_incdir
+ ['../common/jack', '../common']
82 prog
.source
= example_program_source
83 if bld
.env
['IS_MACOSX']:
84 prog
.env
.append_value("CPPFLAGS", "-mmacosx-version-min=10.4 -arch i386 -arch ppc -arch x86_64")
85 #prog.env.append_value("LINKFLAGS", "-arch i386 -arch ppc -arch x86_64")
86 prog
.env
.append_value("LINKFLAGS", "")
87 if bld
.env
['IS_LINUX']:
90 prog
.env
.append_value("LINKFLAGS", "-lm")
92 prog
.uselib_local
= uselib_local
94 prog
.target
= example_program
96 if bld
.env
['BUILD_EXAMPLE_CLIENT_TRANSPORT']:
97 prog
= bld(features
= 'c cprogram')
98 prog
.includes
= os_incdir
+ ['../common/jack', '../common']
99 prog
.source
= 'transport.c'
100 if bld
.env
['IS_MACOSX']:
101 prog
.env
.append_value("CPPFLAGS", "-mmacosx-version-min=10.4 -arch i386 -arch ppc -arch x86_64")
102 #prog.env.append_value("LINKFLAGS", "-arch i386 -arch ppc -arch x86_64")
103 prog
.env
.append_value("LINKFLAGS", "")
104 if bld
.env
['IS_LINUX']:
105 prog
.uselib
= 'RT READLINE NCURSES'
106 if bld
.env
['IS_MACOSX']:
107 prog
.uselib
= 'READLINE NCURSES'
108 prog
.uselib_local
= 'clientlib'
109 prog
.target
= 'jack_transport'
111 if bld
.env
['BUILD_EXAMPLE_CLIENT_REC']:
112 prog
= bld(features
= 'c cprogram')
113 prog
.includes
= os_incdir
+ ['../common/jack', '../common']
114 prog
.source
= 'capture_client.c'
115 if bld
.env
['IS_MACOSX']:
116 prog
.env
.append_value("CPPFLAGS", "-mmacosx-version-min=10.4 -arch i386 -arch ppc -arch x86_64")
117 #prog.env.append_value("LINKFLAGS", "-arch i386 -arch ppc -arch x86_64")
118 prog
.env
.append_value("LINKFLAGS", "")
119 prog
.uselib
= 'SNDFILE'
120 if bld
.env
['IS_LINUX']:
121 prog
.uselib
= 'RT SNDFILE'
122 if bld
.env
['IS_SUN']:
123 prog
.uselib
= 'RT SNDFILE'
124 prog
.uselib_local
= 'clientlib'
125 prog
.target
= 'jack_rec'
127 if bld
.env
['IS_LINUX'] or bld
.env
['IS_MACOSX']:
128 prog
= bld(features
= 'c cprogram')
129 prog
.includes
= os_incdir
+ ['../common/jack', '../common']
130 prog
.source
= ['netsource.c', '../common/netjack_packet.c']
131 prog
.env
.append_value("CCFLAGS", "-DNO_JACK_ERROR")
132 prog
.uselib
= 'CELT SAMPLERATE'
133 prog
.uselib_local
= 'clientlib'
134 prog
.target
= 'jack_netsource'
136 if bld
.env
['IS_LINUX'] and bld
.env
['BUILD_EXAMPLE_ALSA_IO']:
137 prog
= bld(features
= 'c cprogram')
138 prog
.includes
= os_incdir
+ ['../common/jack', '../common']
139 prog
.source
= ['alsa_in.c', '../common/memops.c']
140 prog
.env
.append_value("CCFLAGS", "-DNO_JACK_ERROR")
141 prog
.uselib
= 'ALSA SAMPLERATE'
142 prog
.uselib_local
= 'clientlib'
143 prog
.target
= 'alsa_in'
145 prog
= bld(features
= 'c cprogram')
146 prog
.includes
= os_incdir
+ ['../common/jack', '../common']
147 prog
.source
= ['alsa_out.c', '../common/memops.c']
148 prog
.env
.append_value("CCFLAGS", "-DNO_JACK_ERROR")
149 prog
.uselib
= 'ALSA SAMPLERATE'
150 prog
.uselib_local
= 'clientlib'
151 prog
.target
= 'alsa_out'
153 for example_lib
, example_lib_source
in list(example_libs
.items()):
154 lib
= bld(features
= 'c cshlib')
155 lib
.env
['shlib_PATTERN'] = '%s.so'
156 lib
.includes
= os_incdir
+ ['../common/jack', '../common']
157 lib
.target
= example_lib
158 lib
.source
= example_lib_source
159 if bld
.env
['IS_MACOSX']:
160 lib
.env
.append_value("CPPFLAGS", "-mmacosx-version-min=10.4 -arch i386 -arch ppc -arch x86_64")
161 #lib.env.append_value("LINKFLAGS", "-arch i386 -arch ppc -arch x86_64")
162 lib
.env
.append_value("LINKFLAGS", "")
163 if bld
.env
['IS_SUN']:
164 lib
.env
.append_value("LINKFLAGS", "-lm")
165 lib
.uselib_local
= 'serverlib'
166 lib
.install_path
= '${ADDON_DIR}/'
168 bld
.symlink_as('${PREFIX}/bin/jack_disconnect', 'jack_connect')
170 bld
.install_files('${PREFIX}/bin', 'jack_control', chmod
=0o755)