aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/flwm
diff options
context:
space:
mode:
authorgj <gj@FreeBSD.org>2004-08-29 01:32:42 +0800
committergj <gj@FreeBSD.org>2004-08-29 01:32:42 +0800
commitc3e9a09943d348196a72e27322b05f9089179551 (patch)
treef5608a85e8ee516382122370c1d955fc007708c4 /x11-wm/flwm
parent9c75bdea1ef917f02e4fdc76c322d598c25c641f (diff)
downloadfreebsd-ports-gnome-c3e9a09943d348196a72e27322b05f9089179551.tar.gz
freebsd-ports-gnome-c3e9a09943d348196a72e27322b05f9089179551.tar.zst
freebsd-ports-gnome-c3e9a09943d348196a72e27322b05f9089179551.zip
Use ${LOCALBASE} instead of hard-coding /usr/local in Makefile. Also
consider that there are two versions of freetype in the ports tree. Bad /me, no cookie.
Diffstat (limited to 'x11-wm/flwm')
-rw-r--r--x11-wm/flwm/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/x11-wm/flwm/Makefile b/x11-wm/flwm/Makefile
index 12c222cca3e8..f47416b1af9c 100644
--- a/x11-wm/flwm/Makefile
+++ b/x11-wm/flwm/Makefile
@@ -25,6 +25,13 @@ GNU_CONFIGURE= yes
MAN1= flwm.1
PLIST_FILES= bin/flwm
-CONFIGURE_ARGS?=--includedir="-I/usr/local/include -I/usr/local/include/freetype2"
+.include <bsd.port.pre.mk>
-.include <bsd.port.mk>
+# could be a problem if both versions of freetype are installed
+.if exists(${LOCALBASE}/include/freetype1/freetype/freetype.h)
+CONFIGURE_ARGS= --includedir="-I${LOCALBASE}/include -I${LOCALBASE}/include/freetype1"
+.elif exists(${LOCALBASE}/include/freetype2/freetype/freetype.h)
+CONFIGURE_ARGS= --includedir="-I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2"
+.endif
+
+.include <bsd.port.post.mk>