aboutsummaryrefslogtreecommitdiffstats
path: root/core.lv2
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-27 18:40:20 +0000
committerDavid Robillard <d@drobilla.net>2011-03-27 18:40:20 +0000
commitb1e0f82b728cd156a595a7f8d317d6591921654d (patch)
tree4e331356f03845ab9c2e90928030846ea95f2bfd /core.lv2
parent2a2d5f23f01244a76a4bd42d28e9a64d18a1b75f (diff)
downloadlv2-b1e0f82b728cd156a595a7f8d317d6591921654d.tar.xz
Fix default LV2_PATH.
Diffstat (limited to 'core.lv2')
-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)