updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / asciiportal / asciiportal.patch
blob60d40890baa0a26fed77f269004e45476db7ed37
1 --- ap_draw.cpp 2009-11-17 01:05:34.000000000 +0200
2 +++ ap_draw.cpp 2010-07-11 00:45:23.997080263 +0300
3 @@ -32,7 +32,7 @@
4 #include "asciiportal.h"
5 #ifndef __NOSDL__
6 #include "SDL/SDL.h"
7 -#include "sdl1/pdcsdl.h"
8 +#include "pdcsdl.h"
9 #endif
10 #include <curses.h>
11 #ifndef __NOSOUND__
12 diff -ruiN ../old//ap_input.cpp ./ap_input.cpp
13 --- ap_input.cpp 2009-11-19 13:02:54.000000000 +0200
14 +++ ap_input.cpp 2010-07-11 00:39:35.923427753 +0300
15 @@ -34,7 +34,7 @@
16 using namespace std;
17 #include "asciiportal.h"
18 #ifndef __NOSDL__
19 -#include "sdl1/pdcsdl.h"
20 +#include "pdcsdl.h"
21 #include "SDL/SDL.h"
22 #endif
23 #ifndef __NOSOUND__
24 --- ASCIIpOrtal-linux-Makefile.txt 2009-11-14 13:39:36.000000000 +0200
25 +++ ASCIIpOrtal-linux-Makefile.txt 2010-07-11 01:48:54.023319988 +0300
26 @@ -8,13 +8,13 @@
27 PACKAGENAME = asciiportal-linux64
28 WINDOWSZIP = asciiportal.zip
30 -GPPOPTS = -O2
31 +CXXFLAGS = -O2 `xcurses-config --cflags`
33 -all: asciiportal
34 +all: ASCIIpOrtal
36 clean:
37 rm -f *.o
38 - rm -f asciiportal
39 + rm -f ASCIIpOrtal
41 fullclean: clean
42 rm -rf $(PACKAGENAME)
43 @@ -34,19 +34,7 @@
44 tar cvfz $(PACKAGENAME).tar.gz $(PACKAGENAME)
46 %.o: %.cpp $(PDCSDLDIR)
47 - g++ -I $(PDCSDLDIR) -c $(GPPOPTS) $<
49 -asciiportal: al_input.o ap_draw.o ap_play.o ap_sound.o main.o menu.o $(PDCSDLDIR)/sdl1/libpdcurses.a
50 - g++ $^ -lSDL -lSDL_mixer -o $@
52 -$(PDCSDLDIR)/sdl1/libpdcurses.a: $(PDCSDLDIR)
53 - cd `dirname $@` && make
55 -$(PDCSDLDIR): PDCurses-$(PDCSVER).tar.gz
56 - tar xvfz $<
58 -PDCurses-$(PDCSVER).tar.gz:
59 - wget http://sourceforge.net/projects/pdcurses/files/pdcurses/$(PDCSVER)/PDCurses-$(PDCSVER).tar.gz/download
60 - if [[ ! -f $@ ]]; then echo "Download of $@ failed, please provide file."; exit; fi
62 + g++ -c $(GPPOPTS) $<
64 +ASCIIpOrtal: ap_input.o ap_draw.o ap_play.o ap_sound.o main.o menu.o
65 + g++ $^ -lSDL -lSDL_mixer /usr/lib/libpdcurses.a -o $@