1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-05 11:35:01 +00:00
freebsd-ports/games/holotz-castle/files/patch-JLib-Makefile
Dmitry Marakasov af7af4c86a - Update to 1.3.9
- Unbreak (now works without problems)
- Split patch for convenience

PR:		126870
Submitted by:	me
Approved by:	"Pierre-Paul Lavoie" <ppl@idios.org> (maintainer)
2008-09-06 22:36:25 +00:00

32 lines
985 B
Plaintext

--- JLib/Makefile.orig 2008-08-23 22:36:06.000000000 +0400
+++ JLib/Makefile 2008-08-25 18:00:54.000000000 +0400
@@ -19,7 +19,7 @@
endif
# Define -D_JLIB_DEBUG to debug JLib. Compile the app to debug also with this flag
-CFLAGS=-I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `$(SDL_CONFIG) --cflags`
+CXXFLAGS+=-I. -fPIC -Wall -Wshadow `$(SDL_CONFIG) --cflags`
# Sample LDFLAGS for applications
# LDFLAGS=-L. -ffast-math -lSDL_image -lSDL_ttf -lSDL_mixer `$(SDL_CONFIG) --libs`
@@ -28,15 +28,15 @@
# JLib
libJLib: $(JLIB_OBJS)
- g++-4.1 -shared -L/usr/lib -fPIC -o $@.so $? \
+ $(CXX) -shared -fPIC -o $@.so $? \
&& ar rvus $@.a $? \
$(GRAPHICS)/%.o: $(GRAPHICS)/%.cpp
- g++-4.1 $(CFLAGS) -c -o $@ $<
+ $(CXX) ${CXXFLAGS} -c -o $@ $<
$(UTIL)/%.o: $(UTIL)/%.cpp
- g++-4.1 $(CFLAGS) -c -o $@ $<
+ $(CXX) ${CXXFLAGS} -c -o $@ $<
$(MATH)/%.o: $(MATH)/%.cpp
- g++-4.1 $(CFLAGS) -c -o $@ $<
+ $(CXX) ${CXXFLAGS} -c -o $@ $<
.PHONY: install
install: