guitarix/guitarix-0.25.1-lv2dir.patch

30 lines
988 B
Diff
Raw Normal View History

2013-01-13 16:20:10 +00:00
diff --git a/trunk/wscript b/trunk/wscript
index a20a54a..8a016f3 100644
--- a/trunk/wscript
+++ b/trunk/wscript
@@ -160,6 +160,12 @@ def set_options(opt):
type='string',
help='LADSPA plugin directory [Default: <prefix>/lib/ladspa]')
+ lv2 = opt.add_option_group("LV2 Options")
+
+ lv2.add_option('--lv2dir',
+ type='string',
+ help='LV2 plugin directory [Default: <prefix>/lib/lv2]')
+
opt.recurse('pygxw')
opt.recurse('glade-gxw')
@@ -570,7 +576,10 @@ def configure(conf):
conf.env['LV2'] = opt.build_lv2
if opt.build_lv2:
- conf.define('LV2DIR', os.path.normpath(os.path.join(conf.env['LIBDIR'], 'lv2')) )
+ if opt.lv2dir:
2013-01-13 17:31:23 +00:00
+ conf.define('LV2DIR', opt.lv2dir)
2013-01-13 16:20:10 +00:00
+ else:
+ conf.define('LV2DIR', os.path.normpath(os.path.join(conf.env['LIBDIR'], 'lv2')) )
conf.env['NEW_LADSPA'] = not opt.no_ladspa and not opt.no_new_ladspa