diff options
author | Robin Gareus <robin@gareus.org> | 2013-10-20 17:24:59 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-10-20 17:24:59 +0200 |
commit | 9faae9c8a389d474421a8d34b8077e703900b5f9 (patch) | |
tree | 62e67bc767d8cc3fda34763ae03f4d0de0092e41 /libs/plugins | |
parent | d6e2e3402556ad0818be7f89dd0e5ac57907bac8 (diff) |
bundled LV2 plugin build and deployment
Diffstat (limited to 'libs/plugins')
-rw-r--r-- | libs/plugins/reasonablesynth.lv2/lv2.c | 2 | ||||
-rw-r--r-- | libs/plugins/reasonablesynth.lv2/manifest.ttl.in | 3 | ||||
-rw-r--r-- | libs/plugins/reasonablesynth.lv2/reasonablesynth.ttl.in | 3 | ||||
-rw-r--r-- | libs/plugins/reasonablesynth.lv2/wscript | 39 |
4 files changed, 24 insertions, 23 deletions
diff --git a/libs/plugins/reasonablesynth.lv2/lv2.c b/libs/plugins/reasonablesynth.lv2/lv2.c index 85aa968e8f..159f422c85 100644 --- a/libs/plugins/reasonablesynth.lv2/lv2.c +++ b/libs/plugins/reasonablesynth.lv2/lv2.c @@ -29,7 +29,7 @@ #include "lv2/lv2plug.in/ns/ext/urid/urid.h" #include "lv2/lv2plug.in/ns/ext/midi/midi.h" -#define RSY_URI "http://gareus.org/oss/lv2/reasonablesynth" +#define RSY_URI "https://community.ardour.org/node/7596" /* the synth interface */ static void * synth_alloc (void); diff --git a/libs/plugins/reasonablesynth.lv2/manifest.ttl.in b/libs/plugins/reasonablesynth.lv2/manifest.ttl.in index ad0cff08fa..92b20b40b8 100644 --- a/libs/plugins/reasonablesynth.lv2/manifest.ttl.in +++ b/libs/plugins/reasonablesynth.lv2/manifest.ttl.in @@ -1,8 +1,7 @@ @prefix lv2: <http://lv2plug.in/ns/lv2core#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix ui: <http://lv2plug.in/ns/extensions/ui#> . -<http://gareus.org/oss/lv2/reasonablesynth> +<https://community.ardour.org/node/7596> a lv2:Plugin ; lv2:binary <reasonablesynth@LIB_EXT@> ; rdfs:seeAlso <reasonablesynth.ttl> . diff --git a/libs/plugins/reasonablesynth.lv2/reasonablesynth.ttl.in b/libs/plugins/reasonablesynth.lv2/reasonablesynth.ttl.in index 2b8861f3d6..fe4cddbad4 100644 --- a/libs/plugins/reasonablesynth.lv2/reasonablesynth.ttl.in +++ b/libs/plugins/reasonablesynth.lv2/reasonablesynth.ttl.in @@ -5,7 +5,6 @@ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix pg: <http://lv2plug.in/ns/ext/port-groups#> . -@prefix units: <http://lv2plug.in/ns/extensions/units#> . @prefix urid: <http://lv2plug.in/ns/ext/urid#> . <http://gareus.org/rgareus#me> @@ -14,7 +13,7 @@ foaf:mbox <mailto:robin@gareus.org> ; foaf:homepage <http://gareus.org/> . -<http://gareus.org/oss/lv2/reasonablesynth> +<https://community.ardour.org/node/7596> a lv2:Plugin, lv2:InstrumentPlugin, doap:Project; doap:license <http://usefulinc.com/doap/licenses/gpl> ; doap:maintainer <http://gareus.org/rgareus#me> ; diff --git a/libs/plugins/reasonablesynth.lv2/wscript b/libs/plugins/reasonablesynth.lv2/wscript index ba2ce8c9ab..797418c37f 100644 --- a/libs/plugins/reasonablesynth.lv2/wscript +++ b/libs/plugins/reasonablesynth.lv2/wscript @@ -15,30 +15,33 @@ def configure(conf): conf.load('compiler_c') autowaf.configure(conf) autowaf.set_c99_mode(conf) - autowaf.check_pkg(conf, 'lv2', atleast_version='1.4.1', - uselib_store='LV2_1_4_1') + if Options.options.lv2: + autowaf.check_pkg(conf, 'lv2', atleast_version='1.4.0', + uselib_store='LV2_1_4_0') def build(bld): bundle = 'reasonablesynth.lv2' module_pat = re.sub('^lib', '', bld.env.cshlib_PATTERN) module_ext = module_pat[module_pat.rfind('.'):] - # Build RDF files - for i in ['manifest.ttl', 'reasonablesynth.ttl']: - bld(features = 'subst', - source = i + '.in', - target = '%s/%s' % (bundle, i), - install_path = '${LV2DIR}/%s' % bundle, - LIB_EXT = module_ext) + if bld.is_defined ('HAVE_LV2'): + # Build RDF files + for i in ['manifest.ttl', 'reasonablesynth.ttl']: + bld(features = 'subst', + source = i + '.in', + target = '../../LV2/%s/%s' % (bundle, i), + install_path = '${LV2DIR}/%s' % bundle, + LIB_EXT = module_ext) - # Build plugin library - obj = bld(features = 'c cshlib', - source = 'lv2.c', - dep_files = 'rsynth.c', - name = 'reasonablesynth', - target = '%s/reasonablesynth' % bundle, - install_path = '${LV2DIR}/%s' % bundle, - use = 'LV2_1_4_1') - obj.env.cshlib_PATTERN = module_pat + # Build plugin library + obj = bld(features = 'c cshlib', + source = 'lv2.c', + dep_files = 'rsynth.c', + name = 'reasonablesynth', + target = '../../LV2/%s/reasonablesynth' % bundle, + install_path = '${LV2DIR}/%s' % bundle, + use = 'LV2_1_4_0' + ) + obj.env.cshlib_PATTERN = module_pat # vi:set ts=4 sw=4 et: |