aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-01-17 00:45:00 +0800
committereadler <eadler@FreeBSD.org>2012-01-17 00:45:00 +0800
commit4753447e03b651c687ee8699aab3d0f0492b5294 (patch)
tree38a39eaec67ea57afbcfd26938095c6b7df516c1 /x11
parentf4c0a9000c1f97bca4dcff133fc545296b96ce5f (diff)
downloadfreebsd-ports-gnome-4753447e03b651c687ee8699aab3d0f0492b5294.tar.gz
freebsd-ports-gnome-4753447e03b651c687ee8699aab3d0f0492b5294.tar.zst
freebsd-ports-gnome-4753447e03b651c687ee8699aab3d0f0492b5294.zip
Check for clang correctly
Diffstat (limited to 'x11')
-rw-r--r--x11/xorg-cf-files/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/x11/xorg-cf-files/Makefile b/x11/xorg-cf-files/Makefile
index a126070ddd6a..fdeae0346d8d 100644
--- a/x11/xorg-cf-files/Makefile
+++ b/x11/xorg-cf-files/Makefile
@@ -21,7 +21,7 @@ XORG_CAT= util
post-patch:
@${REINPLACE_CMD} 's|\(define ExtraXaw[^ ]*\) [$$].*|\1 /**/|' \
${WRKSRC}/X11.tmpl
-.if defined(CC) && ${CC} == "clang"
+.if defined(CC) && ${CC:T:M*clang*} == "clang"
${REINPLACE_CMD} -e 's|/usr/bin/cpp|${LOCALBASE}/bin/ucpp|' \
-e 's|-traditional|-s|' ${WRKSRC}/FreeBSD.cf
.endif