freebsd-ports/games/cave9/files/patch-src-GNUmakefile

31 lines
778 B
Text
Raw Normal View History

--- 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 $@ $^