Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=7cffa5583fa82edc89b16007617b675dfbc3315b
commit 7cffa5583fa82edc89b16007617b675dfbc3315b Author: kikadf <[email protected]> Date: Mon Nov 11 20:55:12 2013 +0100 ladspa_sdk-1.13-1-x86_64 * Change m8r * Version bump diff --git a/source/lib-extra/ladspa_sdk/FrugalBuild b/source/lib-extra/ladspa_sdk/FrugalBuild index 84aab69..398761c 100644 --- a/source/lib-extra/ladspa_sdk/FrugalBuild +++ b/source/lib-extra/ladspa_sdk/FrugalBuild @@ -1,37 +1,39 @@ # Compiling Time: 0 SBU -# Maintainer: crazy <[email protected]> +# Maintainer: kikadf <[email protected]> +# Contributor: crazy <[email protected]> + +options+=('asneeded') pkgname=ladspa_sdk -pkgver=1.12 -pkgrel=2 +pkgver=1.13 +pkgrel=1 pkgdesc="Linux Audio Developer's Simple Plugin API." url="http://www.ladspa.org/" -depends=('libstdc++' 'time') -## don't change that isn't updated since 2002 :| -up2date=$pkgver +depends=('libstdc++') +Fpkgversep="_" +up2date="Flasttar $url/download/" source=($url/download/${pkgname}_${pkgver}.tgz ladspa.sh makefile.patch \ - ladspa-sdk-1.12-gcc4.patch) + fix-memleak-in-plugin-scanning.patch) groups=('lib-extra') archs=('i686' 'x86_64') -sha1sums=('36a3a7a00f96281ca443dcae15d33f462398c4d4' \ +sha1sums=('2b69e28afb62c0d97943124f48ed82de796f83ed' \ '45283d51d293227ca40857991d39ad0a6296ab2f' \ - '2f7bc759e069040938ca728343bdc9a4c2d07b43' \ - '8587adb5149d2b895f1662bbd7ee4aa448254036') + '206117a0b48193f8d919fe75987d1bdc2017e35f' \ + '48947d30f0768b39663b7a79c0941e01e3bf5032') export LADSPA_PATH=/usr/lib/ladspa build () { - Fcd $pkgname Fpatchall - cd src + cd src || Fdie Fsed "-O3" "${CFLAGS}" makefile - make || return 1 - make DESTDIR=$Fdestdir install || return 1 - Fmkdir /usr/share/doc/${pkgname}_${pkgver} - cp -ra $Fsrcdir/$pkgname/doc/* $Fdestdir/usr/share/doc/${pkgname}_${pkgver} - Frm /usr/share/doc/${pkgname}_${pkgver}/*.txt + make || Fdie + Fmakeinstall + Fmkdir /usr/share/doc/${pkgname}-${pkgver} + cp -ra $Fsrcdir/$pkgname/doc/* $Fdestdir/usr/share/doc/${pkgname}-${pkgver} || Fdie + Frm /usr/share/doc/${pkgname}-${pkgver}/*.txt Fexe /etc/profile.d/ladspa.sh } diff --git a/source/lib-extra/ladspa_sdk/fix-memleak-in-plugin-scanning.patch b/source/lib-extra/ladspa_sdk/fix-memleak-in-plugin-scanning.patch new file mode 100644 index 0000000..45432b9 --- /dev/null +++ b/source/lib-extra/ladspa_sdk/fix-memleak-in-plugin-scanning.patch @@ -0,0 +1,12 @@ +diff -Naur ladspa_sdk/src/search.c ladspa_sdk.new/src/search.c +--- ladspa_sdk/src/search.c 2007-11-06 11:48:06.000000000 +0100 ++++ ladspa_sdk.new/src/search.c 2013-11-11 20:21:45.327295995 +0100 +@@ -83,6 +83,8 @@ + dlclose(pcFilename); + free(pcFilename); + } ++ } else { ++ free(pcFilename); + } + } + } diff --git a/source/lib-extra/ladspa_sdk/ladspa-sdk-1.12-gcc4.patch b/source/lib-extra/ladspa_sdk/ladspa-sdk-1.12-gcc4.patch deleted file mode 100644 index fa21be8..0000000 --- a/source/lib-extra/ladspa_sdk/ladspa-sdk-1.12-gcc4.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- ladspa_sdk/src/plugins/sine.cpp.orig 2002-07-06 17:23:17.000000000 -0000 -+++ ladspa_sdk/src/plugins/sine.cpp 2005-11-25 11:15:11.691087784 +0000 -@@ -59,6 +59,15 @@ - - /*****************************************************************************/ - -+LADSPA_Handle instantiateSineOscillator(const LADSPA_Descriptor *, unsigned long SampleRate); -+void connectPortToSineOscillator(LADSPA_Handle Instance, unsigned long Port, LADSPA_Data * DataLocation); -+void activateSineOscillator(void * pvHandle); -+void runSineOscillator_FreqAudio_AmpAudio(LADSPA_Handle Instance, unsigned long SampleCount); -+void runSineOscillator_FreqAudio_AmpCtrl(LADSPA_Handle Instance, unsigned long SampleCount); -+void runSineOscillator_FreqCtrl_AmpAudio(LADSPA_Handle Instance, unsigned long SampleCount); -+void runSineOscillator_FreqCtrl_AmpCtrl(LADSPA_Handle Instance, unsigned long SampleCount); -+void cleanupSineOscillator(void *pvHandle); -+ - class SineOscillator { - private: diff --git a/source/lib-extra/ladspa_sdk/makefile.patch b/source/lib-extra/ladspa_sdk/makefile.patch index e20e73e..5e886b9 100644 --- a/source/lib-extra/ladspa_sdk/makefile.patch +++ b/source/lib-extra/ladspa_sdk/makefile.patch @@ -1,14 +1,13 @@ -diff -Naur ladspa_sdk/src/makefile ladspa_sdk-patched/src/makefile ---- ladspa_sdk/src/makefile 2002-07-06 19:34:20.000000000 +0200 -+++ ladspa_sdk-patched/src/makefile 2006-03-02 14:50:14.000000000 +0100 -@@ -4,10 +4,10 @@ +diff -Naur ladspa_sdk/src/makefile ladspa_sdk.new/src/makefile +--- ladspa_sdk/src/makefile 2007-11-06 11:42:45.000000000 +0100 ++++ ladspa_sdk.new/src/makefile 2013-11-11 20:17:42.193306220 +0100 +@@ -4,9 +4,10 @@ # - # 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/ + # Change these if you want to install somewhere else. + +-INSTALL_PLUGINS_DIR = /usr/lib/ladspa/ -INSTALL_INCLUDE_DIR = /usr/include/ --INSTALL_BINARY_DIR = /usr/local/bin/ +-INSTALL_BINARY_DIR = /usr/bin/ +DESTDIR = +INSTALL_PLUGINS_DIR = ${DESTDIR}/usr/lib/ladspa/ +INSTALL_INCLUDE_DIR = ${DESTDIR}/usr/include/ @@ -16,20 +15,25 @@ diff -Naur ladspa_sdk/src/makefile ladspa_sdk-patched/src/makefile ############################################################################### # -@@ -51,15 +51,13 @@ +@@ -50,18 +51,16 @@ @echo --------------------------------------------- @echo First listen to the white noise input signal: @echo --------------------------------------------- -- play ../snd/noise.wav +- -sndfile-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 +- -sndfile-play /tmp/test.wav + @echo Test complete. install: targets -- -mkdirhier $(INSTALL_PLUGINS_DIR) \ -+ mkdir -p $(INSTALL_PLUGINS_DIR) \ - $(INSTALL_INCLUDE_DIR) \ - $(INSTALL_BINARY_DIR) +- -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) _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
