aboutsummaryrefslogtreecommitdiff
path: root/x11/xorg-cf-files/Makefile
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2011-12-02 16:20:10 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2011-12-02 16:20:10 +0000
commit56d8be2b8dd474c1db43b66586016e6d23fb75d4 (patch)
tree07cbe601fca0fe8601ee3f00aa0573c432d95e11 /x11/xorg-cf-files/Makefile
parent42ca1cf3d22a0283f6fd0e185ec2240be3917713 (diff)
downloadports-56d8be2b8dd474c1db43b66586016e6d23fb75d4.tar.gz
ports-56d8be2b8dd474c1db43b66586016e6d23fb75d4.zip
Notes
Diffstat (limited to 'x11/xorg-cf-files/Makefile')
-rw-r--r--x11/xorg-cf-files/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/x11/xorg-cf-files/Makefile b/x11/xorg-cf-files/Makefile
index deec23b39247..a126070ddd6a 100644
--- a/x11/xorg-cf-files/Makefile
+++ b/x11/xorg-cf-files/Makefile
@@ -16,8 +16,14 @@ LICENSE= MIT
XORG_CAT= util
+.include <bsd.port.pre.mk>
+
post-patch:
@${REINPLACE_CMD} 's|\(define ExtraXaw[^ ]*\) [$$].*|\1 /**/|' \
${WRKSRC}/X11.tmpl
+.if defined(CC) && ${CC} == "clang"
+ ${REINPLACE_CMD} -e 's|/usr/bin/cpp|${LOCALBASE}/bin/ucpp|' \
+ -e 's|-traditional|-s|' ${WRKSRC}/FreeBSD.cf
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>