[SCM] autotalent/master: debian/patches/0001-buildsystem.patch

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Wed Oct 9 21:49:41 UTC 2013


The following commit has been merged in the master branch:
commit 17c0d5f2fbe7f57e30519beed9c84a2a32d29c51
Author: Alessio Treglia <alessio at debian.org>
Date:   Wed Oct 9 22:40:14 2013 +0100

    debian/patches/0001-buildsystem.patch
    
    - Improve upstream buildsystem to let it accept CFLAGS, CPPFLAGS and LDFLAGS set by the environment.

diff --git a/debian/patches/0001-buildsystem.patch b/debian/patches/0001-buildsystem.patch
new file mode 100644
index 0000000..e0fa9f0
--- /dev/null
+++ b/debian/patches/0001-buildsystem.patch
@@ -0,0 +1,29 @@
+Description: Accept CFLAGS, CPPFLAGS and LDFLAGS from the environment.
+Author: Alessio Treglia <alessio at debian.org>
+Forwarded: no
+---
+ Makefile |    6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+--- autotalent.orig/Makefile
++++ autotalent/Makefile
+@@ -33,8 +33,8 @@ 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. -O3 -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -c -fPIC -DPIC
++LDFLAGS		+=	-nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt
+ 
+ PLUGINS		=	autotalent.so
+ 
+@@ -43,7 +43,7 @@ all: $(PLUGINS)
+ # RULES TO BUILD PLUGINS FROM C CODE
+ 
+ autotalent.so: autotalent.c ladspa.h
+-	$(CC) $(CFLAGS) autotalent.c mayer_fft.c
++	$(CC) $(CFLAGS) $(CPPFLAGS) autotalent.c mayer_fft.c
+ 	$(CC) $(LDFLAGS) -o autotalent.so autotalent.o mayer_fft.o
+ 
+ # OTHER TARGETS
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b5c7eee
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-buildsystem.patch

-- 
autotalent packaging



More information about the pkg-multimedia-commits mailing list