pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
vamp-plugin-sdk: Add waf build script from Ardour developers
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Wed Dec 23 01:38:01 2015 +0100
Changeset: e20b948d59279920848d9bb8eaa85a60c84f2158
Added Files:
vamp-plugin-sdk/files/wscript
Log Message:
vamp-plugin-sdk: Add waf build script from Ardour developers
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e20b948d59279920848d9bb8eaa85a60c84f2158
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
vamp-plugin-sdk/files/wscript | 105 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 105 insertions(+)
diffs:
diff --git a/vamp-plugin-sdk/files/wscript b/vamp-plugin-sdk/files/wscript
new file mode 100644
index 0000000..677710d
--- /dev/null
+++ b/vamp-plugin-sdk/files/wscript
@@ -0,0 +1,105 @@
+#!/usr/bin/env python
+# Ardour developers (c) 2015
+# This file is redistributed with the same license as vamp-plugins-sdk (x11)
+
+from waflib import TaskGen
+import re
+
+# Get waf to do %FOO% substitution rather than @FOO@
+TaskGen.re_m4 = re.compile('%%(\w+)%%', re.M)
+
+def options(opt):
+ opt.load('compiler_cxx')
+ pass
+
+def configure(conf):
+ conf.load('compiler_cxx')
+ conf.check_cfg (package='fftw3', uselib_store='FFTW3', args=['--cflags', '--libs'], mandatory=True)
+ conf.check_cfg (package='fftw3f', uselib_store='FFTW3F', args=['--cflags', '--libs'], mandatory=True)
+ conf.env.append_value('CXXFLAGS', '-DHAVE_FFTW3')
+
+def build(bld):
+ # Host Library
+ host_sources = '''
+ src/vamp-hostsdk/PluginHostAdapter.cpp
+ src/vamp-hostsdk/PluginBufferingAdapter.cpp
+ src/vamp-hostsdk/PluginChannelAdapter.cpp
+ src/vamp-hostsdk/PluginInputDomainAdapter.cpp
+ src/vamp-hostsdk/PluginLoader.cpp
+ src/vamp-hostsdk/PluginWrapper.cpp
+ src/vamp-hostsdk/RealTime.cpp
+ '''
+ sdk_sources = '''
+ src/vamp-sdk/PluginAdapter.cpp
+ src/vamp-sdk/RealTime.cpp
+ '''
+
+ bld.shlib (source = host_sources,
+ includes = '.',
+ target = 'vamp-hostsdk',
+ name = 'vamp-hostsdk',
+ uselib = 'FFTW3 FFTW3F',
+ features = 'cxx cxxshlib',
+ vnum = '3.0.0',
+ )
+
+ bld.shlib (source = sdk_sources,
+ includes = '.',
+ target = 'vamp-sdk',
+ name = 'vamp-sdk',
+ uselib = 'FFTW3 FFTW3F',
+ features = 'cxx cxxshlib',
+ vnum = '2.0.0',
+ )
+
+ sdk_headers = '''
+ vamp-sdk/Plugin.h
+ vamp-sdk/PluginAdapter.h
+ vamp-sdk/PluginBase.h
+ vamp-sdk/RealTime.h
+ vamp-sdk/FFT.h
+ vamp-sdk/plugguard.h
+ vamp-sdk/vamp-sdk.h
+ '''
+ hostsdk_headers = '''
+ vamp-hostsdk/Plugin.h
+ vamp-hostsdk/PluginBase.h
+ vamp-hostsdk/PluginHostAdapter.h
+ vamp-hostsdk/RealTime.h
+ vamp-hostsdk/PluginBufferingAdapter.h
+ vamp-hostsdk/PluginChannelAdapter.h
+ vamp-hostsdk/PluginInputDomainAdapter.h
+ vamp-hostsdk/PluginLoader.h
+ vamp-hostsdk/PluginSummarisingAdapter.h
+ vamp-hostsdk/PluginWrapper.h
+ vamp-hostsdk/hostguard.h
+ vamp-hostsdk/vamp-hostsdk.h
+ '''
+ api_headers = '''
+ vamp/vamp.h
+ '''
+ bld.install_files ('${PREFIX}/include/vamp', api_headers)
+ bld.install_files ('${PREFIX}/include/vamp-sdk', sdk_headers)
+ bld.install_files ('${PREFIX}/include/vamp-hostsdk', hostsdk_headers)
+
+ pc = bld (features = 'subst',
+ source = 'pkgconfig/vamp.pc.in',
+ target = 'vamp.pc',
+ install_path = '${PREFIX}/lib/pkgconfig',
+ dict = {'PREFIX' : bld.env.PREFIX },
+ )
+
+ pc = bld (features = 'subst',
+ source = 'pkgconfig/vamp-sdk.pc.in',
+ target = 'vamp-sdk.pc',
+ install_path = '${PREFIX}/lib/pkgconfig',
+ dict = {'PREFIX' : bld.env.PREFIX },
+ )
+
+ pc = bld (features = 'subst',
+ source = 'pkgconfig/vamp-hostsdk.pc.in',
+ target = 'vamp-hostsdk.pc',
+ install_path = '${PREFIX}/lib/pkgconfig',
+ dict = {'PREFIX' : bld.env.PREFIX },
+ )
+
Home |
Main Index |
Thread Index |
Old Index