package init
This commit is contained in:
parent
f43e47844f
commit
d1022f630e
40
ladspa-1.13-plugindir.patch
Normal file
40
ladspa-1.13-plugindir.patch
Normal file
@ -0,0 +1,40 @@
|
||||
From 1e46e694e393807d453f77dfe2c67fe0cba56398 Mon Sep 17 00:00:00 2001
|
||||
Date: Fri, 9 Oct 2020 15:16:41 +0800
|
||||
|
||||
---
|
||||
src/load.c | 2 ++
|
||||
src/search.c | 5 +----
|
||||
2 files changed, 3 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/load.c b/src/load.c
|
||||
index c2a5aa7..e221c10 100644
|
||||
--- a/src/load.c
|
||||
+++ b/src/load.c
|
||||
@@ -54,6 +54,8 @@ dlopenLADSPA(const char * pcFilename, int iFlag) {
|
||||
to search. */
|
||||
|
||||
pcLADSPAPath = getenv("LADSPA_PATH");
|
||||
+ if (! pcLADSPAPath)
|
||||
+ pcLADSPAPath = PLUGINDIR;
|
||||
|
||||
if (pcLADSPAPath) {
|
||||
|
||||
diff --git a/src/search.c b/src/search.c
|
||||
index 0006712..a6b2e78 100644
|
||||
--- a/src/search.c
|
||||
+++ b/src/search.c
|
||||
@@ -99,10 +99,7 @@ LADSPAPluginSearch(LADSPAPluginSearchCallbackFunction fCallbackFunction) {
|
||||
|
||||
pcLADSPAPath = getenv("LADSPA_PATH");
|
||||
if (!pcLADSPAPath) {
|
||||
- fprintf(stderr,
|
||||
- "Warning: You do not have a LADSPA_PATH "
|
||||
- "environment variable set.\n");
|
||||
- return;
|
||||
+ pcLADSPAPath = PLUGINDIR;
|
||||
}
|
||||
|
||||
pcStart = pcLADSPAPath;
|
||||
--
|
||||
2.23.0
|
||||
|
||||
54
ladspa.spec
Normal file
54
ladspa.spec
Normal file
@ -0,0 +1,54 @@
|
||||
Name: ladspa
|
||||
Version: 1.13
|
||||
Release: 22
|
||||
Summary: Linux Audio Developer's Simple Plugin API (LADSPA)
|
||||
License: LGPLv2+
|
||||
URL: http://www.ladspa.org/
|
||||
Source: http://www.ladspa.org/download/%{name}_sdk_%{version}.tgz
|
||||
Patch0001: ladspa-1.13-plugindir.patch
|
||||
BuildRequires: perl-interpreter gcc-c++
|
||||
|
||||
%description
|
||||
LADSPA is a standard that allows software audio processors and effects to
|
||||
be plugged into a wide range of audio synthesis and recording packages.
|
||||
|
||||
%package devel
|
||||
Summary: Linux Audio Developer's Simple Plug-in API
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Thie package contains develop files and ladspa.h header file.
|
||||
|
||||
%prep
|
||||
%autosetup -n ladspa_sdk -p1
|
||||
perl -pi -e 's/^(CFLAGS.*)-O3(.*)/$1\$\(RPM_OPT_FLAGS\)$2 -DPLUGINDIR=\$\(PLUGINDIR\)/' src/makefile
|
||||
perl -pi -e 's/-mkdirhier/-mkdir -p/' src/makefile
|
||||
cd doc|perl -pi -e "s!HREF=\"ladspa.h.txt\"!href=\"file:///usr/include/ladspa.h\"!" *.html
|
||||
|
||||
%build
|
||||
cd src
|
||||
%make_build PLUGINDIR=\\\"%{_libdir}/ladspa\\\" targets LD="ld --build-id"
|
||||
|
||||
%install
|
||||
cd src
|
||||
%make_install INSTALL_PLUGINS_DIR=$RPM_BUILD_ROOT%{_libdir}/ladspa \
|
||||
INSTALL_INCLUDE_DIR=$RPM_BUILD_ROOT%{_includedir} \
|
||||
INSTALL_BINARY_DIR=$RPM_BUILD_ROOT%{_bindir}
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/ladspa/rdf
|
||||
|
||||
%files
|
||||
%doc doc/COPYING
|
||||
%{_datadir}/ladspa
|
||||
%{_libdir}/ladspa/*.so
|
||||
%{_bindir}/analyseplugin
|
||||
%{_bindir}/applyplugin
|
||||
%{_bindir}/listplugins
|
||||
|
||||
%files devel
|
||||
%doc doc/*.html
|
||||
%{_includedir}/ladspa.h
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Nov 8 2019 Yiru Wang <wangyiru1@huawei.com> - 1.13-22
|
||||
- Pakcage init
|
||||
BIN
ladspa_sdk_1.13.tgz
Normal file
BIN
ladspa_sdk_1.13.tgz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user