summaryrefslogtreecommitdiff
path: root/x11/xf86-video-sis
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-04-17 17:52:53 +0000
committerjoerg <joerg@pkgsrc.org>2012-04-17 17:52:53 +0000
commite34a5a464399078d15c65168709de8736d08f08f (patch)
tree4a7900f3eda371eb968ba6ca4049db33a4378bb8 /x11/xf86-video-sis
parent668d04ab8327bb988318a312a0a4f53ebf0c0bed (diff)
downloadpkgsrc-e34a5a464399078d15c65168709de8736d08f08f.tar.gz
Use ucpp with clang.
Diffstat (limited to 'x11/xf86-video-sis')
-rw-r--r--x11/xf86-video-sis/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/x11/xf86-video-sis/Makefile b/x11/xf86-video-sis/Makefile
index bf23a9bf517..2b12976bfb0 100644
--- a/x11/xf86-video-sis/Makefile
+++ b/x11/xf86-video-sis/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2010/09/14 11:03:16 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2012/04/17 17:52:53 joerg Exp $
#
DISTNAME= xf86-video-sis-0.10.2
@@ -20,7 +20,10 @@ GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config
.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