aboutsummaryrefslogtreecommitdiffstats
path: root/audio/audacious-dumb/files/patch-Makefile
blob: da90b90183e3d60e3ad48ceaf79e7d115ac6703f (plain) (blame)
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
--- ./Makefile.orig Wed Feb 28 13:01:40 2007
+++ ./Makefile  Wed May 30 10:34:31 2007
@@ -7,7 +7,7 @@
 CC ?= gcc
 CFLAGS ?= -O2 -pipe
 
-CFLAGS += -Wall -fPIC -DPIC -I/usr/local/include
+CFLAGS += -Wall -fPIC -DPIC -I$(LOCALBASE)/include
 AUDACIOUSCFLAGS = $(shell pkg-config 'audacious >= 1.3' --cflags || echo "old")
 
 ifeq ($(AUDACIOUSCFLAGS),old)
@@ -16,6 +16,8 @@
 CFLAGS += $(AUDACIOUSCFLAGS)
 endif
 
+LDFLAGS+=  -fPIC -DPIC
+
 DUMBLIBS := -ldumb -L/usr/local/lib
 AUDACIOUSLIBS := $(shell pkg-config audacious --libs) 
 
@@ -24,13 +26,9 @@
 OBJECTS := $(SOURCES:%.c=$(OBJDIR)/%.o)
 
 all:   $(PLUGIN_FILE)
-   @echo
-   @echo "The plug-in has been compiled. Run one of the following:"
-   @echo "make install      - for global (root) installation to $(INSTALL_DIR)"
-   @echo "make install-home - for installation to home directory $(INSTALL_DIR_HOME)"
 
 $(PLUGIN_FILE): $(OBJECTS)
-   $(CC) -shared -o $@ $^ $(DUMBLIBS) $(AUDACIOUSLIBS)
+   $(CC) $(LDFLAGS) -shared -o $@ $^ $(DUMBLIBS) $(AUDACIOUSLIBS)
 
 $(OBJDIR)/%.o: %.c
    $(CC) -o $@ $(CFLAGS) -c $<