summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-04-17 17:52:29 +0000
committerjoerg <joerg@pkgsrc.org>2012-04-17 17:52:29 +0000
commit668d04ab8327bb988318a312a0a4f53ebf0c0bed (patch)
tree0c5b972a6a53c0149c8fe37f9f32f41f4578f865 /x11
parentf26d7a788d73cba2c7ef82bb44b3cc35ccbfc782 (diff)
downloadpkgsrc-668d04ab8327bb988318a312a0a4f53ebf0c0bed.tar.gz
Use ucpp for clang
Diffstat (limited to 'x11')
-rw-r--r--x11/xinit/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/x11/xinit/Makefile b/x11/xinit/Makefile
index 6e946cd4596..3d11d236bcf 100644
--- a/x11/xinit/Makefile
+++ b/x11/xinit/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2010/09/10 19:39:29 joerg Exp $
+# $NetBSD: Makefile,v 1.15 2012/04/17 17:52:29 joerg Exp $
#
DISTNAME= xinit-1.2.1
@@ -18,7 +18,10 @@ CONFIGURE_ARGS+= --with-xinit=${PREFIX}/bin/xinit
USE_TOOLS+= pkg-config xauth:run
.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