summaryrefslogtreecommitdiff
path: root/audio/ladspa
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2005-01-12 13:57:49 +0000
committerxtraeme <xtraeme@pkgsrc.org>2005-01-12 13:57:49 +0000
commit3d38784d12f926061b7bf4f3f89d4cc5cbf198e1 (patch)
tree12746f83ca4772a3997b0f3b42407f5310a75342 /audio/ladspa
parent994d996935592ba304513555904aa9a5028cfd8c (diff)
downloadpkgsrc-3d38784d12f926061b7bf4f3f89d4cc5cbf198e1.tar.gz
Initial import of ladspa-1.12 from pkgsrc-wip.
Many audio synthesis and recording packages are in use or in development. 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. For instance, this allows a developer to make a reverb program and bundle it into a LADSPA `plugin library.' Ordinary users can then use this reverb within any LADSPA-friendly audio application.
Diffstat (limited to 'audio/ladspa')
-rw-r--r--audio/ladspa/DESCR8
-rw-r--r--audio/ladspa/Makefile20
-rw-r--r--audio/ladspa/PLIST11
-rw-r--r--audio/ladspa/buildlink3.mk22
-rw-r--r--audio/ladspa/distinfo6
-rw-r--r--audio/ladspa/patches/patch-aa88
-rw-r--r--audio/ladspa/patches/patch-ab17
7 files changed, 172 insertions, 0 deletions
diff --git a/audio/ladspa/DESCR b/audio/ladspa/DESCR
new file mode 100644
index 00000000000..befb524d5b5
--- /dev/null
+++ b/audio/ladspa/DESCR
@@ -0,0 +1,8 @@
+Many audio synthesis and recording packages are in use or in
+development. 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.
+
+For instance, this allows a developer to make a reverb program and
+bundle it into a LADSPA `plugin library.' Ordinary users can then use
+this reverb within any LADSPA-friendly audio application.
diff --git a/audio/ladspa/Makefile b/audio/ladspa/Makefile
new file mode 100644
index 00000000000..7b03261ff76
--- /dev/null
+++ b/audio/ladspa/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/01/12 13:57:49 xtraeme Exp $
+#
+
+DISTNAME= ladspa_sdk_1.12
+PKGNAME= ${DISTNAME:S/_sdk_/-/}
+CATEGORIES= audio
+MASTER_SITES= http://www.ladspa.org/download/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.ladspa.org/
+COMMENT= Linux Audio Developers Simple Plugin API
+
+WRKSRC= ${WRKDIR}/ladspa_sdk/src
+USE_BUILDLINK3= yes
+USE_GNU_TOOLS+= make
+
+MAKEFILE= makefile
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/ladspa/PLIST b/audio/ladspa/PLIST
new file mode 100644
index 00000000000..d8fcd4dfb70
--- /dev/null
+++ b/audio/ladspa/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/01/12 13:57:49 xtraeme Exp $
+bin/analyseplugin
+bin/applyplugin
+bin/listplugins
+include/ladspa.h
+lib/ladspa/amp.so
+lib/ladspa/delay.so
+lib/ladspa/filter.so
+lib/ladspa/noise.so
+lib/ladspa/sine.so
+@dirrm lib/ladspa
diff --git a/audio/ladspa/buildlink3.mk b/audio/ladspa/buildlink3.mk
new file mode 100644
index 00000000000..b6039a9ad65
--- /dev/null
+++ b/audio/ladspa/buildlink3.mk
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2005/01/12 13:57:51 xtraeme Exp $
+#
+# This Makefile fragment is included by packages that use ladspa.
+#
+# This file was created automatically using createbuildlink-3.1.
+#
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+LADSPA_BUILDLINK3_MK:= ${LADSPA_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= ladspa
+.endif
+
+.if !empty(LADSPA_BUILDLINK3_MK:M+)
+BUILDLINK_PACKAGES+= ladspa
+BUILDLINK_DEPENDS.ladspa+= ladspa>=1.12
+BUILDLINK_PKGSRCDIR.ladspa?= ../../wip/ladspa
+
+.endif # LADSPA_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/audio/ladspa/distinfo b/audio/ladspa/distinfo
new file mode 100644
index 00000000000..f4bdac291a0
--- /dev/null
+++ b/audio/ladspa/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/01/12 13:57:49 xtraeme Exp $
+
+SHA1 (ladspa_sdk_1.12.tgz) = 36a3a7a00f96281ca443dcae15d33f462398c4d4
+Size (ladspa_sdk_1.12.tgz) = 71165 bytes
+SHA1 (patch-aa) = 0937e9193ad19a20ec4dd746481db257eeae1d9b
+SHA1 (patch-ab) = 683f59749afb63ade931529eecfd8125634d3964
diff --git a/audio/ladspa/patches/patch-aa b/audio/ladspa/patches/patch-aa
new file mode 100644
index 00000000000..a5522729afd
--- /dev/null
+++ b/audio/ladspa/patches/patch-aa
@@ -0,0 +1,88 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/01/12 13:57:51 xtraeme Exp $
+
+--- makefile.orig 2004-02-28 17:30:22.000000000 +0100
++++ makefile 2004-02-28 17:35:17.000000000 +0100
+@@ -5,9 +5,9 @@
+ # 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
+
+ ###############################################################################
+ #
+@@ -15,8 +15,8 @@
+ #
+
+ INCLUDES = -I.
+-LIBRARIES = -ldl -lm
+-CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC
++LIBRARIES = -lm
++CFLAGS = $(INCLUDES) -Wall -Werror -fPIC
+ CXXFLAGS = $(CFLAGS)
+ PLUGINS = ../plugins/amp.so \
+ ../plugins/delay.so \
+@@ -26,8 +26,8 @@
+ PROGRAMS = ../bin/analyseplugin \
+ ../bin/applyplugin \
+ ../bin/listplugins
+-CC = cc
+-CPP = c++
++#CC = cc
++#CPP = c++
+
+ ###############################################################################
+ #
+@@ -39,32 +39,19 @@
+ $(LD) -o ../plugins/$*.so plugins/$*.o -shared
+
+ ../plugins/%.so: plugins/%.cpp ladspa.h
+- $(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
+- $(CPP) -o ../plugins/$*.so plugins/$*.o -shared
++ $(CXX) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
++ $(CXX) -o ../plugins/$*.so plugins/$*.o -shared
+
+ ###############################################################################
+ #
+ # 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) \
+- $(INSTALL_INCLUDE_DIR) \
+- $(INSTALL_BINARY_DIR)
+- cp ../plugins/* $(INSTALL_PLUGINS_DIR)
+- cp ladspa.h $(INSTALL_INCLUDE_DIR)
+- cp ../bin/* $(INSTALL_BINARY_DIR)
++install:
++ $(BSD_INSTALL_DATA_DIR) $(INSTALL_PLUGINS_DIR)
++ $(BSD_INSTALL_DATA) ../plugins/* $(INSTALL_PLUGINS_DIR)
++ $(BSD_INSTALL_DATA) ladspa.h $(INSTALL_INCLUDE_DIR)
++ $(BSD_INSTALL_PROGRAM) ../bin/* $(INSTALL_BINARY_DIR)
+
+ /tmp/test.wav: targets ../snd/noise.wav
+ ../bin/listplugins
+@@ -82,7 +69,7 @@
+ ../plugins/delay.so delay_5s 1 0.1 \
+ ../plugins/amp.so amp_mono 4 \
+
+-targets: $(PLUGINS) $(PROGRAMS)
++all: $(PLUGINS) $(PROGRAMS)
+
+ ###############################################################################
+ #
diff --git a/audio/ladspa/patches/patch-ab b/audio/ladspa/patches/patch-ab
new file mode 100644
index 00000000000..7eb7f017758
--- /dev/null
+++ b/audio/ladspa/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/01/12 13:57:51 xtraeme Exp $
+
+--- applyplugin.c.orig 2004-02-28 17:11:28.000000000 +0100
++++ applyplugin.c 2004-02-28 17:12:19.000000000 +0100
+@@ -6,7 +6,11 @@
+ /*****************************************************************************/
+
+ #include <dlfcn.h>
+-#include <endian.h>
++#ifdef __Linux__
++# include <endian.h>
++#else
++# include <sys/endian.h>
++#endif
+ #include <errno.h>
+ #include <math.h>
+ #include <stdlib.h>