ladspa stable port information

Package: ladspa
Version: 1.12
Revision: 1013
Maintainer: Benjamin Reed

Source: http://www.ladspa.org/download/ladspa_sdk_1.12.tgz
Source-MD5: dbd63dd701d80b152943073c84565c14
PatchScript: sed -e 's,@PREFIX@,%p,g' %a/%n.patch | patch -p1
SourceDirectory: %N_sdk
GCC: 4.0

DocFiles: README doc/*
CompileScript: <<
#!/bin/sh -ev
pushd src && \
make targets && \
popd
<<

InstallScript: <<
#!/bin/sh -ev
install -d -m 755 %i/lib/ladspa && \
install -d -m 755 %i/include && \
install -d -m 755 %i/bin && \
install -m 755 plugins/* %i/lib/ladspa/ && \
install -m 644 src/ladspa.h %i/include/ && \
install -m 755 bin/* %i/bin/ && exit 0
exit 1
<<

SplitOff: <<
Package: %N-dev
Depends: %N
Description: Development files for LADSPA
Files: include
<<

RuntimeVars: <<
LADSPA_PATH: %p/lib/ladspa
<<

Description: Linux Audio Developer's Simple Plugin API
DescDetail: <<
Many audio synthesis and recording packages are in use or in development on
Linux. These work in many different ways. LADSPA provides a standard way
for `plugin' audio processors to be used with a wide range of these packages.
<<
License: LGPL

ladspa stable port .patch

diff -uNr ladspa_sdk/src/applyplugin.c ladspa_sdk-new/src/applyplugin.c
--- ladspa_sdk/src/applyplugin.c Sat May 18 13:01:36 2002
+++ ladspa_sdk-new/src/applyplugin.c Sun Oct 26 21:23:57 2003
@@ -6,7 +6,7 @@
/*****************************************************************************/

#include
-#include
+#include
#include
#include
#include
diff -uNr ladspa_sdk/src/makefile ladspa_sdk-new/src/makefile
--- ladspa_sdk/src/makefile Sat Jul 6 13:34:20 2002
+++ ladspa_sdk-new/src/makefile Sun Oct 26 21:24:54 2003
@@ -5,18 +5,18 @@
# Change these if you want to install somewhere else. In particularly
# you may wish to remove the middle "local/" part of each entry.

-INSTALL_PLUGINS_DIR = /usr/local/lib/ladspa/
-INSTALL_INCLUDE_DIR = /usr/include/
-INSTALL_BINARY_DIR = /usr/local/bin/
+INSTALL_PLUGINS_DIR = @PREFIX@/lib/ladspa/
+INSTALL_INCLUDE_DIR = @PREFIX@/include/
+INSTALL_BINARY_DIR = @PREFIX@/bin/

###############################################################################
#
# GENERAL
#

-INCLUDES = -I.
-LIBRARIES = -ldl -lm
-CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC
+INCLUDES = -I. -I@PREFIX@/include
+LIBRARIES = -L@PREFIX@/lib -ldl -lm
+CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC -fno-common
CXXFLAGS = $(CFLAGS)
PLUGINS = ../plugins/amp.so \
../plugins/delay.so \
@@ -28,6 +28,7 @@
../bin/listplugins
CC = cc
CPP = c++
+LD = $(CC)

###############################################################################
#
@@ -36,27 +37,16 @@

../plugins/%.so: plugins/%.c ladspa.h
$(CC) $(CFLAGS) -o plugins/$*.o -c plugins/$*.c
- $(LD) -o ../plugins/$*.so plugins/$*.o -shared
+ $(LD) -bundle -o ../plugins/$*.so plugins/$*.o

../plugins/%.so: plugins/%.cpp ladspa.h
$(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
- $(CPP) -o ../plugins/$*.so plugins/$*.o -shared
+ $(CPP) -bundle -o ../plugins/$*.so plugins/$*.o

###############################################################################
#
# TARGETS
#
-
-test: /tmp/test.wav ../snd/noise.wav always
- @echo ---------------------------------------------
- @echo First listen to the white noise input signal:
- @echo ---------------------------------------------
- play ../snd/noise.wav
- @echo -------------------------
- @echo Compare to plugin output.
- @echo -------------------------
- @echo Should be a noise band around 6000Hz, repeated quietly after 1s.
- play /tmp/test.wav

install: targets
-mkdirhier $(INSTALL_PLUGINS_DIR) \
diff -uNr ladspa_sdk/src/search.c ladspa_sdk-new/src/search.c
--- ladspa_sdk/src/search.c Sat Jul 21 12:04:23 2001
+++ ladspa_sdk-new/src/search.c Sun Oct 26 21:29:22 2003
@@ -5,12 +5,12 @@

/*****************************************************************************/

+#include
#include
#include
#include
#include
#include
-#include
#include

/*****************************************************************************/

ladspa _unstable_ port information

Package: ladspa
Version: 1.12
Revision: 1013
Maintainer: Benjamin Reed

Source: http://www.ladspa.org/download/ladspa_sdk_1.12.tgz
Source-MD5: dbd63dd701d80b152943073c84565c14
PatchScript: sed -e 's,@PREFIX@,%p,g' %a/%n.patch | patch -p1
SourceDirectory: %N_sdk
GCC: 4.0

DocFiles: README doc/*
CompileScript: <<
#!/bin/sh -ev
pushd src && \
make targets && \
popd
<<

InstallScript: <<
#!/bin/sh -ev
install -d -m 755 %i/lib/ladspa && \
install -d -m 755 %i/include && \
install -d -m 755 %i/bin && \
install -m 755 plugins/* %i/lib/ladspa/ && \
install -m 644 src/ladspa.h %i/include/ && \
install -m 755 bin/* %i/bin/ && exit 0
exit 1
<<

SplitOff: <<
Package: %N-dev
Depends: %N
Description: Development files for LADSPA
Files: include
<<

RuntimeVars: <<
LADSPA_PATH: %p/lib/ladspa
<<

Description: Linux Audio Developer's Simple Plugin API
DescDetail: <<
Many audio synthesis and recording packages are in use or in development on
Linux. These work in many different ways. LADSPA provides a standard way
for `plugin' audio processors to be used with a wide range of these packages.
<<
License: LGPL

ladspa _unstable_ port .patch

diff -uNr ladspa_sdk/src/applyplugin.c ladspa_sdk-new/src/applyplugin.c
--- ladspa_sdk/src/applyplugin.c Sat May 18 13:01:36 2002
+++ ladspa_sdk-new/src/applyplugin.c Sun Oct 26 21:23:57 2003
@@ -6,7 +6,7 @@
/*****************************************************************************/

#include
-#include
+#include
#include
#include
#include
diff -uNr ladspa_sdk/src/makefile ladspa_sdk-new/src/makefile
--- ladspa_sdk/src/makefile Sat Jul 6 13:34:20 2002
+++ ladspa_sdk-new/src/makefile Sun Oct 26 21:24:54 2003
@@ -5,18 +5,18 @@
# Change these if you want to install somewhere else. In particularly
# you may wish to remove the middle "local/" part of each entry.

-INSTALL_PLUGINS_DIR = /usr/local/lib/ladspa/
-INSTALL_INCLUDE_DIR = /usr/include/
-INSTALL_BINARY_DIR = /usr/local/bin/
+INSTALL_PLUGINS_DIR = @PREFIX@/lib/ladspa/
+INSTALL_INCLUDE_DIR = @PREFIX@/include/
+INSTALL_BINARY_DIR = @PREFIX@/bin/

###############################################################################
#
# GENERAL
#

-INCLUDES = -I.
-LIBRARIES = -ldl -lm
-CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC
+INCLUDES = -I. -I@PREFIX@/include
+LIBRARIES = -L@PREFIX@/lib -ldl -lm
+CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC -fno-common
CXXFLAGS = $(CFLAGS)
PLUGINS = ../plugins/amp.so \
../plugins/delay.so \
@@ -28,6 +28,7 @@
../bin/listplugins
CC = cc
CPP = c++
+LD = $(CC)

###############################################################################
#
@@ -36,27 +37,16 @@

../plugins/%.so: plugins/%.c ladspa.h
$(CC) $(CFLAGS) -o plugins/$*.o -c plugins/$*.c
- $(LD) -o ../plugins/$*.so plugins/$*.o -shared
+ $(LD) -bundle -o ../plugins/$*.so plugins/$*.o

../plugins/%.so: plugins/%.cpp ladspa.h
$(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
- $(CPP) -o ../plugins/$*.so plugins/$*.o -shared
+ $(CPP) -bundle -o ../plugins/$*.so plugins/$*.o

###############################################################################
#
# TARGETS
#
-
-test: /tmp/test.wav ../snd/noise.wav always
- @echo ---------------------------------------------
- @echo First listen to the white noise input signal:
- @echo ---------------------------------------------
- play ../snd/noise.wav
- @echo -------------------------
- @echo Compare to plugin output.
- @echo -------------------------
- @echo Should be a noise band around 6000Hz, repeated quietly after 1s.
- play /tmp/test.wav

install: targets
-mkdirhier $(INSTALL_PLUGINS_DIR) \
diff -uNr ladspa_sdk/src/search.c ladspa_sdk-new/src/search.c
--- ladspa_sdk/src/search.c Sat Jul 21 12:04:23 2001
+++ ladspa_sdk-new/src/search.c Sun Oct 26 21:29:22 2003
@@ -5,12 +5,12 @@

/*****************************************************************************/

+#include
#include
#include
#include
#include
#include
-#include
#include

/*****************************************************************************/