forked from pool/ladspa
Accepting request 663176 from multimedia:libs
Update to version 1.15 OBS-URL: https://build.opensuse.org/request/show/663176 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ladspa?expand=0&rev=32
This commit is contained in:
commit
c8ed1b5963
@ -1,67 +0,0 @@
|
|||||||
From: Dave Plater <davejplater@gmail.com>
|
|
||||||
Date: 2007-11-06 12:48:06 +0200
|
|
||||||
Subject: Find plugins
|
|
||||||
References:
|
|
||||||
Upstream: email
|
|
||||||
|
|
||||||
Allow binary listplugins to find plugins without LADSPA_PATH set.
|
|
||||||
Index: src/search.c
|
|
||||||
===================================================================
|
|
||||||
--- src/search.c.orig 2007-11-06 12:48:06.000000000 +0200
|
|
||||||
+++ src/search.c 2017-11-04 09:00:29.169621959 +0200
|
|
||||||
@@ -23,7 +23,7 @@
|
|
||||||
/* Search just the one directory. */
|
|
||||||
static void
|
|
||||||
LADSPADirectoryPluginSearch
|
|
||||||
-(const char * pcDirectory,
|
|
||||||
+(const char * pcDirectory,
|
|
||||||
LADSPAPluginSearchCallbackFunction fCallbackFunction) {
|
|
||||||
|
|
||||||
char * pcFilename;
|
|
||||||
@@ -61,7 +61,7 @@ LADSPADirectoryPluginSearch
|
|
||||||
if (iNeedSlash)
|
|
||||||
strcat(pcFilename, "/");
|
|
||||||
strcat(pcFilename, psDirectoryEntry->d_name);
|
|
||||||
-
|
|
||||||
+
|
|
||||||
pvPluginHandle = dlopen(pcFilename, RTLD_LAZY);
|
|
||||||
if (pvPluginHandle) {
|
|
||||||
/* This is a file and the file is a shared library! */
|
|
||||||
@@ -89,7 +89,7 @@ LADSPADirectoryPluginSearch
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
|
||||||
|
|
||||||
-void
|
|
||||||
+void
|
|
||||||
LADSPAPluginSearch(LADSPAPluginSearchCallbackFunction fCallbackFunction) {
|
|
||||||
|
|
||||||
char * pcBuffer;
|
|
||||||
@@ -99,23 +99,24 @@ LADSPAPluginSearch(LADSPAPluginSearchCal
|
|
||||||
|
|
||||||
pcLADSPAPath = getenv("LADSPA_PATH");
|
|
||||||
if (!pcLADSPAPath) {
|
|
||||||
+ pcLADSPAPath = "/usr/local/lib/ladspa:/usr/lib/ladspa:/usr/local/lib64/ladspa:/usr/lib64/ladspa";
|
|
||||||
fprintf(stderr,
|
|
||||||
"Warning: You do not have a LADSPA_PATH "
|
|
||||||
"environment variable set.\n");
|
|
||||||
- return;
|
|
||||||
+ //return;
|
|
||||||
}
|
|
||||||
-
|
|
||||||
+
|
|
||||||
pcStart = pcLADSPAPath;
|
|
||||||
while (*pcStart != '\0') {
|
|
||||||
pcEnd = pcStart;
|
|
||||||
while (*pcEnd != ':' && *pcEnd != '\0')
|
|
||||||
pcEnd++;
|
|
||||||
-
|
|
||||||
+
|
|
||||||
pcBuffer = malloc(1 + pcEnd - pcStart);
|
|
||||||
if (pcEnd > pcStart)
|
|
||||||
strncpy(pcBuffer, pcStart, pcEnd - pcStart);
|
|
||||||
pcBuffer[pcEnd - pcStart] = '\0';
|
|
||||||
-
|
|
||||||
+
|
|
||||||
LADSPADirectoryPluginSearch(pcBuffer, fCallbackFunction);
|
|
||||||
free(pcBuffer);
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
|||||||
From: Dave Plater - davejplater@gmail.co.za
|
|
||||||
Date: 2017-11-04 10:48:22 +0200
|
|
||||||
Subject: Build position independent executables
|
|
||||||
References:
|
|
||||||
Upstream: email
|
|
||||||
|
|
||||||
Build position independent executables.
|
|
||||||
Index: src/makefile
|
|
||||||
===================================================================
|
|
||||||
--- src/makefile.orig 2017-11-04 10:51:34.635255160 +0200
|
|
||||||
+++ src/makefile 2017-11-04 11:08:08.154323693 +0200
|
|
||||||
@@ -14,14 +14,14 @@ INSTALL_BINARY_DIR = /usr/bin/
|
|
||||||
#
|
|
||||||
|
|
||||||
INCLUDES = -I.
|
|
||||||
-LIBRARIES = -ldl -lm
|
|
||||||
+LIBRARIES = -fPIE -pie -ldl -lm
|
|
||||||
CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC
|
|
||||||
CXXFLAGS = $(CFLAGS)
|
|
||||||
PLUGINS = ../plugins/amp.so \
|
|
||||||
../plugins/delay.so \
|
|
||||||
../plugins/filter.so \
|
|
||||||
../plugins/noise.so \
|
|
||||||
- ../plugins/sine.so
|
|
||||||
+ ../plugins/sine.so
|
|
||||||
PROGRAMS = ../bin/analyseplugin \
|
|
||||||
../bin/applyplugin \
|
|
||||||
../bin/listplugins
|
|
||||||
@@ -112,7 +112,7 @@ targets: $(PLUGINS) $(PROGRAMS)
|
|
||||||
# UTILITIES
|
|
||||||
#
|
|
||||||
|
|
||||||
-always:
|
|
||||||
+always:
|
|
||||||
|
|
||||||
clean:
|
|
||||||
-rm -f `find . -name "*.o"` ../bin/* ../plugins/*
|
|
@ -1,3 +1,35 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 6 13:37:27 UTC 2019 - davejplater@gmail.com
|
||||||
|
|
||||||
|
- Update to version 1.15 removed incorporated patch:
|
||||||
|
ladspa-ldcommand.patch and ladspa.diff
|
||||||
|
- Upstream changes:
|
||||||
|
*Perform macro string expansion in C code rather than in Makefile
|
||||||
|
for better portability.
|
||||||
|
*Modernise init()/fini() style in GNU C plugin builds (not C++),
|
||||||
|
tweak link line to correspond.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 5 10:53:13 UTC 2019 - davejplater@gmail.com
|
||||||
|
|
||||||
|
- Update to version 1.4 and remove incorporated patches:
|
||||||
|
ladspa-find-plugin-path.patch and ladspa-pie.patch
|
||||||
|
- Modified ladspa.dif, one hunk was incorporated.
|
||||||
|
- Added ladspa-ldcommand.patch to fix plugin linking.
|
||||||
|
- Upstream changes:
|
||||||
|
*Rename Makefile.
|
||||||
|
*Modernise C++ #include style.
|
||||||
|
*Make some globals static.
|
||||||
|
*Use mkdir -p rather than mkdirhier during build.
|
||||||
|
*Use GCC export map to ensure only the ladspa_descriptor()
|
||||||
|
is exported.
|
||||||
|
*Put libraries at the end of link instructions.
|
||||||
|
*Package with version number in archive and directory names.
|
||||||
|
*Tweaks to documentation processing.
|
||||||
|
*Fix bug in LADSPA plugin search which did not handle shared
|
||||||
|
libraries that are not plugins correctly.
|
||||||
|
*Introduce a default LADSPA plugin search path.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Nov 4 08:39:00 UTC 2017 - davejplater@gmail.com
|
Sat Nov 4 08:39:00 UTC 2017 - davejplater@gmail.com
|
||||||
|
|
||||||
|
129
ladspa.dif
129
ladspa.dif
@ -1,129 +0,0 @@
|
|||||||
---
|
|
||||||
src/makefile | 9 ++++++---
|
|
||||||
src/plugins/amp.c | 8 ++++----
|
|
||||||
src/plugins/delay.c | 8 ++++----
|
|
||||||
src/plugins/filter.c | 8 ++++----
|
|
||||||
src/plugins/noise.c | 8 ++++----
|
|
||||||
5 files changed, 22 insertions(+), 19 deletions(-)
|
|
||||||
|
|
||||||
--- a/src/makefile
|
|
||||||
+++ b/src/makefile
|
|
||||||
@@ -27,6 +27,9 @@ PROGRAMS = ../bin/analyseplugin \
|
|
||||||
../bin/listplugins
|
|
||||||
CC = cc
|
|
||||||
CPP = c++
|
|
||||||
+LD = cc
|
|
||||||
+MKDIRHIER = mkdir -p
|
|
||||||
+# MKDIRHIER = mkdirhier
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
#
|
|
||||||
@@ -59,9 +62,9 @@ test: /tmp/test.wav ../snd/noise.wav alw
|
|
||||||
@echo Test complete.
|
|
||||||
|
|
||||||
install: targets
|
|
||||||
- -mkdirhier $(INSTALL_PLUGINS_DIR)
|
|
||||||
- -mkdirhier $(INSTALL_INCLUDE_DIR)
|
|
||||||
- -mkdirhier $(INSTALL_BINARY_DIR)
|
|
||||||
+ -$(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)
|
|
||||||
--- a/src/plugins/amp.c
|
|
||||||
+++ b/src/plugins/amp.c
|
|
||||||
@@ -152,8 +152,8 @@ LADSPA_Descriptor * g_psStereoDescriptor
|
|
||||||
|
|
||||||
/* _init() is called automatically when the plugin library is first
|
|
||||||
loaded. */
|
|
||||||
-void
|
|
||||||
-_init() {
|
|
||||||
+static void __attribute__((constructor))
|
|
||||||
+init() {
|
|
||||||
|
|
||||||
char ** pcPortNames;
|
|
||||||
LADSPA_PortDescriptor * piPortDescriptors;
|
|
||||||
@@ -335,8 +335,8 @@ deleteDescriptor(LADSPA_Descriptor * psD
|
|
||||||
/*****************************************************************************/
|
|
||||||
|
|
||||||
/* _fini() is called automatically when the library is unloaded. */
|
|
||||||
-void
|
|
||||||
-_fini() {
|
|
||||||
+static void __attribute__ ((destructor))
|
|
||||||
+fini() {
|
|
||||||
deleteDescriptor(g_psMonoDescriptor);
|
|
||||||
deleteDescriptor(g_psStereoDescriptor);
|
|
||||||
}
|
|
||||||
--- a/src/plugins/delay.c
|
|
||||||
+++ b/src/plugins/delay.c
|
|
||||||
@@ -228,8 +228,8 @@ LADSPA_Descriptor * g_psDescriptor = NUL
|
|
||||||
|
|
||||||
/* _init() is called automatically when the plugin library is first
|
|
||||||
loaded. */
|
|
||||||
-void
|
|
||||||
-_init() {
|
|
||||||
+static void __attribute__ ((constructor))
|
|
||||||
+init() {
|
|
||||||
|
|
||||||
char ** pcPortNames;
|
|
||||||
LADSPA_PortDescriptor * piPortDescriptors;
|
|
||||||
@@ -322,8 +322,8 @@ _init() {
|
|
||||||
/*****************************************************************************/
|
|
||||||
|
|
||||||
/* _fini() is called automatically when the library is unloaded. */
|
|
||||||
-void
|
|
||||||
-_fini() {
|
|
||||||
+static void __attribute__ ((destructor))
|
|
||||||
+fini() {
|
|
||||||
long lIndex;
|
|
||||||
if (g_psDescriptor) {
|
|
||||||
free((char *)g_psDescriptor->Label);
|
|
||||||
--- a/src/plugins/filter.c
|
|
||||||
+++ b/src/plugins/filter.c
|
|
||||||
@@ -252,8 +252,8 @@ LADSPA_Descriptor * g_psHPFDescriptor =
|
|
||||||
|
|
||||||
/* _init() is called automatically when the plugin library is first
|
|
||||||
loaded. */
|
|
||||||
-void
|
|
||||||
-_init() {
|
|
||||||
+static void __attribute__ ((constructor))
|
|
||||||
+init() {
|
|
||||||
|
|
||||||
char ** pcPortNames;
|
|
||||||
LADSPA_PortDescriptor * piPortDescriptors;
|
|
||||||
@@ -431,8 +431,8 @@ deleteDescriptor(LADSPA_Descriptor * psD
|
|
||||||
/*****************************************************************************/
|
|
||||||
|
|
||||||
/* _fini() is called automatically when the library is unloaded. */
|
|
||||||
-void
|
|
||||||
-_fini() {
|
|
||||||
+static void __attribute__ ((destructor))
|
|
||||||
+fini() {
|
|
||||||
deleteDescriptor(g_psLPFDescriptor);
|
|
||||||
deleteDescriptor(g_psHPFDescriptor);
|
|
||||||
}
|
|
||||||
--- a/src/plugins/noise.c
|
|
||||||
+++ b/src/plugins/noise.c
|
|
||||||
@@ -142,8 +142,8 @@ LADSPA_Descriptor * g_psDescriptor;
|
|
||||||
|
|
||||||
/* _init() is called automatically when the plugin library is first
|
|
||||||
loaded. */
|
|
||||||
-void
|
|
||||||
-_init() {
|
|
||||||
+static void __attribute__ ((constructor))
|
|
||||||
+init() {
|
|
||||||
|
|
||||||
char ** pcPortNames;
|
|
||||||
LADSPA_PortDescriptor * piPortDescriptors;
|
|
||||||
@@ -219,8 +219,8 @@ _init() {
|
|
||||||
/*****************************************************************************/
|
|
||||||
|
|
||||||
/* _fini() is called automatically when the library is unloaded. */
|
|
||||||
-void
|
|
||||||
-_fini() {
|
|
||||||
+static void __attribute__ ((destructor))
|
|
||||||
+fini() {
|
|
||||||
long lIndex;
|
|
||||||
if (g_psDescriptor) {
|
|
||||||
free((char *)g_psDescriptor->Label);
|
|
26
ladspa.spec
26
ladspa.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ladspa
|
# spec file for package ladspa
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,19 +17,15 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: ladspa
|
Name: ladspa
|
||||||
Version: 1.13
|
Version: 1.15
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: The Linux Audio Developer's Simple Plug-In API
|
Summary: The Linux Audio Developer's Simple Plug-In API
|
||||||
License: LGPL-2.1+
|
License: LGPL-2.1-or-later
|
||||||
Group: Productivity/Multimedia/Sound/Utilities
|
Group: Productivity/Multimedia/Sound/Utilities
|
||||||
Url: http://www.ladspa.org/
|
Url: http://www.ladspa.org/
|
||||||
Source: http://www.ladspa.org/download/%{name}_sdk_%{version}.tgz
|
Source: http://www.ladspa.org/download/%{name}_sdk_%{version}.tgz
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
Patch0: ladspa.dif
|
|
||||||
Patch1: ladspa-find-plugin-path.patch
|
|
||||||
Patch2: ladspa-pie.patch
|
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
AutoReq: on
|
AutoReq: on
|
||||||
Autoprov: off
|
Autoprov: off
|
||||||
|
|
||||||
@ -41,25 +37,18 @@ dynamically. This package contains the plugins built from LADSPA SDK.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Include Files mandatory for Development
|
Summary: Include Files mandatory for Development
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
%if 0%{?suse_version} > 1110
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains include files to develop LADSPA plugins.
|
This package contains include files to develop LADSPA plugins.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n ladspa_sdk
|
%setup -q -n %{name}_sdk_%{version}
|
||||||
%patch0 -p1
|
%autopatch -p0
|
||||||
%patch1
|
|
||||||
%patch2
|
|
||||||
ln -s ../ladspa.h src/plugins/ladspa.h
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# This package failed when testing with -Wl,-as-needed being default.
|
export LADSPA_PATH="%{_libdir}/ladspa"
|
||||||
# So we disable it here, if you want to retest, just delete this comment and the line below.
|
make -C src CFLAGS="-I. %{optflags} -fPIC -ggdb -DDEFAULT_LADSPA_PATH=%{_libdir}/ladspa" targets
|
||||||
export SUSE_ASNEEDED=0
|
|
||||||
make -C src %{?_smp_mflags} CFLAGS="%{optflags} -fPIC -ggdb" targets
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make -C src \
|
make -C src \
|
||||||
@ -74,6 +63,7 @@ ln -sf %{_includedir}/ladspa.h %{buildroot}%{_docdir}/%{name}-devel/ladspa.h.txt
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README
|
%doc README
|
||||||
|
%license doc/COPYING
|
||||||
%{_libdir}/ladspa
|
%{_libdir}/ladspa
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:b5ed3f4f253a0f6c1b7a1f4b8cf62376ca9f51d999650dd822650c43852d306b
|
|
||||||
size 70540
|
|
3
ladspa_sdk_1.15.tgz
Normal file
3
ladspa_sdk_1.15.tgz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4229959b09d20c88c8c86f4aa76427843011705df22d9c28b38359fd1829fded
|
||||||
|
size 71179
|
Loading…
Reference in New Issue
Block a user