summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2015-12-27 23:35:33 +0000
committerkamil <kamil@pkgsrc.org>2015-12-27 23:35:33 +0000
commitd442eac454a9bb86b2d246f8f8e900797dd0e713 (patch)
tree04fa8d8e239a42a00a44c4c9d277fbd3a7a3bee2 /audio
parentbdd4b519554c0b96c0e343e0d482fa4b6e90752e (diff)
downloadpkgsrc-d442eac454a9bb86b2d246f8f8e900797dd0e713.tar.gz
Import vamp-plugin-sdk 2.6 as audio/vamp-plugin-sdk
Vamp is an audio processing plugin system for plugins that extract descriptive information from audio typically referred to as audio analysis plugins or audio feature extraction plugins. Just like an audio effects plugin (such as a VST), a Vamp plugin is a binary module that can be loaded up by a host application and fed audio data. However, unlike an effects plugin, a Vamp plugin generates not more audio, but some sort of symbolic information. Typical things that a Vamp plugin might calculate include the locations of moments such as note onset times, visualisable representations of the audio such as spectrograms, or curve data such as power or fundamental frequency.
Diffstat (limited to 'audio')
-rw-r--r--audio/vamp-plugin-sdk/DESCR11
-rw-r--r--audio/vamp-plugin-sdk/Makefile31
-rw-r--r--audio/vamp-plugin-sdk/PLIST33
-rw-r--r--audio/vamp-plugin-sdk/buildlink3.mk14
-rw-r--r--audio/vamp-plugin-sdk/distinfo6
-rw-r--r--audio/vamp-plugin-sdk/files/wscript134
6 files changed, 229 insertions, 0 deletions
diff --git a/audio/vamp-plugin-sdk/DESCR b/audio/vamp-plugin-sdk/DESCR
new file mode 100644
index 00000000000..6b45d2e61ae
--- /dev/null
+++ b/audio/vamp-plugin-sdk/DESCR
@@ -0,0 +1,11 @@
+Vamp is an audio processing plugin system for plugins that extract descriptive
+information from audio typically referred to as audio analysis plugins or
+audio feature extraction plugins.
+
+Just like an audio effects plugin (such as a VST), a Vamp plugin is a binary
+module that can be loaded up by a host application and fed audio data. However,
+unlike an effects plugin, a Vamp plugin generates not more audio, but some sort
+of symbolic information. Typical things that a Vamp plugin might calculate
+include the locations of moments such as note onset times, visualisable
+representations of the audio such as spectrograms, or curve data such as power
+or fundamental frequency.
diff --git a/audio/vamp-plugin-sdk/Makefile b/audio/vamp-plugin-sdk/Makefile
new file mode 100644
index 00000000000..46478330ad6
--- /dev/null
+++ b/audio/vamp-plugin-sdk/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1 2015/12/27 23:35:33 kamil Exp $
+
+# During upgrade please adjust files/wscript and doublecheck libs major/minor
+DISTNAME= vamp-plugin-sdk-2.6
+CATEGORIES= audio
+MASTER_SITES= https://code.soundsoftware.ac.uk/attachments/download/1520/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.vamp-plugins.org/
+COMMENT= The Vamp audio analysis plugin system
+LICENSE= x11
+
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c c++
+
+PKGCONFIG_OVERRIDE+= pkgconfig/vamp-hostsdk.pc.in
+PKGCONFIG_OVERRIDE+= pkgconfig/vamp-sdk.pc.in
+PKGCONFIG_OVERRIDE+= pkgconfig/vamp.pc.in
+
+BUILD_DEPENDS+= waf-[0-9]*:../../devel/waf
+
+pre-patch:
+ ${RUN} cp ${FILESDIR}/wscript ${WRKSRC}
+
+.include "../../devel/waf/waf.mk"
+# Missing --mandir
+WAF_ARGS=
+.include "../../math/fftw/buildlink3.mk"
+.include "../../math/fftwf/buildlink3.mk"
+.include "../../audio/libsndfile/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/vamp-plugin-sdk/PLIST b/audio/vamp-plugin-sdk/PLIST
new file mode 100644
index 00000000000..5959d079c7d
--- /dev/null
+++ b/audio/vamp-plugin-sdk/PLIST
@@ -0,0 +1,33 @@
+@comment $NetBSD: PLIST,v 1.1 2015/12/27 23:35:33 kamil Exp $
+bin/vamp-rdf-template-generator
+bin/vamp-simple-host
+include/vamp-hostsdk/Plugin.h
+include/vamp-hostsdk/PluginBase.h
+include/vamp-hostsdk/PluginBufferingAdapter.h
+include/vamp-hostsdk/PluginChannelAdapter.h
+include/vamp-hostsdk/PluginHostAdapter.h
+include/vamp-hostsdk/PluginInputDomainAdapter.h
+include/vamp-hostsdk/PluginLoader.h
+include/vamp-hostsdk/PluginSummarisingAdapter.h
+include/vamp-hostsdk/PluginWrapper.h
+include/vamp-hostsdk/RealTime.h
+include/vamp-hostsdk/host-c.h
+include/vamp-hostsdk/hostguard.h
+include/vamp-hostsdk/vamp-hostsdk.h
+include/vamp-sdk/FFT.h
+include/vamp-sdk/Plugin.h
+include/vamp-sdk/PluginAdapter.h
+include/vamp-sdk/PluginBase.h
+include/vamp-sdk/RealTime.h
+include/vamp-sdk/plugguard.h
+include/vamp-sdk/vamp-sdk.h
+include/vamp/vamp.h
+lib/libvamp-hostsdk.so
+lib/libvamp-hostsdk.so.3
+lib/libvamp-hostsdk.so.3.6.0
+lib/libvamp-sdk.so
+lib/libvamp-sdk.so.2
+lib/libvamp-sdk.so.${PKGVERSION}.0
+lib/pkgconfig/vamp-hostsdk.pc
+lib/pkgconfig/vamp-sdk.pc
+lib/pkgconfig/vamp.pc
diff --git a/audio/vamp-plugin-sdk/buildlink3.mk b/audio/vamp-plugin-sdk/buildlink3.mk
new file mode 100644
index 00000000000..b03077fa2ad
--- /dev/null
+++ b/audio/vamp-plugin-sdk/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2015/12/27 23:35:33 kamil Exp $
+
+BUILDLINK_TREE+= vamp-plugin-sdk
+
+.if !defined(VAMP_PLUGIN_SDK_BUILDLINK3_MK)
+VAMP_PLUGIN_SDK_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.vamp-plugin-sdk+= vamp-plugin-sdk>=2.6
+BUILDLINK_PKGSRCDIR.vamp-plugin-sdk?= ../../audio/vamp-plugin-sdk
+
+.include "../../audio/libsndfile/buildlink3.mk"
+.endif # VAMP_PLUGIN_SDK_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -vamp-plugin-sdk
diff --git a/audio/vamp-plugin-sdk/distinfo b/audio/vamp-plugin-sdk/distinfo
new file mode 100644
index 00000000000..1f1d83841d5
--- /dev/null
+++ b/audio/vamp-plugin-sdk/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2015/12/27 23:35:33 kamil Exp $
+
+SHA1 (vamp-plugin-sdk-2.6.tar.gz) = 79e098682c6f7610ab29581b081db003d987b2cb
+RMD160 (vamp-plugin-sdk-2.6.tar.gz) = 527bbd09cfb753719ae41b393b5a5b8364df8631
+SHA512 (vamp-plugin-sdk-2.6.tar.gz) = 31e59f9082f775b476f04c0020ddbfcf9f893d9a60e9ae68bd76e6038dd9f0dcb719aedb883cca4366f994b88d92453f65cae8ef1b8aa758b5cabe12444700a8
+Size (vamp-plugin-sdk-2.6.tar.gz) = 174943 bytes
diff --git a/audio/vamp-plugin-sdk/files/wscript b/audio/vamp-plugin-sdk/files/wscript
new file mode 100644
index 00000000000..21c2061bc0a
--- /dev/null
+++ b/audio/vamp-plugin-sdk/files/wscript
@@ -0,0 +1,134 @@
+#!/usr/bin/env python
+# Ardour developers (c) 2015
+# This file is redistributed with the same license as vamp-plugin-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.check_cfg (package='sndfile', uselib_store='SNDFILE', args=['--cflags', '--libs'], mandatory=True)
+ conf.env.append_value('CXXFLAGS', '-DHAVE_FFTW3')
+
+def build(bld):
+ # Host Library
+ host_sources = '''
+ src/vamp-hostsdk/Files.cpp
+ src/vamp-hostsdk/PluginBufferingAdapter.cpp
+ src/vamp-hostsdk/PluginChannelAdapter.cpp
+ src/vamp-hostsdk/PluginHostAdapter.cpp
+ src/vamp-hostsdk/PluginInputDomainAdapter.cpp
+ src/vamp-hostsdk/PluginLoader.cpp
+ src/vamp-hostsdk/PluginSummarisingAdapter.cpp
+ src/vamp-hostsdk/PluginWrapper.cpp
+ src/vamp-hostsdk/RealTime.cpp
+ src/vamp-hostsdk/host-c.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.6.0',
+ )
+
+ bld.shlib (source = sdk_sources,
+ includes = '.',
+ target = 'vamp-sdk',
+ name = 'vamp-sdk',
+ uselib = 'FFTW3 FFTW3F',
+ features = 'cxx cxxshlib',
+ vnum = '2.6.0',
+ )
+
+ rdf_sources = '''
+ rdf/generator/vamp-rdf-template-generator.cpp
+ '''
+
+ simple_host_sources = '''
+ host/vamp-simple-host.cpp
+ '''
+
+ bld.program (source = rdf_sources,
+ includes = '.',
+ target = 'vamp-rdf-template-generator',
+ name = 'rdf-generator',
+ use = 'vamp-hostsdk vamp-sdk',
+ features = 'cxx'
+ )
+
+ bld.program (source = simple_host_sources,
+ includes = '.',
+ target = 'vamp-simple-host',
+ name = 'simple-host-generator',
+ use = 'vamp-hostsdk vamp-sdk SNDFILE',
+ features = 'cxx'
+ )
+
+ 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/host-c.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 },
+ )
+