aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg-amp.lv2
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/eg-amp.lv2')
-rw-r--r--plugins/eg-amp.lv2/amp.ttl2
-rw-r--r--plugins/eg-amp.lv2/manifest.ttl.in (renamed from plugins/eg-amp.lv2/manifest.ttl)2
-rw-r--r--plugins/eg-amp.lv2/wscript18
3 files changed, 15 insertions, 7 deletions
diff --git a/plugins/eg-amp.lv2/amp.ttl b/plugins/eg-amp.lv2/amp.ttl
index 7d3d9e6..1fe7dc7 100644
--- a/plugins/eg-amp.lv2/amp.ttl
+++ b/plugins/eg-amp.lv2/amp.ttl
@@ -1,6 +1,6 @@
# LV2 Amp Example Plugin
+# Copyright 2006-2012 David Robillard <d@drobilla.net>
# Copyright 2006-2011 Steve Harris <steve@plugin.org.uk>
-# Copyright 2006-2011 David Robillard <d@drobilla.net>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
diff --git a/plugins/eg-amp.lv2/manifest.ttl b/plugins/eg-amp.lv2/manifest.ttl.in
index 821c977..c642766 100644
--- a/plugins/eg-amp.lv2/manifest.ttl
+++ b/plugins/eg-amp.lv2/manifest.ttl.in
@@ -23,7 +23,7 @@
<http://lv2plug.in/plugins/eg-amp>
a lv2:Plugin ;
- lv2:binary <amp.so> ;
+ lv2:binary <amp@LIB_EXT@> ;
rdfs:seeAlso <amp.ttl> .
# Explanation
diff --git a/plugins/eg-amp.lv2/wscript b/plugins/eg-amp.lv2/wscript
index 3eda122..37ab9b7 100644
--- a/plugins/eg-amp.lv2/wscript
+++ b/plugins/eg-amp.lv2/wscript
@@ -40,12 +40,20 @@ def configure(conf):
def build(bld):
bundle = 'eg-amp.lv2'
- # Copy data files to build bundle (build/eg-amp.lv2)
- for i in [ 'amp.ttl', 'manifest.ttl' ]:
- bld(rule = 'cp ${SRC} ${TGT}',
+ # Build manifest.ttl by substitution (for portable lib extension)
+ bld(features = 'subst',
+ source = 'manifest.ttl.in',
+ target = '%s/%s' % (bundle, 'manifest.ttl'),
+ install_path = '${LV2DIR}/%s' % bundle,
+ LIB_EXT = bld.env['pluginlib_EXT'])
+
+ # Copy other data files to build bundle (build/eg-amp.lv2)
+ for i in [ 'amp.ttl' ]:
+ bld(features = 'subst',
source = i,
- target = bld.path.get_bld().make_node('%s/%s' % (bundle, i)),
- install_path = '${LV2DIR}/%s' % bundle)
+ target = '%s/%s' % (bundle, i),
+ install_path = '${LV2DIR}/%s' % bundle,
+ LIB_EXT = bld.env['pluginlib_EXT'])
# Create a build environment that builds module-style library names
# e.g. eg-amp.so instead of libeg-amp.so