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: /lib/ladspa]') + lv2 = opt.add_option_group("LV2 Options") + + lv2.add_option('--lv2dir', + type='string', + help='LV2 plugin directory [Default: /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: + conf.define('LV2DIR', opt.lv2dir) + 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