summaryrefslogtreecommitdiff
path: root/media-sound/gramofile/files/gramofile-1.6_p9-gentoo.patch
blob: 9fdbe1477233788fb04df728a743d0d87fb145ba (plain)
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
39
--- a/Makefile
+++ b/Makefile
@@ -14,15 +14,12 @@
 OBJS = $(SRCS:.c=.o)
 SHELL = /bin/sh
 
-CC = gcc
-LDFLAGS = 
-
 ########## CHOOSE YOUR ARCHITECTURE:    (NOTE: also see bplaysrc/Makefile!)
 
 # For Linux (and maybe others), use these:
-CFLAGS = -Wall -O2 -funroll-loops -DTURBO_MEDIAN -DTURBO_BUFFER
+CFLAGS += -Wall -DTURBO_MEDIAN -DTURBO_BUFFER
 DEPS = $(OBJS) makebplay
-LIBS = -lncurses -lrfftw -lfftw -lm
+LIBS = $(shell ${PKG_CONFIG} --libs ncurses) -lrfftw -lfftw -lm
 COPY_A = -a
 
 # For FreeBSD (and maybe others), use these:
--- a/bplaysrc/Makefile
+++ b/bplaysrc/Makefile
@@ -6,14 +6,11 @@
         ../clrscr.o ../secshms.o
 #SRCS = bplay.c sndfunc.o shmbuf.c
 
-CC = gcc
-LDFLAGS = 
-
 ########## CHOOSE YOUR ARCHITECTURE:    (NOTE: also see ../Makefile!)
 
 # For Linux (and maybe others), use these:
-CFLAGS = -Wall -O2 -DUSEBUFFLOCK -DLP2CD -DVUMETER # -DDEBUG
-LIBS = -lncurses
+CFLAGS += -Wall -DUSEBUFFLOCK -DLP2CD -DVUMETER # -DDEBUG
+LIBS = $(shell ${PKG_CONFIG} --libs ncurses)
 
 # For FreeBSD (and maybe others), use these:
 #CFLAGS = -Wall -O2 -DLP2CD -DVUMETER # -DDEBUG