aboutsummaryrefslogtreecommitdiffstats
path: root/games/glbsp/files/patch-GUI.mak
blob: 0ca2a31b913fb8c6ed9e30af412523b6acf9d1a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

$FreeBSD$

--- GUI.mak.orig
+++ GUI.mak
@@ -8,14 +8,14 @@
 
 PROGNAME=glBSPX
 
-FLTK_CFLAGS=-I/usr/local/lib
+FLTK_CFLAGS=-I${X11BASE}/include
 FLTK_LIBS=-lfltk_images -lfltk -lX11 -lXext -lpng -ljpeg
 
-CC=gcc
-CXX=g++
-CFLAGS=-O2 -Wall -DGLBSP_GUI -DUNIX -DINLINE_G=inline $(FLTK_CFLAGS)
+CC?=gcc
+CXX?=g++
+CFLAGS+=-O2 -Wall -DGLBSP_GUI -DUNIX -DINLINE_G=inline $(FLTK_CFLAGS)
 CXXFLAGS=$(CFLAGS)
-LDFLAGS=-L/usr/X11R6/lib
+LDFLAGS=-L${X11BASE}/lib -L${LOCALBASE}/lib
 LIBS=-lm $(FLTK_LIBS)
 
 OBJS=$(SYSDIR)/main.o     \