summaryrefslogtreecommitdiff
path: root/audio/xmms-funtimedancer/patches/patch-aa
blob: cc6200bbaac4313b8d06e9b1b9835bbdd7fbf112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-aa,v 1.2 2009/07/08 15:02:15 joerg Exp $

--- Makefile.orig	2000-11-27 08:21:21.000000000 +0100
+++ Makefile
@@ -3,13 +3,13 @@ LIB=libfuntimedancer.so
 all: $(LIB)
 
 libfuntimedancer.so: FunTimeDancer.c FunTimeDancer.h
-	gcc -shared -lpthread -lglib -lSDL -fPIC -D_REENTRANT -o $(LIB) `glib-config --cflags` FunTimeDancer.c 
+	${CC} -DPREFIX=\"${PREFIX}\" -shared `xmms-config --cflags --libs` -lSDL -fPIC -D_REENTRANT -o $(LIB) `glib-config --cflags` FunTimeDancer.c 
 
 clean:
 	rm -f *.o $(LIB)
 
 install: $(LIB)
-	cp $(LIB) `xmms-config --visualization-plugin-dir`
+	cp $(LIB) ${DESTDIR}`xmms-config --visualization-plugin-dir`
 
 uninstall:
 	rm `xmms-config --visualization-plugin-dir`/$(LIB)