aboutsummaryrefslogtreecommitdiff
path: root/games/excido
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2007-07-22 17:28:39 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2007-07-22 17:28:39 +0000
commitc494ef64acb73eb11e041e046b01c2eb6d8b2a19 (patch)
treef0be620c8eb60609e2a62e410e3f47b219057024 /games/excido
parent729706683f24479cdc09335619b6eca237052b37 (diff)
downloadports-c494ef64acb73eb11e041e046b01c2eb6d8b2a19.tar.gz
ports-c494ef64acb73eb11e041e046b01c2eb6d8b2a19.zip
- Fix building with GCC 4.x (use ${CXX} to build c++ files).
Notes
Notes: svn path=/head/; revision=196064
Diffstat (limited to 'games/excido')
-rw-r--r--games/excido/files/patch-Makefile24
1 files changed, 19 insertions, 5 deletions
diff --git a/games/excido/files/patch-Makefile b/games/excido/files/patch-Makefile
index 114ba0dfd42e..51314163ec82 100644
--- a/games/excido/files/patch-Makefile
+++ b/games/excido/files/patch-Makefile
@@ -1,10 +1,10 @@
--- Makefile.orig Thu Jul 29 14:17:13 2004
-+++ Makefile Mon Oct 24 17:19:43 2005
-@@ -1,10 +1,8 @@
++++ Makefile Sun Jul 22 14:27:56 2007
+@@ -1,10 +1,7 @@
-CC=g++
-CFLAGS=`sdl-config --cflags` #-g -Wall #-O2
-+CFLAGS += -I${X11BASE}/include `${SDL_CONFIG} --cflags`
- #CFLAGS=`sdl-config --cflags` -I./physfs#-g -Wall #-O2
+-#CFLAGS=`sdl-config --cflags` -I./physfs#-g -Wall #-O2
++CXXFLAGS += -I${X11BASE}/include `${SDL_CONFIG} --cflags`
OBJS := ${patsubst %.cpp, %.o, ${wildcard src/*.cpp}}
-LIBS = -s -Bstatic `sdl-config --static-libs` -lSDL_image -lSDL_ttf -L. -lphysfs -lopenal -Bdynamic -lGL -lGLU
+LIBS = -L${X11BASE}/lib `${SDL_CONFIG} --libs` -lSDL_image -lSDL_ttf -lphysfs -lopenal -lalut -lGL -lGLU
@@ -13,7 +13,21 @@
BINDIR=$(PREFIX)/bin/
DATADIR=$(PREFIX)/share/excido/
-@@ -28,9 +26,9 @@
+@@ -16,21 +13,21 @@
+
+
+ .cpp.o:
+- $(CC) $(CFLAGS) $(DEFINES) -o ${patsubst %.cpp, %.o, $<} -c $<
++ $(CXX) $(CXXFLAGS) $(DEFINES) -o ${patsubst %.cpp, %.o, $<} -c $<
+
+ all: $(TARGET)
+
+ $(TARGET): $(OBJS)
+- $(CC) $(CFLAGS) -o $(TARGET) $(LIBS) $(OBJS)
++ $(CXX) $(CXXFLAGS) -o $(TARGET) $(LIBS) $(OBJS)
+
+ clean:
+ rm -f $(OBJS) $(TARGET)
install:
[ -d $(BINDIR) ] || mkdir $(BINDIR)