pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/xinit Use ucpp for clang



details:   https://anonhg.NetBSD.org/pkgsrc/rev/050138f08e67
branches:  trunk
changeset: 602675:050138f08e67
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Apr 17 17:52:29 2012 +0000

description:
Use ucpp for clang

diffstat:

 x11/xinit/Makefile |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 797e85f743de -r 050138f08e67 x11/xinit/Makefile
--- a/x11/xinit/Makefile        Tue Apr 17 17:52:01 2012 +0000
+++ b/x11/xinit/Makefile        Tue Apr 17 17:52:29 2012 +0000
@@ -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 @@
 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
 



Home | Main Index | Thread Index | Old Index