diff options
author | David Seifert <soap@gentoo.org> | 2017-11-19 16:48:51 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-11-19 16:51:15 +0100 |
commit | acdce5c5b1e2dd043bca0e92c762e9142565922f (patch) | |
tree | 8b1a60f06d6f47b8032e5e4a9c802f8cded3a52e /games-action/battalion/files | |
parent | games-action/barrage: Remove old (diff) | |
download | gentoo-acdce5c5b1e2dd043bca0e92c762e9142565922f.tar.gz gentoo-acdce5c5b1e2dd043bca0e92c762e9142565922f.tar.bz2 gentoo-acdce5c5b1e2dd043bca0e92c762e9142565922f.zip |
games-action/battalion: Update to EAPI 6
* Remove games.eclass
* Respect user variables
Package-Manager: Portage-2.3.14, Repoman-2.3.6
Diffstat (limited to 'games-action/battalion/files')
-rw-r--r-- | games-action/battalion/files/battalion-1.4b-fix-build-system.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/games-action/battalion/files/battalion-1.4b-fix-build-system.patch b/games-action/battalion/files/battalion-1.4b-fix-build-system.patch new file mode 100644 index 000000000000..fe209e1db953 --- /dev/null +++ b/games-action/battalion/files/battalion-1.4b-fix-build-system.patch @@ -0,0 +1,55 @@ +--- a/Makefile ++++ b/Makefile +@@ -23,7 +23,6 @@ + # (the program should compile with no warning messages - if you + # see a warning message please let me know about it) + # ------------------------------------------------------------ +-CC = cc + + + # STEP 2: IF YOU WANT TO COMPILE WITH THE MESA LIBRARIES THEN +@@ -39,7 +38,8 @@ + # ------------------------------------------------------------ + #GLIB = -lMesaGL -lMesaGLU + # or +-GLIB = -lGL -lGLU ++GLIB_CFLAGS = `pkg-config --cflags gl` `pkg-config --cflags glu` ++GLIB_LIBS = `pkg-config --libs gl` `pkg-config --libs glu` + + + # STEP 4: CHOOSE WHICH HARDWARE / OS YOU ARE RUNNING +@@ -91,13 +91,11 @@ + + # STEP 7: CHOOSE ANY OPTIMIZATIONS OR ADD ANY SPECIAL INCLUSIONS + # ------------------------------------------------------------ +-CFLAGS = -O2 -I/usr/local/X11/include -I/usr/demo/SOUND/ -I./. $(AUDIODEF) $(OS) + + + # STEP 8: ADD ANY SPECIAL LIBRARY PATHS + # (USEFUL TO POINT TO WHERE THE MESA LIBRARIES RESIDE) + # ------------------------------------------------------------ +-LIBFLAGS = + + # you should now be able to type 'make' and everything should be fine ... + +@@ -106,15 +104,16 @@ + TARGET = battalion + + OBJ = battalion.o audio.o net.o gprim.o graphics.o objects.o text.o update.o tk.o font.o soundIt.o +-LIBS = -L./. -L/usr/X11R6/lib -lm -lX11 -lXext ++my_CPPFLAGS = -lm `pkg-config --cflags x11` `pkg-config --cflags xext` -I./. $(AUDIODEF) $(OS) ++my_LIBS = -lm `pkg-config --libs x11` `pkg-config --libs xext` + + all: $(TARGET) + +-#$(OBJ): $(?:.o=.c) +-# $(CC) $(CFLAGS) $(LIBFLAG) $(OS) $(WHICHLIB) $(AUDIOLIB) -c $? ++.c.o: ++ $(CC) $(CPPFLAGS) $(my_CPPFLAGS) $(CFLAGS) $(GLIB_CFLAGS) $(OS) $(WHICHLIB) $(AUDIOLIB) -c $< + + $(TARGET): $(OBJ) +- $(CC) -o $(TARGET) $(OBJ) $(LIBFLAGS) $(GLIB) $(LIBS) $(AUDIODEF) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(GLIB_LIBS) $(LIBS) $(my_LIBS) $(AUDIODEF) + + clean: + rm -f $(OBJ) |