updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / scavenger / sdlscav.makefile.patch
blobf8fc570d5baeaa52e560d420c38262cec0784621
1 --- Makefile.orig 2009-03-05 17:59:26.000000000 -0200
2 +++ Makefile 2009-03-05 18:00:49.000000000 -0200
3 @@ -1,12 +1,11 @@
4 CC = gcc
5 ###CFLAGS = -Wall -O2 -I/usr/local/include/SDL -I/usr/include/SDL -D_REENTRANT
6 CFLAGS = -O2 `sdl-config --cflags`
7 +DESTDIR =
9 sdlscav: scav.o gfx.o sound.o edit.o anim.o
10 ### gcc -o sdlscav scav.o gfx.o sound.o edit.o anim.o -lSDL -ldl -lpthread
11 gcc -o sdlscav scav.o gfx.o sound.o edit.o anim.o `sdl-config --libs`
12 - install -m 0755 -d $$HOME/.scavenger
13 - install -m 0644 data/*rc $$HOME/.scavenger
15 scav.o: scav.c scav.h names.h edit.h anim.h gfx.h sound.h
17 @@ -21,11 +20,11 @@
18 clean:
19 rm -f *.o sdlscav *~
20 install:
21 - install -m 0755 -d /usr/local/games/scavenger
22 - install -m 0755 -d /usr/local/bin
23 - install -m 0644 data/*.lbm /usr/local/games/scavenger/
24 - install -m 0644 data/*.raw /usr/local/games/scavenger/
25 - install -m 0644 data/*.scl /usr/local/games/scavenger/
26 - install -m 0755 sdlscav /usr/local/bin/
27 - install -m 0755 scavsaver /usr/local/bin/
28 + install -m 0755 -d $(DESTDIR)/usr/bin
29 + install -m 0755 sdlscav $(DESTDIR)/usr/bin
30 + install -m 0755 -d $(DESTDIR)/usr/share/scavenger/rc
31 + install -m 0644 data/*rc $(DESTDIR)/usr/share/scavenger/rc/
32 + install -m 0644 data/*.lbm $(DESTDIR)/usr/share/scavenger/
33 + install -m 0644 data/*.raw $(DESTDIR)/usr/share/scavenger/
34 + install -m 0644 data/*.scl $(DESTDIR)/usr/share/scavenger/