plugin
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<PISI>
|
||||
<Name>multimedia.plugin</Name>
|
||||
</PISI>
|
||||
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/old-licenses/gpl-3.0.txt
|
||||
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
WorkDir = "ladspa_sdk/src"
|
||||
|
||||
def setup():
|
||||
pisitools.dosed("makefile", "-Werror", get.CFLAGS())
|
||||
|
||||
def build():
|
||||
autotools.make('CC="%s" \
|
||||
CXX="%s" \
|
||||
LD="%s" \
|
||||
targets' % (get.CC(), get.CXX(), get.LD()))
|
||||
|
||||
def install():
|
||||
autotools.install('INSTALL_PLUGINS_DIR="/usr/lib/ladspa" \
|
||||
MKDIR_P="mkdir -p" \
|
||||
DESTDIR="%s"' % get.installDIR())
|
||||
|
||||
shelltools.cd("..")
|
||||
pisitools.dohtml("doc/*.html")
|
||||
pisitools.dodoc("doc/COPYING","doc/ladspa.h.txt")
|
||||
@@ -0,0 +1 @@
|
||||
LADSPA_PATH=/usr/lib/ladspa
|
||||
@@ -0,0 +1,13 @@
|
||||
Index: makefile
|
||||
===================================================================
|
||||
--- makefile.orig
|
||||
+++ makefile
|
||||
@@ -38,7 +38,7 @@ MKDIR_P = mkdirhier
|
||||
|
||||
../plugins/%.so: plugins/%.c ladspa.h
|
||||
$(CC) $(CFLAGS) $(INCLUDES) -fPIC -o plugins/$*.o -c plugins/$*.c
|
||||
- $(LD) $(RAW_LDFLAGS) -o ../plugins/$*.so plugins/$*.o -shared
|
||||
+ $(LD) $(RAW_LDFLAGS) -o ../plugins/$*.so plugins/$*.o -shared -lm
|
||||
|
||||
../plugins/%.so: plugins/%.cpp ladspa.h
|
||||
$(CXX) $(CXXFLAGS) $(INCLUDES) -fPIC -o plugins/$*.o -c plugins/$*.cpp
|
||||
@@ -0,0 +1,17 @@
|
||||
--- plugins/sine.cpp
|
||||
+++ plugins/sine.cpp
|
||||
@@ -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:
|
||||
@@ -0,0 +1,18 @@
|
||||
diff -Nur ladspa_sdk-old/src/makefile ladspa_sdk/src/makefile
|
||||
--- ladspa_sdk-old/src/makefile 2009-04-25 01:57:34.000000000 +0300
|
||||
+++ ladspa_sdk/src/makefile 2009-04-25 01:58:09.000000000 +0300
|
||||
@@ -57,12 +57,12 @@
|
||||
@echo ---------------------------------------------
|
||||
@echo First listen to the white noise input signal:
|
||||
@echo ---------------------------------------------
|
||||
- -sndfile-play ../snd/noise.wav
|
||||
+ @echo Disabled -sndfile-play ../snd/noise.wav
|
||||
@echo -------------------------
|
||||
@echo Compare to plugin output.
|
||||
@echo -------------------------
|
||||
@echo Should be a noise band around 6000Hz, repeated quietly after 1s.
|
||||
- -sndfile-play /tmp/test.wav
|
||||
+ @echo Disabled -sndfile-play /tmp/test.wav
|
||||
@echo Test complete.
|
||||
|
||||
install: targets
|
||||
@@ -0,0 +1,91 @@
|
||||
diff -Nur ladspa_sdk-old/src/makefile ladspa_sdk/src/makefile
|
||||
--- ladspa_sdk-old/src/makefile 2008-04-04 20:13:49.000000000 +0300
|
||||
+++ ladspa_sdk/src/makefile 2008-04-04 20:14:03.000000000 +0300
|
||||
@@ -13,10 +13,12 @@
|
||||
# GENERAL
|
||||
#
|
||||
|
||||
+CFLAGS = -Wall -Werror -O3
|
||||
+CXXFLAGS = -Wall -Werror -O3
|
||||
+
|
||||
INCLUDES = -I.
|
||||
-LIBRARIES = -ldl -lm
|
||||
-CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC
|
||||
-CXXFLAGS = $(CFLAGS)
|
||||
+DYNAMIC_LD_LIBS = -ldl
|
||||
+LIBRARIES = $(DYNAMIC_LD_LIBS) -lm
|
||||
PLUGINS = ../plugins/amp.so \
|
||||
../plugins/delay.so \
|
||||
../plugins/filter.so \
|
||||
@@ -26,7 +28,8 @@
|
||||
../bin/applyplugin \
|
||||
../bin/listplugins
|
||||
CC = cc
|
||||
-CPP = c++
|
||||
+CXX = c++
|
||||
+MKDIR_P = mkdirhier
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
@@ -34,12 +37,12 @@
|
||||
#
|
||||
|
||||
../plugins/%.so: plugins/%.c ladspa.h
|
||||
- $(CC) $(CFLAGS) -o plugins/$*.o -c plugins/$*.c
|
||||
- $(LD) -o ../plugins/$*.so plugins/$*.o -shared
|
||||
+ $(CC) $(CFLAGS) $(INCLUDES) -fPIC -o plugins/$*.o -c plugins/$*.c
|
||||
+ $(LD) $(RAW_LDFLAGS) -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) $(INCLUDES) -fPIC -o plugins/$*.o -c plugins/$*.cpp
|
||||
+ $(CXX) $(LDFLAGS) -o ../plugins/$*.so plugins/$*.o -shared
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
@@ -59,12 +62,12 @@
|
||||
@echo Test complete.
|
||||
|
||||
install: targets
|
||||
- -mkdirhier $(INSTALL_PLUGINS_DIR)
|
||||
- -mkdirhier $(INSTALL_INCLUDE_DIR)
|
||||
- -mkdirhier $(INSTALL_BINARY_DIR)
|
||||
- cp ../plugins/* $(INSTALL_PLUGINS_DIR)
|
||||
- cp ladspa.h $(INSTALL_INCLUDE_DIR)
|
||||
- cp ../bin/* $(INSTALL_BINARY_DIR)
|
||||
+ -$(MKDIR_P) $(DESTDIR)$(INSTALL_PLUGINS_DIR)
|
||||
+ -$(MKDIR_P) $(DESTDIR)$(INSTALL_INCLUDE_DIR)
|
||||
+ -$(MKDIR_P) $(DESTDIR)$(INSTALL_BINARY_DIR)
|
||||
+ cp ../plugins/* $(DESTDIR)$(INSTALL_PLUGINS_DIR)
|
||||
+ cp ladspa.h $(DESTDIR)$(INSTALL_INCLUDE_DIR)
|
||||
+ cp ../bin/* $(DESTDIR)$(INSTALL_BINARY_DIR)
|
||||
|
||||
/tmp/test.wav: targets ../snd/noise.wav
|
||||
../bin/listplugins
|
||||
@@ -90,19 +93,19 @@
|
||||
#
|
||||
|
||||
../bin/applyplugin: applyplugin.o load.o default.o
|
||||
- $(CC) $(CFLAGS) $(LIBRARIES) \
|
||||
+ $(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) \
|
||||
-o ../bin/applyplugin \
|
||||
- applyplugin.o load.o default.o
|
||||
+ applyplugin.o load.o default.o $(LIBRARIES)
|
||||
|
||||
../bin/analyseplugin: analyseplugin.o load.o default.o
|
||||
- $(CC) $(CFLAGS) $(LIBRARIES) \
|
||||
+ $(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) \
|
||||
-o ../bin/analyseplugin \
|
||||
- analyseplugin.o load.o default.o
|
||||
+ analyseplugin.o load.o default.o $(LIBRARIES)
|
||||
|
||||
../bin/listplugins: listplugins.o search.o
|
||||
- $(CC) $(CFLAGS) $(LIBRARIES) \
|
||||
+ $(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) \
|
||||
-o ../bin/listplugins \
|
||||
- listplugins.o search.o
|
||||
+ listplugins.o search.o $(LIBRARIES)
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
@@ -0,0 +1,72 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>ladspa-sdk</Name>
|
||||
<Homepage>http://www.ladspa.org</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>LGPLv2.1</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>The Linux Audio Developer's Simple Plugin API</Summary>
|
||||
<Description>The Linux Audio Developer's Simple Plugin API (LADSPA) attempts to give programmers the ability to write simple `plugin' audio processors in C/C++ and link them dynamically against a range of host applications</Description>
|
||||
<Archive sha1sum="2b69e28afb62c0d97943124f48ed82de796f83ed" type="targz">http://pkgs.fedoraproject.org/repo/pkgs/ladspa/ladspa_sdk_1.13.tgz/671be3e1021d0722cadc7fb27054628e/ladspa_sdk_1.13.tgz</Archive>
|
||||
<Patches>
|
||||
<Patch>ladspa-sdk-1.12-gcc4.patch</Patch>
|
||||
<Patch level="2">properbuild.patch</Patch>
|
||||
<Patch>asneeded.patch</Patch>
|
||||
<Patch level="2">notests.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>ladspa-sdk</Name>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="config">/etc</Path>
|
||||
<Path fileType="doc">/usr/share/doc/ladspa-sdk</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/env.d/60ladspa">60ladspa</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>ladspa-sdk-devel</Name>
|
||||
<Summary>Development files for ladspa-sdk</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">ladspa-sdk</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="doc">/usr/share/doc/ladspa-sdk/html</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="3">
|
||||
<Date>2014-05-25</Date>
|
||||
<Version>1.13</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Alihan Öztürk</Name>
|
||||
<Email>alihan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2014-01-29</Date>
|
||||
<Version>1.13</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Stefan Gronewold(groni)</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2010-10-12</Date>
|
||||
<Version>1.13</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Pisi Linux Admins</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>ladspa-sdk</Name>
|
||||
<Summary xml:lang="tr">Ses geliştiricisinin temel eklenti kütüphanesi</Summary>
|
||||
<Description xml:lang="tr">ladspa, Linux üzerinde ses uygulamaları geliştiren programcıların temel ses işleme eklentileri geliştirmelerini ve bu eklentileri bir seri ses uygulaması ile birlikte kullanabilmelerini sağlar.</Description>
|
||||
<Description xml:lang="fr">La Linux Audio Developer's Simple Plugin API (LADSPA - L'API de plugin (greffon) simple pour développeurs linux audio) tente de donner aux programmeurs la possibilité d'écrire en C/C++ des processeurs audio simples sous forme de plugin' et les lier dynamiquement à différentes applications hôte.</Description>
|
||||
<Description xml:lang="es">El Linux Audio Developer's Simple Plugin API (LADSPA) intenta facilitar a programadores la tarea de escribir procesadores simples de audio en C/C++ y enlazarlos dinámicamente con una gama de aplicaciones host.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>ladspa-sdk-devel</Name>
|
||||
<Summary xml:lang="tr">ladspa-sdk için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/copyleft/gpl.txt
|
||||
|
||||
from pisi.actionsapi import cmaketools
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import pisitools
|
||||
|
||||
def setup():
|
||||
cmaketools.configure("-DCMAKE_BUILD_TYPE=release", installPrefix="/usr")
|
||||
|
||||
def build():
|
||||
cmaketools.make()
|
||||
|
||||
def install():
|
||||
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("*txt")
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libchromaprint</Name>
|
||||
<Homepage>http://acoustid.org/chromaprint</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>LGPLv2.1</License>
|
||||
<PartOf>multimedia.plugin</PartOf>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Chromaprint is the core component of the Acoustid project.</Summary>
|
||||
<Description>Chromaprint is the core component of the Acoustid project. It's a client-side library that implements a custom algorithm for extracting fingerprints from any audio source.</Description>
|
||||
<Archive sha1sum="113415ca22298c201721b43e006824c7865afc17" type="targz">https://bitbucket.org/acoustid/chromaprint/downloads/chromaprint-1.2.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>ffmpeg-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libchromaprint</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>ffmpeg</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="data">/usr/share</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libchromaprint-devel</Name>
|
||||
<summary>libchromaprint için geliştirme dosyaları</summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency releaseTo="current">libchromaprint</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="library">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="5">
|
||||
<Date>2014-12-18</Date>
|
||||
<Version>1.2</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>Osman Erkan</Name>
|
||||
<Email>osman.erkan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2014-05-25</Date>
|
||||
<Version>1.1</Version>
|
||||
<Comment>Rebuild.</Comment>
|
||||
<Name>Alihan Öztürk</Name>
|
||||
<Email>alihan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-11-25</Date>
|
||||
<Version>1.1</Version>
|
||||
<Comment>Version Bump</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-07-28</Date>
|
||||
<Version>0.7</Version>
|
||||
<Comment>Move pc files to devel pack, rebuild</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-12-17</Date>
|
||||
<Version>0.7</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libchromaprint</Name>
|
||||
<Summary xml:lang="en">Chromaprint is the core component of the Acoustid project.</Summary>
|
||||
<Description xml:lang="en">Chromaprint is the core component of the Acoustid project. It's a client-side library that implements a custom algorithm for extracting fingerprints from any audio source.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libchromaprint-devel</Name>
|
||||
<Summary xml:lang="tr">libchromaprint için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user