freebsd-ports/games/q2pro/files/patch-build__pre.mk
Alejandro Pulver bbb2eaea9a - Update to SVN revision 142.
- Add '-fPIC' compiler flag to a source file that is shared between both
  executables and libraries [1].

Reported by:	pointyhat [1]
2007-02-05 02:51:49 +00:00

17 lines
558 B
Makefile

--- build/pre.mk.orig Sun Feb 4 16:13:21 2007
+++ build/pre.mk Sun Feb 4 16:27:54 2007
@@ -48,10 +48,10 @@
ASMFILES_WIN32=#blank
VPATH_WIN32=$(RCDIR)
-DATADIR?=/usr/share/games/quake2
-LIBDIR?=/usr/lib/games/quake2
-CFLAGS_LINUX=-DDATADIR='"$(DATADIR)"' -DLIBDIR='"$(LIBDIR)"'
-LDFLAGS_LINUX=#blank
+DATADIR?=$(Q2DIR)
+LIBDIR?=$(PREFIX)/lib/q2pro
+CFLAGS_LINUX=-I$(LOCALBASE)/include -I$(X11BASE)/include -DDATADIR='"$(DATADIR)"' -DLIBDIR='"$(LIBDIR)"'
+LDFLAGS_LINUX=-L$(LOCALBASE)/lib -L$(X11BASE)/lib
SRCFILES_LINUX=#blank
ASMFILES_LINUX=#blank