support FreeBSD
authorMarkus Teich <markus.teich@stusta.mhn.de>
Tue, 15 Mar 2016 19:21:54 +0000 (20:21 +0100)
committerMarkus Teich <markus.teich@stusta.mhn.de>
Tue, 15 Mar 2016 19:21:54 +0000 (20:21 +0100)
On FreeBSD the lib and include directories are in /usr/local rather than /usr.

config.mk

index 52d5fb17d96a515078f99c24826a602266ed0266..6578ca8bfeee5fedf007188fb0fee41af32eb822 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -11,8 +11,8 @@ X11INC = /usr/X11R6/include
 X11LIB = /usr/X11R6/lib
 
 # includes and libs
-INCS = -I. -I/usr/include -I/usr/include/freetype2 -I${X11INC}
-LIBS = -L/usr/lib -lc -lm -L${X11LIB} -lXft -lfontconfig -lX11
+INCS = -I. -I/usr/{,local/}include -I/usr/{,local/}include/freetype2 -I${X11INC}
+LIBS = -L/usr/{,local/}lib -lc -lm -L${X11LIB} -lXft -lfontconfig -lX11
 
 # flags
 CPPFLAGS = -DVERSION=\"${VERSION}\" -D_XOPEN_SOURCE=600