summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-04-17 17:52:01 +0000
committerjoerg <joerg@pkgsrc.org>2012-04-17 17:52:01 +0000
commitf26d7a788d73cba2c7ef82bb44b3cc35ccbfc782 (patch)
treeb581a464e18afc144dbe54d829c21982d31a8606 /x11
parent183b8b003260699bea3c17376b743f8de84e4564 (diff)
downloadpkgsrc-f26d7a788d73cba2c7ef82bb44b3cc35ccbfc782.tar.gz
Use ucpp for clang.
Diffstat (limited to 'x11')
-rw-r--r--x11/modular-xorg-server/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/x11/modular-xorg-server/Makefile b/x11/modular-xorg-server/Makefile
index 0e93d576528..fa69656c496 100644
--- a/x11/modular-xorg-server/Makefile
+++ b/x11/modular-xorg-server/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.67 2012/03/13 14:13:52 fhajny Exp $
+# $NetBSD: Makefile,v 1.68 2012/04/17 17:52:01 joerg Exp $
#
DISTNAME= xorg-server-1.6.5
@@ -121,7 +121,10 @@ BUILDLINK_API_DEPENDS.xf86dgaproto+= xf86dgaproto>=2.0.3
BUILDLINK_API_DEPENDS.xf86driproto+= xf86driproto>=2.0.4
.include "../../mk/compiler.mk"
-.if empty(PKGSRC_COMPILER:Mgcc)
+.if !empty(PKGSRC_COMPILER:Mclang)
+BUILD_DEPENDS+= ucpp-[0-9]*:../../devel/ucpp
+CONFIGURE_ENV+= ac_cv_path_RAWCPP="${PREFIX}/bin/ucpp -t -c90 -Uunix"
+.elif empty(PKGSRC_COMPILER:Mgcc)
CONFIGURE_ENV+= ac_cv_path_RAWCPP="cc -E -Uunix -"
.endif