aboutsummaryrefslogtreecommitdiffstats
path: root/games/triplane/files/patch-Makefile
diff options
context:
space:
mode:
authormartymac <martymac@FreeBSD.org>2011-01-17 16:04:48 +0800
committermartymac <martymac@FreeBSD.org>2011-01-17 16:04:48 +0800
commitfb9d26a157d01981572538cd096f7ea178196390 (patch)
tree62e6eb1b879f950ab63c0851f116a8579e2b2632 /games/triplane/files/patch-Makefile
parent0c4658c5d1a02f679a12cf351041c269fa61e70f (diff)
downloadfreebsd-ports-gnome-fb9d26a157d01981572538cd096f7ea178196390.tar.gz
freebsd-ports-gnome-fb9d26a157d01981572538cd096f7ea178196390.tar.zst
freebsd-ports-gnome-fb9d26a157d01981572538cd096f7ea178196390.zip
Add games/triplane, a side-scrolling dogfighting game.
Approved by: ehaupt (mentor) Feature safe: yes
Diffstat (limited to 'games/triplane/files/patch-Makefile')
-rw-r--r--games/triplane/files/patch-Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/games/triplane/files/patch-Makefile b/games/triplane/files/patch-Makefile
new file mode 100644
index 000000000000..5f6b308b3746
--- /dev/null
+++ b/games/triplane/files/patch-Makefile
@@ -0,0 +1,36 @@
+--- Makefile.orig 2011-01-14 15:46:08.000000000 +0000
++++ Makefile 2011-01-14 15:49:40.248413763 +0000
+@@ -1,11 +1,11 @@
+-PREFIX = /usr/local
+-DESTDIR = ""
+-
+-CXX = g++
+-OPTIFLAG = -O2 -g
+-CFLAGS := -Wall -Isrc $(OPTIFLAG) $(CFLAGS_NOSDL) `sdl-config --cflags` -DHAVE_SDL_MIXER "-DTRIPLANE_DATA=\"$(PREFIX)/share/games/triplane-classic\""
+-LDFLAGS =
+-LIBS := `sdl-config --libs` -lSDL_mixer -lm
++PREFIX ?= /usr/local
++DESTDIR ?= ""
++SDL_CONFIG ?= sdl-config
++
++CXX ?= g++
++#OPTIFLAG = -O2 -g
++CFLAGS += -Wall -Isrc $(OPTIFLAG) $(CFLAGS_NOSDL) `$(SDL_CONFIG) --cflags` -DHAVE_SDL_MIXER
++LIBS := `$(SDL_CONFIG) --libs` -lSDL_mixer -lm
+
+ COMMON_OBJS = src/gfx/bitmap.o src/gfx/font.o \
+ src/gfx/gfx.o src/util/wutil.o src/util/random.o \
+@@ -72,10 +72,9 @@
+ $(CXX) -o tools/dksbuild -g src/tools/dksbuild/dksbuild.cc
+
+ install:
+- mkdir -p $(DESTDIR)$(PREFIX)/games
+- install triplane-classic $(DESTDIR)$(PREFIX)/games/triplane-classic
+- mkdir -p $(DESTDIR)$(PREFIX)/share/games/triplane-classic
+- install -m 644 fokker.dks $(DESTDIR)$(PREFIX)/share/games/triplane-classic/fokker.dks
++ $(BSD_INSTALL_PROGRAM) triplane-classic $(DESTDIR)$(PREFIX)/bin/triplane
++ mkdir -p $(DESTDIR)$(DATADIR)
++ $(BSD_INSTALL_DATA) fokker.dks $(DESTDIR)$(DATADIR)/fokker.dks
+ test:
+ if [ ! -d triplane-testsuite ]; then echo Please darcs get http://iki.fi/lindi/darcs/triplane-testsuite; false; fi
+ bash tools/run-all-tests tools/run-one-test ./triplane-classic triplane-testsuite