updated on Thu Jan 12 20:00:29 UTC 2012
[aur-mirror.git] / tuxboy / Makefile.diff
blobe210a05f87587c7c239757ee6c5a055d75cbdfa7
1 --- Makefile.orig 2009-03-06 02:36:54.635304641 +0100
2 +++ Makefile 2009-03-06 02:36:44.275785346 +0100
3 @@ -3,10 +3,10 @@
4 PROG=tuxboy
5 ARCH=`uname -m`
6 PLATFORM=Linux
7 -DEST=../system/$(PLATFORM)_$(ARCH)/$(PROG)
8 +DEST=../tuxboy
10 -LFLAGS= `sdl-config --libs` -lSDL_image -lSDL_ttf #-lwiiuse
11 -CFLAGS= -c -g -O3 `sdl-config --cflags` -pedantic -std=c99 -Wall -Wextra \
12 +LFLAGS= `sdl-config --libs` -lSDL_image -lSDL_ttf -lwiiuse
13 +CFLAGS+= -c `sdl-config --cflags` -pedantic -std=c99 -Wall -Wextra \
14 -Wshadow -Wunknown-pragmas -Winline -Wdisabled-optimization \
15 -Wwrite-strings #-Wconversion #-Wunreachable-code
17 @@ -35,3 +35,12 @@
18 @strip --strip-all $(DEST)$(TYPE)
19 @upx-nrv -q --ultra-brute -9 $(DEST)$(TYPE)
21 +install: main
22 + install -Dm755 $(DEST) $(DESTDIR)/usr/bin/tuxboy
23 + install -Dm644 ../system/settings.txt $(DESTDIR)/etc/tuxboy/tuxboy.cfg
24 + install -Dm644 ../system/sans.ttf $(DESTDIR)/usr/share/tuxboy/system/sans.ttf
25 + mkdir -p $(DESTDIR)/usr/share/tuxboy/system/gfx
26 + install -m644 ../system/gfx/* $(DESTDIR)/usr/share/tuxboy/system/gfx/
27 + mkdir -p $(DESTDIR)/usr/share/tuxboy/roms
28 + mv -f $(DESTDIR)/usr/share/tuxboy/system/gfx/tuxboy.png $(DESTDIR)/usr/share/tuxboy/system/gfx/icon.png
29 + install -Dm644 ../system/gfx/tuxboy.png $(DESTDIR)/usr/share/pixmaps/tuxboy.png