Browse Source

Configure include paths for FreeBSD

Frans Bergman 5 năm trước cách đây
mục cha
commit
153e19d66f
1 tập tin đã thay đổi với 11 bổ sung3 xóa
  1. 11 3
      config.mk

+ 11 - 3
config.mk

@@ -7,8 +7,16 @@ VERSION = 6.2
 PREFIX = /usr/local
 MANPREFIX = ${PREFIX}/share/man
 
-X11INC = /usr/X11R6/include
-X11LIB = /usr/X11R6/lib
+UNAME=$(shell uname)
+
+ifeq ($(UNAME),FreeBSD)
+	USR=/usr/local
+else
+	USR=/usr
+endif
+
+X11INC = ${USR}/include
+X11LIB = ${USR}/lib
 
 # Xinerama, comment if you don't want it
 XINERAMALIBS  = -lXinerama
@@ -16,7 +24,7 @@ XINERAMAFLAGS = -DXINERAMA
 
 # freetype
 FREETYPELIBS = -lfontconfig -lXft
-FREETYPEINC = /usr/include/freetype2
+FREETYPEINC = ${USR}/include/freetype2
 # OpenBSD (uncomment)
 #FREETYPEINC = ${X11INC}/freetype2