import vamp-plugin-sdk-1.3

Vamp is an audio processing plugin system for plugins that extract
descriptive information from audio data - typically referred to as audio
analysis plugins or audio feature extraction plugins.
This commit is contained in:
jakemsr 2009-01-11 09:22:08 +00:00
parent cc9fe768e7
commit cf918e04cf
7 changed files with 212 additions and 0 deletions

View File

@ -0,0 +1,35 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/01/11 09:22:08 jakemsr Exp $
COMMENT = audio plugin API
DISTNAME = vamp-plugin-sdk-1.3
SHARED_LIBS += vamp-sdk 0.0
SHARED_LIBS += vamp-hostsdk 0.0
CATEGORIES = audio
HOMEPAGE = http://www.vamp-plugins.org/
MAINTAINER = Jacob Meuser <jakemsr@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=vamp/}
MAKE_ENV += CXX=${CXX} \
CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
LIBvamp-sdk_VERSION="${LIBvamp-sdk_VERSION}" \
LIBvamp-hostsdk_VERSION="${LIBvamp-hostsdk_VERSION}"
FAKE_FLAGS = PREFIX="${TRUEPREFIX}"
USE_GMAKE = Yes
REGRESS_TARGET = test
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (vamp-plugin-sdk-1.3.tar.gz) = 0LwsBmd2MQYxoCzRknNdpw==
RMD160 (vamp-plugin-sdk-1.3.tar.gz) = sg35LSykWdgeq8rO5UjIz4ai6c4=
SHA1 (vamp-plugin-sdk-1.3.tar.gz) = FS+j/otD2JPPGL9qkIHpe7Lk2DA=
SHA256 (vamp-plugin-sdk-1.3.tar.gz) = fYtEqkbkfU7N06fEumF3jTvcYmhXwYyOmuP6iyBrjaQ=
SIZE (vamp-plugin-sdk-1.3.tar.gz) = 73334

View File

@ -0,0 +1,121 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2009/01/11 09:22:08 jakemsr Exp $
--- Makefile.orig Wed Jul 9 03:42:49 2008
+++ Makefile Thu Nov 13 23:12:58 2008
@@ -28,7 +28,7 @@ default: all
# Compile flags
#
-CXXFLAGS := $(CXXFLAGS) -O2 -Wall -I. -fPIC
+CXXFLAGS := $(CXXFLAGS) -Wall -I. -fPIC
# ar, ranlib
#
@@ -51,27 +51,27 @@ PLUGIN_EXT = .so
# Libraries required for the host.
#
-HOST_LIBS = $(SDKDIR)/libvamp-hostsdk.a -lsndfile -ldl
+HOST_LIBS = -L$(SDKDIR) -lvamp-hostsdk -lsndfile
# Locations for "make install". This will need quite a bit of
# editing for non-Linux platforms. Of course you don't necessarily
# have to use "make install".
#
-INSTALL_PREFIX := /usr/local
+INSTALL_PREFIX := $(PREFIX)
INSTALL_API_HEADERS := $(INSTALL_PREFIX)/include/vamp
INSTALL_SDK_HEADERS := $(INSTALL_PREFIX)/include/vamp-sdk
INSTALL_HOSTEXT_HEADERS := $(INSTALL_PREFIX)/include/vamp-sdk/hostext
INSTALL_SDK_LIBS := $(INSTALL_PREFIX)/lib
-INSTALL_SDK_LIBNAME := libvamp-sdk.so.1.1.1
-INSTALL_SDK_LINK_ABI := libvamp-sdk.so.1
-INSTALL_SDK_LINK_DEV := libvamp-sdk.so
+INSTALL_SDK_LIBNAME := libvamp-sdk.so.${LIBvamp-sdk_VERSION}
+INSTALL_SDK_LINK_ABI := $(INSTALL_SDK_LIBNAME) #libvamp-sdk.so.1
+INSTALL_SDK_LINK_DEV := $(INSTALL_SDK_LIBNAME) #libvamp-sdk.so
INSTALL_SDK_STATIC := libvamp-sdk.a
INSTALL_SDK_LA := libvamp-sdk.la
-INSTALL_HOSTSDK_LIBNAME := libvamp-hostsdk.so.2.1.0
-INSTALL_HOSTSDK_LINK_ABI := libvamp-hostsdk.so.2
-INSTALL_HOSTSDK_LINK_DEV := libvamp-hostsdk.so
+INSTALL_HOSTSDK_LIBNAME := libvamp-hostsdk.so.${LIBvamp-hostsdk_VERSION}
+INSTALL_HOSTSDK_LINK_ABI := $(INSTALL_HOSTSDK_LIBNAME) #libvamp-hostsdk.so.2
+INSTALL_HOSTSDK_LINK_DEV := $(INSTALL_HOSTSDK_LIBNAME) #libvamp-hostsdk.so
INSTALL_HOSTSDK_STATIC := libvamp-hostsdk.a
INSTALL_HOSTSDK_LA := libvamp-hostsdk.la
@@ -79,7 +79,7 @@ INSTALL_PKGCONFIG := $(INSTALL_PREFIX)/lib/pkgconfig
# Flags required to tell the compiler to create a dynamically loadable object
#
-DYNAMIC_LDFLAGS = -static-libgcc -shared -Wl,-Bsymbolic
+DYNAMIC_LDFLAGS = -shared -fPIC
SDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,-soname=$(INSTALL_SDK_LINK_ABI)
HOSTSDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,-soname=$(INSTALL_HOSTSDK_LINK_ABI)
@@ -141,10 +141,10 @@ HOSTSDK_STATIC = \
$(SDKDIR)/libvamp-hostsdk.a
SDK_DYNAMIC = \
- $(SDKDIR)/libvamp-sdk$(PLUGIN_EXT)
+ $(SDKDIR)/$(INSTALL_SDK_LIBNAME)
HOSTSDK_DYNAMIC = \
- $(SDKDIR)/libvamp-hostsdk$(PLUGIN_EXT)
+ $(SDKDIR)/$(INSTALL_HOSTSDK_LIBNAME)
SDK_LA = \
$(SDKDIR)/libvamp-sdk.la
@@ -187,7 +187,7 @@ plugins: $(PLUGIN_TARGET)
host: $(HOST_TARGET)
-all: sdk plugins host test
+all: sdk plugins host
$(SDK_STATIC): $(SDK_OBJECTS) $(API_HEADERS) $(SDK_HEADERS)
$(AR) r $@ $(SDK_OBJECTS)
@@ -208,7 +208,7 @@ $(HOST_TARGET): $(HOST_OBJECTS) $(HOSTSDK_STATIC) $(HO
$(CXX) $(LDFLAGS) $(HOST_LDFLAGS) -o $@ $(HOST_OBJECTS) $(HOST_LIBS)
test: plugins host
- VAMP_PATH=$(EXAMPLEDIR) $(HOST_TARGET) -l
+ LD_LIBRARY_PATH="./vamp-sdk" VAMP_PATH=$(EXAMPLEDIR) $(HOST_TARGET) -l
clean:
rm -f $(SDK_OBJECTS) $(HOSTSDK_OBJECTS) $(PLUGIN_OBJECTS) $(HOST_OBJECTS)
@@ -221,6 +221,7 @@ install: $(SDK_STATIC) $(SDK_DYNAMIC) $(HOSTSDK_STATIC
mkdir -p $(DESTDIR)$(INSTALL_SDK_HEADERS)
mkdir -p $(DESTDIR)$(INSTALL_HOSTEXT_HEADERS)
mkdir -p $(DESTDIR)$(INSTALL_SDK_LIBS)
+ mkdir -p $(DESTDIR)$(INSTALL_SDK_LIBS)/vamp
mkdir -p $(DESTDIR)$(INSTALL_PKGCONFIG)
cp $(API_HEADERS) $(DESTDIR)$(INSTALL_API_HEADERS)
cp $(SDK_HEADERS) $(DESTDIR)$(INSTALL_SDK_HEADERS)
@@ -229,15 +230,16 @@ install: $(SDK_STATIC) $(SDK_DYNAMIC) $(HOSTSDK_STATIC
cp $(SDK_STATIC) $(DESTDIR)$(INSTALL_SDK_LIBS)
cp $(HOSTSDK_STATIC) $(DESTDIR)$(INSTALL_SDK_LIBS)
cp $(SDK_DYNAMIC) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LIBNAME)
+ cp $(PLUGIN_TARGET) $(DESTDIR)$(INSTALL_SDK_LIBS)/vamp/vamp-example-plugins$(PLUGIN_EXT)
cp $(HOSTSDK_DYNAMIC) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LIBNAME)
- rm -f $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_ABI)
- ln -s $(INSTALL_SDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_ABI)
- rm -f $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_ABI)
- ln -s $(INSTALL_HOSTSDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_ABI)
- rm -f $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_DEV)
- ln -s $(INSTALL_SDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_DEV)
- rm -f $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_DEV)
- ln -s $(INSTALL_HOSTSDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_DEV)
+ #rm -f $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_ABI)
+ #ln -s $(INSTALL_SDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_ABI)
+ #rm -f $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_ABI)
+ #ln -s $(INSTALL_HOSTSDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_ABI)
+ #rm -f $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_DEV)
+ #ln -s $(INSTALL_SDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_DEV)
+ #rm -f $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_DEV)
+ #ln -s $(INSTALL_HOSTSDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_DEV)
sed "s,%PREFIX%,$(INSTALL_PREFIX)," $(APIDIR)/vamp.pc.in \
> $(DESTDIR)$(INSTALL_PKGCONFIG)/vamp.pc
sed "s,%PREFIX%,$(INSTALL_PREFIX)," $(SDKDIR)/vamp-sdk.pc.in \

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-examples_SpectralCentroid_cpp,v 1.1.1.1 2009/01/11 09:22:08 jakemsr Exp $
--- examples/SpectralCentroid.cpp.orig Wed Mar 5 12:51:29 2008
+++ examples/SpectralCentroid.cpp Wed Mar 5 12:51:59 2008
@@ -165,13 +165,13 @@ SpectralCentroid::process(const float *const *inputBuf
Feature feature;
feature.hasTimestamp = false;
- if (!std::isnan(centroidLog) && !std::isinf(centroidLog)) {
+ if (!isnan(centroidLog) && !isinf(centroidLog)) {
feature.values.push_back(centroidLog);
}
returnFeatures[0].push_back(feature);
feature.values.clear();
- if (!std::isnan(centroidLin) && !std::isinf(centroidLin)) {
+ if (!isnan(centroidLin) && !isinf(centroidLin)) {
feature.values.push_back(centroidLin);
}
returnFeatures[1].push_back(feature);

View File

@ -0,0 +1,3 @@
Vamp is an audio processing plugin system for plugins that extract
descriptive information from audio data - typically referred to as audio
analysis plugins or audio feature extraction plugins.

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2009/01/11 09:22:08 jakemsr Exp $
@lib lib/libvamp-hostsdk.so.${LIBvamp-hostsdk_VERSION}
@lib lib/libvamp-sdk.so.${LIBvamp-sdk_VERSION}
lib/vamp/vamp-example-plugins.so

View File

@ -0,0 +1,25 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/01/11 09:22:08 jakemsr Exp $
%%SHARED%%
include/vamp/
include/vamp-sdk/
include/vamp-sdk/Plugin.h
include/vamp-sdk/PluginAdapter.h
include/vamp-sdk/PluginBase.h
include/vamp-sdk/PluginHostAdapter.h
include/vamp-sdk/RealTime.h
include/vamp-sdk/hostext/
include/vamp-sdk/hostext/PluginBufferingAdapter.h
include/vamp-sdk/hostext/PluginChannelAdapter.h
include/vamp-sdk/hostext/PluginInputDomainAdapter.h
include/vamp-sdk/hostext/PluginLoader.h
include/vamp-sdk/hostext/PluginWrapper.h
include/vamp/vamp.h
lib/libvamp-hostsdk.a
lib/libvamp-hostsdk.la
lib/libvamp-sdk.a
lib/libvamp-sdk.la
lib/pkgconfig/
lib/pkgconfig/vamp-hostsdk.pc
lib/pkgconfig/vamp-sdk.pc
lib/pkgconfig/vamp.pc
lib/vamp/