freebsd-ports/games/crashtest/files/patch-src-crashtest_Makefile
Dmitry Marakasov 8d98df4a37 - Avoid static linking with ode
PR:		231015
Submitted by:	yuri@freebsd.org
2019-02-21 20:52:58 +00:00

38 lines
953 B
Text

--- src-crashtest/Makefile.orig 2009-02-15 22:11:31 UTC
+++ src-crashtest/Makefile
@@ -1,8 +1,7 @@
# EDIT THESE SETTINGS
-PLIBPREFIX=/usr
-ODEPREFIX=/usr
-CXX=g++
+PLIBPREFIX=${LOCALBASE}
+ODEPREFIX=${LOCALBASE}
#PLIBPREFIX=$(HOME)
#ODEPREFIX=$(HOME)
@@ -10,19 +9,17 @@ CXX=g++
# END OF CUSTOM SETTINGS
-CXXFLAGS=\
- -I$(ODEPREFIX)/include \
+CXXFLAGS+=\
+ `pkg-config --cflags ode` \
-I$(PLIBPREFIX)/include \
- -I../src-common \
- -O2 -g -Wall
+ -I../src-common
LFLAGS=\
- -L$(PLIBPREFIX)/lib \
- -L/usr/X11R6/lib
+ -L$(PLIBPREFIX)/lib
OBJS=staticworldobject.o crashtest.o dynamicobject.o cartobject.o
-LIBS= $(ODEPREFIX)/lib/libode.a -lplibssgaux -lplibssg -lplibsg -lplibpu -lplibfnt -lplibul -lGLU -lGL `fltk-config --use-gl --use-images --ldflags`
+LIBS= `pkg-config --libs ode` -lplibssgaux -lplibssg -lplibsg -lplibpu -lplibfnt -lplibul -lGLU -lGL `fltk-config --use-gl --use-images --ldflags`
all: crashtest