[packages/ladspa-autotalent] - added make patch (fixes build with -as-needed); release 2
qboosh
qboosh at pld-linux.org
Sun Jan 23 19:08:45 CET 2022
commit 252ed8236769e030023f3d44607e5dca612a570e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jan 23 19:09:46 2022 +0100
- added make patch (fixes build with -as-needed); release 2
ladspa-autotalent-make.patch | 23 +++++++++++++++++++++++
ladspa-autotalent.spec | 10 ++++++----
2 files changed, 29 insertions(+), 4 deletions(-)
---
diff --git a/ladspa-autotalent.spec b/ladspa-autotalent.spec
index f2e8ec4..d340858 100644
--- a/ladspa-autotalent.spec
+++ b/ladspa-autotalent.spec
@@ -2,11 +2,12 @@ Summary: Real-time pitch correction plugin for LADSPA
Summary(pl.UTF-8): Wtyczka LADSPA do korekcji wysokości dźwięków w czasie rzeczywistym
Name: ladspa-autotalent
Version: 0.2
-Release: 1
+Release: 2
License: GPL v2+
Group: Applications/Sound
Source0: http://tombaran.info/autotalent-%{version}.tar.gz
# Source0-md5: f59443efc6ce0f4b46be86933db33acd
+Patch0: %{name}-make.patch
URL: http://tombaran.info/autotalent.html
BuildRequires: ladspa-devel
Requires: ladspa-common
@@ -37,12 +38,13 @@ majorową a minorową lub zmiany stylu muzycznego.
%prep
%setup -q -n autotalent-%{version}
+%patch0 -p1
%build
+CFLAGS="%{rpmcflags} %{rpmcppflags}" \
+LDFLAGS="%{rpmldflags}" \
%{__make} \
- CC="%{__cc}" \
- CFLAGS="%{rpmcflags} -c -fPIC -DPIC" \
- LDFLAGS="%{rpmldflags} -nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt" \
+ CC="%{__cc}"
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/ladspa-autotalent-make.patch b/ladspa-autotalent-make.patch
new file mode 100644
index 0000000..0724537
--- /dev/null
+++ b/ladspa-autotalent-make.patch
@@ -0,0 +1,23 @@
+--- autotalent-0.2/Makefile.orig 2012-06-14 02:46:51.000000000 +0200
++++ autotalent-0.2/Makefile 2022-01-23 19:00:59.749713352 +0100
+@@ -33,8 +33,9 @@ INSTALL_PLUGINS_DIR = /usr/lib64/ladspa/
+ # GENERAL
+
+ CC = gcc
+-CFLAGS = -I. -O3 -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -c -fPIC -DPIC
+-LDFLAGS = -nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt
++CFLAGS += -I. -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -c -fPIC -DPIC
++LDFLAGS += -nostartfiles -shared -Wl,-Bsymbolic
++LIBS = -lm -lrt
+
+ PLUGINS = autotalent.so
+
+@@ -44,7 +45,7 @@ all: $(PLUGINS)
+
+ autotalent.so: autotalent.c ladspa.h
+ $(CC) $(CFLAGS) autotalent.c mayer_fft.c
+- $(CC) $(LDFLAGS) -o autotalent.so autotalent.o mayer_fft.o
++ $(CC) $(LDFLAGS) -o autotalent.so autotalent.o mayer_fft.o $(LIBS)
+
+ # OTHER TARGETS
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ladspa-autotalent.git/commitdiff/252ed8236769e030023f3d44607e5dca612a570e
More information about the pld-cvs-commit
mailing list