diff options
author | Gary Jennejohn <gj@FreeBSD.org> | 2004-08-28 17:32:42 +0000 |
---|---|---|
committer | Gary Jennejohn <gj@FreeBSD.org> | 2004-08-28 17:32:42 +0000 |
commit | 3ab306e89016061a76dcea01f8bf6eb2e99cdd65 (patch) | |
tree | b9408e3ac2e4e11c925fdf378525bb1e9285971f /x11-wm/flwm | |
parent | add slave port for Photo Image Print System for Linux --- (diff) |
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.
Notes
Notes:
svn path=/head/; revision=117510
Diffstat (limited to 'x11-wm/flwm')
-rw-r--r-- | x11-wm/flwm/Makefile | 11 |
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> |