1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/games/sdl-ball/files/patch-Makefile
Dmitry Marakasov 699f9e581e - Update to 1.01
- Install docs
2009-02-01 16:18:22 +00:00

28 lines
874 B
Plaintext

--- Makefile.orig 2008-12-31 00:42:35.000000000 +0000
+++ Makefile 2009-01-31 03:45:32.000000000 +0000
@@ -2,13 +2,12 @@
#append -DWITH_WIIUSE to compile with WIIUSE support!
#append -DNOSOUND to compile WITHOUT sound support
-CC=g++ -DDATADIR="\"$(DATADIR)\""
-CFLAGS+=-c -Wall `sdl-config --cflags`
+CFLAGS+=-Wall `${SDL_CONFIG} --cflags` -DDATADIR="\"$(DATADIR)\""
#append -lwiiuse to compile with WIIUSE support
#remove -lSDL_mixer if compiling with -DNOSOUND
-LIBS+=-lGL -lGLU `sdl-config --libs` -lSDL_image -lSDL_ttf -lSDL_mixer
+LIBS+=-lGL -lGLU `${SDL_CONFIG} --libs` -lSDL_image -lSDL_ttf -lSDL_mixer
SOURCES=main.cpp
OBJECTS=$(SOURCES:.cpp=.o)
@@ -18,7 +17,7 @@
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
- $(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
+ $(CC) $(CFLAGS) $(SOURCES) $(LIBS) -o $@
.cpp.o:
$(CC) $(CFLAGS) $< -o $@