freebsd-ports/games/cave9/files/patch-src-GNUmakefile
Dmitry Marakasov ad9fb2545e cave9 is a gravity cave-exploration game.
Use only two buttons to activate the thrust jets of your ship in
this first-person 3D version of the classic SF-Cave game.

WWW: http://code.google.com/p/cave9/
2008-09-23 19:17:21 +00:00

30 lines
778 B
Text

--- src/GNUmakefile.orig 2008-09-15 23:11:44.000000000 +0400
+++ src/GNUmakefile 2008-09-17 20:31:28.000000000 +0400
@@ -2,8 +2,8 @@
TARGET = ../cave9
-CFLAGS += -std=c99 -Wall -Werror -ggdb `sdl-config --cflags`
-LDFLAGS += `sdl-config --libs` -lm -L/usr/X11/lib -lGL -lGLU -lSDL_ttf -lSDL_image
+CFLAGS += -std=c99 -Wall -Werror `$(SDL_CONFIG) --cflags`
+LDFLAGS += `$(SDL_CONFIG) --libs` -lm -lGL -lGLU -lSDL_ttf -lSDL_image
ifdef GLOBAL_SCORE
CFLAGS += -DGLOBAL_SCORE
@@ -11,7 +11,6 @@
endif
# necessary when some SDL libs are on /usr/local, and others on /usr
-CFLAGS += -I/usr/local/include/SDL -I/usr/include/SDL
#{{{1 build rules
@@ -28,6 +27,8 @@
OBJS = $(subst .c,.o,$(SRCS))
+all: $(TARGET)
+
$(TARGET): $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^