pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/ladspa Initial import of ladspa-1.12 from pkgsrc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8666c708a32d
branches:  trunk
changeset: 487295:8666c708a32d
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Wed Jan 12 13:57:49 2005 +0000

description:
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:

 audio/ladspa/DESCR            |   8 +++
 audio/ladspa/Makefile         |  20 +++++++++
 audio/ladspa/PLIST            |  11 +++++
 audio/ladspa/buildlink3.mk    |  22 ++++++++++
 audio/ladspa/distinfo         |   6 ++
 audio/ladspa/patches/patch-aa |  88 +++++++++++++++++++++++++++++++++++++++++++
 audio/ladspa/patches/patch-ab |  17 ++++++++
 7 files changed, 172 insertions(+), 0 deletions(-)

diffs (200 lines):

diff -r 80af7895cc56 -r 8666c708a32d audio/ladspa/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ladspa/DESCR        Wed Jan 12 13:57:49 2005 +0000
@@ -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 -r 80af7895cc56 -r 8666c708a32d audio/ladspa/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ladspa/Makefile     Wed Jan 12 13:57:49 2005 +0000
@@ -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@localhost
+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 -r 80af7895cc56 -r 8666c708a32d audio/ladspa/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ladspa/PLIST        Wed Jan 12 13:57:49 2005 +0000
@@ -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 -r 80af7895cc56 -r 8666c708a32d audio/ladspa/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ladspa/buildlink3.mk        Wed Jan 12 13:57:49 2005 +0000
@@ -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 -r 80af7895cc56 -r 8666c708a32d audio/ladspa/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ladspa/distinfo     Wed Jan 12 13:57:49 2005 +0000
@@ -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 -r 80af7895cc56 -r 8666c708a32d audio/ladspa/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ladspa/patches/patch-aa     Wed Jan 12 13:57:49 2005 +0000
@@ -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 -r 80af7895cc56 -r 8666c708a32d audio/ladspa/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ladspa/patches/patch-ab     Wed Jan 12 13:57:49 2005 +0000
@@ -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>



Home | Main Index | Thread Index | Old Index