diff options
-rw-r--r-- | debian/README.Debian | 27 | ||||
-rw-r--r-- | debian/analyseplugin.1 | 36 | ||||
-rw-r--r-- | debian/applyplugin.1 | 40 | ||||
-rw-r--r-- | debian/changelog | 181 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 33 | ||||
-rw-r--r-- | debian/copyright | 39 | ||||
-rw-r--r-- | debian/doc-base | 11 | ||||
-rw-r--r-- | debian/docs | 10 | ||||
-rw-r--r-- | debian/gbp.conf | 3 | ||||
-rw-r--r-- | debian/ladspa-sdk.links | 1 | ||||
-rw-r--r-- | debian/ladspa-sdk.manpages | 3 | ||||
-rw-r--r-- | debian/listplugins.1 | 32 | ||||
-rw-r--r-- | debian/patches/00_standard-makefile.patch | 69 | ||||
-rw-r--r-- | debian/patches/01_no-mkdirhier.diff | 17 | ||||
-rw-r--r-- | debian/patches/02_default-ladspa-path.diff | 27 | ||||
-rw-r--r-- | debian/patches/05_linking_order.diff | 38 | ||||
-rw-r--r-- | debian/patches/series | 4 | ||||
-rw-r--r-- | debian/pbuilder-test/01_listplugins | 21 | ||||
-rw-r--r-- | debian/pbuilder-test/02_ladspah | 5 | ||||
-rw-r--r-- | debian/pbuilder-test/02_ladspah.c | 10 | ||||
-rwxr-xr-x | debian/rules | 22 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/source/local-options | 2 | ||||
-rw-r--r-- | debian/watch | 4 |
25 files changed, 637 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..e3b804b --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,27 @@ +ladspa-sdk for Debian +--------------------- + +Hopefully all ladspa-aware programs have a + +Provides: ladspa-plugin (when it is a ladspa-plugin) + +or + +Recommends: ladspa-plugin (when it uses a ladspa-plugin) + +in them. + + +And also, Debian ladspa plugin packages should be installed in +/usr/lib/ladspa/ + +and the search path should be something like +/usr/local/lib/ladspa:/usr/lib/ladspa. + +LADSPA requires LADSPA_PATH to be set to /usr/lib/ladspa to +work properly. However, since it is against Debian Policy, I have +patched it to work with a default value when LADSPA_PATH is not +available. + + + -- Junichi Uekawa <dancer@debian.org>, 3 July 2001 diff --git a/debian/analyseplugin.1 b/debian/analyseplugin.1 new file mode 100644 index 0000000..b785ffe --- /dev/null +++ b/debian/analyseplugin.1 @@ -0,0 +1,36 @@ +.TH analyseplugin 1 "2001 May 14" "ladspa-sdk" "Debian GNU/Linux" +.SH "NAME" +analyseplugin \- analyse plugin syntax +.SH "SYNOPSIS" +.BI "analyseplugin [\-l] " "plugin name" +.SH "DESCRIPTION" +.B analyseplugin +gives out a detailed information about LADSPA plugin and its properties. +.SH "OPTIONS" +.TP +.B "\-l" +Gives a brief listing (one line per plugin) instead of a more detailed output. +.SH "FILES" +.TP +.B "/usr/lib/ladspa/*.so" +LADSPA plugin files are installed here by default. +.SH "ENVIRONMENT" +.TP +.B "LADSPA_PATH" +should be set to something like +"/usr/local/lib/ladspa:/usr/lib/ladspa:" for plugins to be found at +all. +.PP +.SH "BUGS" +Requires environmental variable to work properly. +.SH "CONFORMING TO" +.B "LADSPA" +standard, by +.B "linux\-audio\-dev" +mailing list members. +.SH "AUTHOR" +ladspa-sdk was written by Richard Furse (richard@muse.demon.co.uk). +This manpage was written by Junichi Uekawa (dancer@debian.org). +.SH "SEE ALSO" +.BR "listplugins" "(1), " "applyplugin" "(1) " + diff --git a/debian/applyplugin.1 b/debian/applyplugin.1 new file mode 100644 index 0000000..7d1f50f --- /dev/null +++ b/debian/applyplugin.1 @@ -0,0 +1,40 @@ +.TH applyplugin 1 "2001 May 14" "ladspa-sdk" "Debian GNU/Linux" +.SH "NAME" +applyplugin \- apply LADSPA plugin to an audio file +.SH "SYNOPSIS" +.BI "applyplugin [\-s[" "seconds" "]] <" "input wave file" \ +"> <" "output wave file" \ +"> <" "LADSPA plugin file name" "> <" "plugin label" "> <" "Control1" \ +"> <" "Control2" "> ... [<" "LADSPA plugin file name" "> <" \ +"plugin label" "> <" "Control1" "> <" "Control2" "> ... ] ..." +.SH "DESCRIPTION" +.B applyplugin +applies a series of LADSPA plugins to an audio data source to create a +destination audio file. +.SH "OPTIONS" +.TP +.BI "\-s[" "seconds" "]" +Add seconds of silence after end of input file. +.SH "FILES" +.TP +.B "/usr/lib/ladspa/*.so" +LADSPA plugin files are installed here by default. +.SH "ENVIRONMENT" +.TP +.B "LADSPA_PATH" +should be set to something like +"/usr/local/lib/ladspa:/usr/lib/ladspa:" for plugins to be found at +all. +.PP +.SH "BUGS" +Requires environmental variable to work properly. +.SH "CONFORMING TO" +.B "LADSPA" +standard, by +.B "linux\-audio\-dev" +mailing list members. +.SH "AUTHOR" +ladspa-sdk was written by Richard Furse (richard@muse.demon.co.uk). +This manpage was written by Junichi Uekawa (dancer@debian.org). +.SH "SEE ALSO" +.BR "listplugins" "(1), " "analyseplugin" "(1) " diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..e8e353b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,181 @@ +ladspa-sdk (1.13-3) unstable; urgency=medium + + * Patches forwarded + * Set dh/compat 10. + * Bump Standards. + * Fix VCS fields. + * Sign tags. + * Fix hardening. + * Update copyright file. + + -- Jaromír Mikeš <mira.mikes@seznam.cz> Thu, 22 Dec 2016 22:13:45 +0100 + +ladspa-sdk (1.13-2) unstable; urgency=low + + [ Felipe Sateler ] + * Use only 3 digits precision on debian-policy version. + * Add git-buildpackage config file. + * Switch to CDBS. + * Switch to 3.0 (quilt) source format. + * Rework makefile patches. + + [ Alessio Treglia ] + * Correct linking order to fix FTBFS with GCC4.5 + binutils-gold. + + [ Jaromír Mikeš ] + * Added myself as uploader. + * Added patch fixing include. + * Set dh/compat 9. + * Added .gitignore file. + * Added local-option file. + * Added watch file. + * Fix VCS canonical URLs. + * Fix hardening. + + -- Jaromír Mikeš <mira.mikes@seznam.cz> Sat, 15 Jun 2013 12:11:43 +0200 + +ladspa-sdk (1.13-1) unstable; urgency=low + + * Imported Upstream version 1.13 + - No more mismatched free/delete. Closes: #342156, #561560 + * Set Debian Multimedia Maintainers as maintainer. Closes: #520269 + * Switch from dpatch to quilt + * Drop patch 03_gcc41, not needed anymore + * Switch to debhelper compat level 7 + * Split the debian patch into logical changes + * Add misc:Depends to Depends line + * Build-Depend on debhelper >= 7 + * Bump standards version, no changes needed + * Note use of quilt for patches + * Fix build error with git-buildpackage + * Fix doc-base section + * Remove extra whitespace + * Remove useless dir file + * Add Vcs-* fields + * Drop versioned build-depends on g++, required version in oldstable + * Fix linkage of C plugins + * Clarify copyright. + * Explicitly use 1.0 source format + * Add homepage field + + -- Felipe Sateler <fsateler@debian.org> Tue, 29 Jun 2010 13:31:44 -0400 + +ladspa-sdk (1.1-6) unstable; urgency=low + + * wrong symlink installed, install a better symlink for ladspa.h.txt. + + -- Junichi Uekawa <dancer@debian.org> Sun, 6 May 2007 08:27:45 +0900 + +ladspa-sdk (1.1-5) unstable; urgency=low + + * Bug fix: "ladspa-sdk: Broken link in documentation", thanks to Reuben + Thomas (Closes: #422377). + Install ladspa.h.txt + * add pbuilder-test. + + -- Junichi Uekawa <dancer@debian.org> Sun, 6 May 2007 08:21:44 +0900 + +ladspa-sdk (1.1-4.1) unstable; urgency=low + + * NMU as part of the GCC 4.1 transition. + * patches/03_gcc41.dpatch: add patch from Ben Hutchings to declare friend + functions (closes: #355989) + + -- Martin Michlmayr <tbm@cyrius.com> Sat, 27 May 2006 13:49:24 +0200 + +ladspa-sdk (1.1-4) unstable; urgency=low + + * m68k ICE workaround; reduce optimization to -O2 from -O3 + 02_m68k_workaround.dpatch (closes: #328285) + + -- Junichi Uekawa <dancer@debian.org> Thu, 15 Sep 2005 06:58:48 +0900 + +ladspa-sdk (1.1-3) unstable; urgency=low + + * recompile with gcc-4.0 + - only plugins are affected, does not really affect packages Build-Depending on this package. + * standards-version 3.6.2 + * use dpatch to maintain Debian patch. + - 01_debian-patch: the Debian patch. + + -- Junichi Uekawa <dancer@debian.org> Sat, 20 Aug 2005 11:05:43 +0900 + +ladspa-sdk (1.1-2) unstable; urgency=low + + * recompile with gcc-3.3 + * update debian/copyright + * update standards-version + * link plugins against libc and other necessary libs. + + -- Junichi Uekawa <dancer@debian.org> Thu, 3 Jul 2003 23:23:29 +0900 + +ladspa-sdk (1.1-1) unstable; urgency=low + + * New upstream release + * forward-port local hack to check /usr/lib/ladspa even if env variable is + not set + + -- Junichi Uekawa <dancer@debian.org> Mon, 9 Sep 2002 18:52:31 +0900 + +ladspa-sdk (1.0.LGPL-7) unstable; urgency=low + + * fixed manpage. - is escaped with a backslash. + * fixing the control dependency wrt ladspa-sdk-dev + + -- Junichi Uekawa <dancer@debian.org> Wed, 8 Aug 2001 19:20:34 +0900 + +ladspa-sdk (1.0.LGPL-6) unstable; urgency=low + + * removed ladspa-sdk-dev. It should not enter woody, as released. + The compatibility package has existed long enough in testing, + I assume I don't need it included in stable. + (closes: #105982) + * fixed a typo that I thought I have already fixed. + (closes: #103113) + + -- Junichi Uekawa <dancer@debian.org> Fri, 20 Jul 2001 23:50:54 +0900 + +ladspa-sdk (1.0.LGPL-5) unstable; urgency=low + + * mkdirhier is in xutils, and use mkdir -p instead in the upstream + makefile. (closes: #103476) + Thanks go to wouter@debian.org. + * changed upstream makefile so that -Wall and -Werror is removed. + These flags should not have been there... + + -- Junichi Uekawa <dancer@debian.org> Thu, 5 Jul 2001 00:22:10 +0900 + +ladspa-sdk (1.0.LGPL-4) unstable; urgency=low + + * <cae@bklyn.org> reported that doc-base file has a typo. Fixed. + (closes: #103113) + * does not demand that LADSPA_PATH environmental variable to be set + (closes: #103271) + + -- Junichi Uekawa <dancer@debian.org> Tue, 3 Jul 2001 15:19:57 +0900 + +ladspa-sdk (1.0.LGPL-3) unstable; urgency=low + + * integrates ladspa-sdk-dev into ladspa-sdk since ladspa-sdk-dev is + really an unnecessary package. ladspa-sdk-dev is an empty package + depending on ladspa-sdk now. (closes: #98809) + * policy 3.5.5, finally making plugins a legal entity... + + -- Junichi Uekawa <dancer@debian.org> Fri, 8 Jun 2001 21:02:21 +0900 + +ladspa-sdk (1.0.LGPL-2) unstable; urgency=low + + * Adds more documentation, installs documentation properly to ladspa-sdk-dev, adds manpages. (closes: #97213) + * debian/rules: cleaned up the rules. + * debian/rules, debian/{listplugins.1,analyseplugin.1,applyplugin.1}: + Install debian version of manpages. + + -- Junichi Uekawa <dancer@debian.org> Mon, 14 May 2001 18:52:44 +0900 + +ladspa-sdk (1.0.LGPL-1) unstable; urgency=low + + * Initial Release. (closes: #90949) + + -- Junichi Uekawa <dancer@debian.org> Wed, 9 May 2001 20:20:08 +0900 + + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..5b06e18 --- /dev/null +++ b/debian/control @@ -0,0 +1,33 @@ +Source: ladspa-sdk +Section: sound +Priority: optional +Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org> +Build-Depends: + cdbs, + debhelper (>= 10) +Standards-Version: 3.9.8 +Uploaders: + Felipe Sateler <fsateler@debian.org>, + Jaromír Mikeš <mira.mikes@seznam.cz> +Vcs-Git: https://salsa.debian.org/multimedia-team/ladspa-sdk.git +Vcs-Browser: https://salsa.debian.org/multimedia-team/ladspa-sdk +Homepage: http://www.ladspa.org/ + +Package: ladspa-sdk +Architecture: any +Depends: + ${misc:Depends}, + ${shlibs:Depends} +Provides: + ladspa-host, + ladspa-plugin, + ladspa-sdk-dev +Conflicts: + ladspa-sdk-dev +Description: sample tools for linux-audio-dev plugin architecture + LADSPA is a free standard specification for audio effect plugins. + . + Contains sample plugins, and analyseplugin, listplugin, applyplugin + programs, and the ladspa.h, the LADSPA specification. + . + Please build-depend on this package if you need ladspa.h diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..3318458 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,39 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ladspa-sdk +Upstream-Contact: richard@muse.demon.co.uk +Source: http://www.ladspa.org +Copyright: 2000-2002 Richard W.E. Furse, Paul Barton-Davis and Stefan Westerfeld. + +Files: * +Copyright: + Richard W.E. Furse + Paul Barton-Davis + Stefan Westerfeld +License: LGPL-2.1+ + +Files: debian/* +Copyright: + 2001-2007 Junichi Uekawa <dancer@debian.org> + 2009-2013 Felipe Sateler <fsateler@debian.org> + 2013-2016 Jaromír Mikeš <mira.mikes@seznam.cz> +License: LGPL-2.1+ + +License: LGPL-2.1+ + This library is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published + by the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + . + This library is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser + General Public License for more details. + . + On Debian GNU systems, the complete text of the GNU Lesser General + Public License (LGPL) version 2.1 or later can be found in + '/usr/share/common-licenses/LGPL-2.1'. + . + You should have received a copy of the GNU Lesser General Public + License along with this program. If not, see + <http://www.gnu.org/licenses/>. + diff --git a/debian/doc-base b/debian/doc-base new file mode 100644 index 0000000..41c6bfd --- /dev/null +++ b/debian/doc-base @@ -0,0 +1,11 @@ +Document: ladspa-sdk +Title: LADSPA-SDK Manual +Author: Richard Furse +Abstract: This manual describes what LADSPA-SDK is + and how it can be used. +Section: Sound + +Format: HTML +Index: /usr/share/doc/ladspa-sdk/index.html +Files: /usr/share/doc/ladspa-sdk/*.html + diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..5022b99 --- /dev/null +++ b/debian/docs @@ -0,0 +1,10 @@ +README +doc/background.html +doc/download.html +doc/example_plugins.html +doc/index.html +doc/installation.html +doc/license.html +doc/overview.html +doc/shared_plugins.html +doc/unique_ids.html diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..5474c60 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,3 @@ +[DEFAULT] +pristine-tar = True +sign-tags = True diff --git a/debian/ladspa-sdk.links b/debian/ladspa-sdk.links new file mode 100644 index 0000000..9215769 --- /dev/null +++ b/debian/ladspa-sdk.links @@ -0,0 +1 @@ +/usr/include/ladspa.h /usr/share/doc/ladspa-sdk/ladspa.h.txt diff --git a/debian/ladspa-sdk.manpages b/debian/ladspa-sdk.manpages new file mode 100644 index 0000000..9810cbe --- /dev/null +++ b/debian/ladspa-sdk.manpages @@ -0,0 +1,3 @@ +debian/analyseplugin.1 +debian/applyplugin.1 +debian/listplugins.1 diff --git a/debian/listplugins.1 b/debian/listplugins.1 new file mode 100644 index 0000000..db91ce1 --- /dev/null +++ b/debian/listplugins.1 @@ -0,0 +1,32 @@ +.TH listplugins 1 "2001 May 14" "ladspa-sdk" "Debian GNU/Linux" +.SH "NAME" +listplugins \- list available LADSPA plugins +.SH "SYNOPSIS" +.BI "listplugins" +.SH "DESCRIPTION" +.B listplugins +gives out a brief list of information about all available LADSPA +plugins. +.SH "FILES" +.TP +.B "/usr/lib/ladspa/*.so" +LADSPA plugin files are installed here by default. +.SH "ENVIRONMENT" +.TP +.B "LADSPA_PATH" +should be set to something like +"/usr/local/lib/ladspa:/usr/lib/ladspa:" for plugins to be found at +all. +.PP +.SH "BUGS" +Requires environmental variable to work properly. +.SH "CONFORMING TO" +.B "LADSPA" +standard, by +.B "linux-audio-dev" +mailing list members. +.SH "AUTHOR" +ladspa-sdk was written by Richard Furse (richar@muse.demon.co.uk). +This manpage was written by Junichi Uekawa (dancer@debian.org). +.SH "SEE ALSO" +.BR "analyseplugin" "(1), " "applyplugin" "(1) " diff --git a/debian/patches/00_standard-makefile.patch b/debian/patches/00_standard-makefile.patch new file mode 100644 index 0000000..434a719 --- /dev/null +++ b/debian/patches/00_standard-makefile.patch @@ -0,0 +1,69 @@ +Allow overriding of build parameters via the standard make variables +Forwarded: Yes +--- a/src/makefile ++++ b/src/makefile +@@ -15,8 +15,9 @@ + + INCLUDES = -I. + LIBRARIES = -ldl -lm +-CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC +-CXXFLAGS = $(CFLAGS) ++MANDATORY = $(INCLUDES) -fPIC ++CFLAGS ?= -Wall -Werror -O3 ++CXXFLAGS ?= $(CFLAGS) + PLUGINS = ../plugins/amp.so \ + ../plugins/delay.so \ + ../plugins/filter.so \ +@@ -25,21 +26,25 @@ + PROGRAMS = ../bin/analyseplugin \ + ../bin/applyplugin \ + ../bin/listplugins +-CC = cc +-CPP = c++ ++CC ?= cc ++CXX ?= c++ ++ ++WITH_INIT = noise amp delay filter + + ############################################################################### + # + # RULES TO BUILD PLUGINS FROM C OR C++ CODE + # + ++$(patsubst %, ../plugins/%.so, $(WITH_INIT)) : NOSTART = -nostartfiles ++ + ../plugins/%.so: plugins/%.c ladspa.h +- $(CC) $(CFLAGS) -o plugins/$*.o -c plugins/$*.c +- $(LD) -o ../plugins/$*.so plugins/$*.o -shared ++ $(CC) $(MANDATORY) $(CPPFLAGS) $(CFLAGS) -o plugins/$*.o -c plugins/$*.c ++ $(CC) $(NOSTART) $(MANDATORY) -o ../plugins/$*.so plugins/$*.o -shared $(CFLAGS) $(LDFLAGS) $(LIBRARIES) + + ../plugins/%.so: plugins/%.cpp ladspa.h +- $(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp +- $(CPP) -o ../plugins/$*.so plugins/$*.o -shared ++ $(CXX) $(MANDATORY) $(CPPFLAGS) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp ++ $(CXX) $(MANDATORY) -o ../plugins/$*.so plugins/$*.o -shared $(CXXFLAGS) $(LDFLAGS) $(LIBRARIES) + + ############################################################################### + # +@@ -90,17 +95,17 @@ + # + + ../bin/applyplugin: applyplugin.o load.o default.o +- $(CC) $(CFLAGS) $(LIBRARIES) \ ++ $(CC) $(CFLAGS) $(LIBRARIES) $(LDFLAGS) \ + -o ../bin/applyplugin \ + applyplugin.o load.o default.o + + ../bin/analyseplugin: analyseplugin.o load.o default.o +- $(CC) $(CFLAGS) $(LIBRARIES) \ ++ $(CC) $(CFLAGS) $(LIBRARIES) $(LDFLAGS) \ + -o ../bin/analyseplugin \ + analyseplugin.o load.o default.o + + ../bin/listplugins: listplugins.o search.o +- $(CC) $(CFLAGS) $(LIBRARIES) \ ++ $(CC) $(CFLAGS) $(LIBRARIES) $(LDFLAGS) \ + -o ../bin/listplugins \ + listplugins.o search.o + diff --git a/debian/patches/01_no-mkdirhier.diff b/debian/patches/01_no-mkdirhier.diff new file mode 100644 index 0000000..6a86dbe --- /dev/null +++ b/debian/patches/01_no-mkdirhier.diff @@ -0,0 +1,17 @@ +Use mkdir -p instead of mkdirhier to avoid build-dep on xutils-dev +Forwarded: Yes +--- a/src/makefile ++++ b/src/makefile +@@ -64,9 +64,9 @@ + @echo Test complete. + + install: targets +- -mkdirhier $(INSTALL_PLUGINS_DIR) +- -mkdirhier $(INSTALL_INCLUDE_DIR) +- -mkdirhier $(INSTALL_BINARY_DIR) ++ -mkdir -p $(INSTALL_PLUGINS_DIR) ++ -mkdir -p $(INSTALL_INCLUDE_DIR) ++ -mkdir -p $(INSTALL_BINARY_DIR) + cp ../plugins/* $(INSTALL_PLUGINS_DIR) + cp ladspa.h $(INSTALL_INCLUDE_DIR) + cp ../bin/* $(INSTALL_BINARY_DIR) diff --git a/debian/patches/02_default-ladspa-path.diff b/debian/patches/02_default-ladspa-path.diff new file mode 100644 index 0000000..c7d5012 --- /dev/null +++ b/debian/patches/02_default-ladspa-path.diff @@ -0,0 +1,27 @@ +Use a default ladspa path instead of failing when LADSPA_PATH is undefined +Forwarded: Yes +--- a/src/load.c ++++ b/src/load.c +@@ -54,6 +54,8 @@ + to search. */ + + pcLADSPAPath = getenv("LADSPA_PATH"); ++ if (!pcLADSPAPath) ++ pcLADSPAPath = "/usr/lib/ladspa"; + + if (pcLADSPAPath) { + +--- a/src/search.c ++++ b/src/search.c +@@ -99,10 +99,10 @@ + + pcLADSPAPath = getenv("LADSPA_PATH"); + if (!pcLADSPAPath) { ++ pcLADSPAPath = "/usr/lib/ladspa/"; + fprintf(stderr, + "Warning: You do not have a LADSPA_PATH " + "environment variable set.\n"); +- return; + } + + pcStart = pcLADSPAPath; diff --git a/debian/patches/05_linking_order.diff b/debian/patches/05_linking_order.diff new file mode 100644 index 0000000..c1bea7e --- /dev/null +++ b/debian/patches/05_linking_order.diff @@ -0,0 +1,38 @@ +Description: Correct linking order to prevent FTBFS with GCC4.5 + binutils-gold. +Author: Alessio Treglia <quadrispro@ubuntu.com> +Forwarded: Yes +--- + src/makefile | 15 +++++++++------ + 1 file changed, 9 insertions(+), 6 deletions(-) + +--- a/src/makefile ++++ b/src/makefile +@@ -95,19 +95,22 @@ + # + + ../bin/applyplugin: applyplugin.o load.o default.o +- $(CC) $(CFLAGS) $(LIBRARIES) $(LDFLAGS) \ ++ $(CC) $(CFLAGS) \ + -o ../bin/applyplugin \ +- applyplugin.o load.o default.o ++ applyplugin.o load.o default.o \ ++ $(LIBRARIES) $(LDFLAGS) + + ../bin/analyseplugin: analyseplugin.o load.o default.o +- $(CC) $(CFLAGS) $(LIBRARIES) $(LDFLAGS) \ ++ $(CC) $(CFLAGS) \ + -o ../bin/analyseplugin \ +- analyseplugin.o load.o default.o ++ analyseplugin.o load.o default.o \ ++ $(LIBRARIES) $(LDFLAGS) + + ../bin/listplugins: listplugins.o search.o +- $(CC) $(CFLAGS) $(LIBRARIES) $(LDFLAGS) \ ++ $(CC) $(CFLAGS) \ + -o ../bin/listplugins \ +- listplugins.o search.o ++ listplugins.o search.o \ ++ $(LIBRARIES) $(LDFLAGS) + + ############################################################################### + # diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..9235cdb --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,4 @@ +00_standard-makefile.patch +01_no-mkdirhier.diff +02_default-ladspa-path.diff +05_linking_order.diff diff --git a/debian/pbuilder-test/01_listplugins b/debian/pbuilder-test/01_listplugins new file mode 100644 index 0000000..9e6de9b --- /dev/null +++ b/debian/pbuilder-test/01_listplugins @@ -0,0 +1,21 @@ +#!/bin/bash +# make sure listplugins works. + +diff -u <(listplugins 2>&1 | sort ) <( cat <<EOF + Mono Amplifier (1048/amp_mono) + Simple Delay Line (1043/delay_5s) + Simple High Pass Filter (1042/hpf) + Simple Low Pass Filter (1041/lpf) + Sine Oscillator (Freq:audio, Amp:audio) (1044/sine_faaa) + Sine Oscillator (Freq:audio, Amp:control) (1045/sine_faac) + Sine Oscillator (Freq:control, Amp:audio) (1046/sine_fcaa) + Sine Oscillator (Freq:control, Amp:control) (1047/sine_fcac) + Stereo Amplifier (1049/amp_stereo) + White Noise Source (1050/noise_white) +/usr/lib/ladspa/amp.so: +/usr/lib/ladspa/delay.so: +/usr/lib/ladspa/filter.so: +/usr/lib/ladspa/noise.so: +/usr/lib/ladspa/sine.so: +Warning: You do not have a LADSPA_PATH environment variable set. +) diff --git a/debian/pbuilder-test/02_ladspah b/debian/pbuilder-test/02_ladspah new file mode 100644 index 0000000..139cbbd --- /dev/null +++ b/debian/pbuilder-test/02_ladspah @@ -0,0 +1,5 @@ +#!/bin/bash +# test that ladspa.h works +set -e +gcc debian/pbuilder-test/02_ladspah.c -o /tmp/test.o +/tmp/test.o diff --git a/debian/pbuilder-test/02_ladspah.c b/debian/pbuilder-test/02_ladspah.c new file mode 100644 index 0000000..dd4171a --- /dev/null +++ b/debian/pbuilder-test/02_ladspah.c @@ -0,0 +1,10 @@ +/*BINFMTC: + */ +#include <stdio.h> +#include <ladspa.h> + +int main() +{ + printf("ladspa version %s\n", LADSPA_VERSION); + return 0; +} diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..0078081 --- /dev/null +++ b/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +include /usr/share/cdbs/1/class/makefile.mk +include /usr/share/cdbs/1/rules/debhelper.mk + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DEB_BUILDDIR = src +DEB_MAKE_BUILD_TARGET = targets +DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/ladspa-sdk \ + INSTALL_PLUGINS_DIR=$(CURDIR)/debian/ladspa-sdk/usr/lib/ladspa/ \ + INSTALL_INCLUDE_DIR=$(CURDIR)/debian/ladspa-sdk/usr/include/ \ + INSTALL_BINARY_DIR=$(CURDIR)/debian/ladspa-sdk/usr/bin/ + +pre-build:: +# git doesn't preserve empty dirs, this is for git-buildpackage + mkdir -p plugins + mkdir -p bin + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/local-options b/debian/source/local-options new file mode 100644 index 0000000..9cdfca9 --- /dev/null +++ b/debian/source/local-options @@ -0,0 +1,2 @@ +unapply-patches +abort-on-upstream-changes diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..f2450eb --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=3 + +http://www.ladspa.org/download/ \ + ladspa_sdk_(.*)\.tgz |