forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
towbowl-tactics-0.5-gentoo.patch
42 lines (37 loc) · 1.69 KB
/
towbowl-tactics-0.5-gentoo.patch
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
36
37
38
39
40
41
42
diff -ru tbt.orig/config.xml tbt/config.xml
--- tbt.orig/config.xml 2003-02-01 15:14:56.000000000 -0500
+++ tbt/config.xml 2011-01-10 12:08:01.564649048 -0500
@@ -5,5 +5,5 @@
<screen_h>600</screen_h>
<sound_enabled>1</sound_enabled>
<video_enabled>1</video_enabled>
-<language>0</language>
+<language>1</language>
</config>
diff -ru tbt.orig/src/Makefile tbt/src/Makefile
--- tbt.orig/src/Makefile 2003-02-01 15:07:40.000000000 -0500
+++ tbt/src/Makefile 2011-01-10 12:07:29.075274834 -0500
@@ -1,24 +1,20 @@
TBTHOME = /usr/local/games/tbt
INCDIR = -I /usr/include/smpeg -I /usr/include/libxml2 -I /usr/include/SDL/
-CFLAGS = -O2 -g -fno-strength-reduce -Wall -W -DTBTHOME=\"$(TBTHOME)\"
-LFLAGS = -L. -lm -lSDL -lSDL_net -lSDL_image -lSDL_mixer -ldl -pthread -lxml2 -lsmpeg
-CC = g++
+CXXFLAGS += -DTBTHOME=\"$(TBTHOME)\"
+LIBS = -lm -lSDL -lSDL_net -lSDL_image -lSDL_mixer -ldl -pthread -lxml2 -lsmpeg
SOURCES = movies.cpp sounds.cpp SFont.cpp Ball.cpp CON_console.cpp CON_consolecommands.cpp CON_internal.cpp Config.cpp Console.cpp DT_drawtext.cpp DialogBox.cpp Dice.cpp Formation.cpp Main.cpp MoviePlayer.cpp NetClient.cpp NetServer.cpp Network.cpp Path.cpp Player.cpp ProgressBar.cpp Public.cpp Screen.cpp Shared.cpp SoundPlayer.cpp Square.cpp State.cpp Team.cpp Transformation.cpp Translator.cpp XmlParser.cpp dir_func.cpp
OBJS = $(patsubst %.c,%.o,$(SOURCES:%.cpp=%.o))
PRGM = tbt
.SUFFIXES: .cpp .c
-.c.o:
- $(CC) -c $< $(CFLAGS) $(INCDIR) -o $@
-
.cpp.o:
- $(CC) -c $< $(CFLAGS) $(INCDIR) -o $@
+ $(CXX) -c $< $(CXXFLAGS) $(INCDIR) -o $@
all: $(PRGM)
$(PRGM): $(OBJS)
- $(CC) $(OBJS) -o $(PRGM) $(LFLAGS)
+ $(CXX) $(OBJS) -o $(PRGM) $(LDFLAGS) $(LIBS)
clean:
-rm -f $(PRGM) *core *~ *.o