Package: tetraproc / 0.8.2-2

01-makefile.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Description: Remove suffix from libraries path, set $PREFIX to /usr.
 Set PREFIX to /usr/local if not set before.
 Strip -march native out of CPPFLAGS, add -g flag.
 Add -pthread linking flag, otherwise FTBFS.
Author: Alessio Treglia <alessio@debian.org>
Forwarded: no
---
 source/Makefile |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- tetraproc-0.8.2.orig/source/Makefile
+++ tetraproc-0.8.2/source/Makefile
@@ -18,14 +18,14 @@
 # ----------------------------------------------------------------------------
 
 
-PREFIX = /usr/local
+PREFIX ?= /usr/local
 SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
 SHARED = $(PREFIX)/share/tetraproc
 LIBDIR = lib$(SUFFIX)
 VERSION = 0.8.2
 DISTDIR = tetraproc-$(VERSION)
 CPPFLAGS += -O3 -Wall -MMD -MP -DVERSION=\"$(VERSION)\" -DSHARED=\"$(SHARED)\"
-CPPFLAGS += -march=native
+CPPFLAGS += -g
 
 
 all:	tetraproc tetrafile
@@ -36,7 +36,7 @@ hpfilt.o pmfilt.o textmat.o confwin.o ab
 kmeterdsp.o png2img.o
 
 tetraproc:	CPPFLAGS += -I/usr/X11R6/include `freetype-config --cflags`
-tetraproc:	LDLIBS += -lsndfile -lfftw3f -lclxclient -lclthreads -ljack -lpng -lXft -lX11 -lrt 
+tetraproc:	LDLIBS += -pthread -lsndfile -lfftw3f -lclxclient -lclthreads -ljack -lpng -lXft -lX11 -lrt
 tetraproc:	LDFLAGS += -L/usr/X11R6/lib
 tetraproc:	$(TETRAPROC_O)
 	g++ $(LDFLAGS) -o $@ $(TETRAPROC_O) $(LDLIBS)