aboutsummaryrefslogtreecommitdiffstats
path: root/core.lv2/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'core.lv2/wscript')
-rw-r--r--core.lv2/wscript6
1 files changed, 4 insertions, 2 deletions
diff --git a/core.lv2/wscript b/core.lv2/wscript
index 9934cef..bf450e0 100644
--- a/core.lv2/wscript
+++ b/core.lv2/wscript
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+import os
import sys
from waflib.extras import autowaf as autowaf
@@ -50,10 +51,11 @@ def configure(conf):
elif Options.platform == 'win32':
Options.options.default_lv2_path = 'C:\\\\Program Files\\\\LV2'
else:
+ libdirname = os.path.basename(conf.env['LIBDIR'])
Options.options.default_lv2_path = lv2core_path_sep.join([
'~/.lv2',
- '/usr/%s/lv2' % conf.env['LIBDIRNAME'],
- '/usr/local/%s/lv2' % conf.env['LIBDIRNAME']])
+ '/usr/%s/lv2' % libdirname,
+ '/usr/local/%s/lv2' % libdirname])
autowaf.define(conf, 'LV2CORE_DEFAULT_LV2_PATH', Options.options.default_lv2_path)