summaryrefslogtreecommitdiff
path: root/x11/libXt/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11/libXt/Makefile')
-rw-r--r--x11/libXt/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/x11/libXt/Makefile b/x11/libXt/Makefile
index 65d14acc791..3a63e07e3c4 100644
--- a/x11/libXt/Makefile
+++ b/x11/libXt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2010/09/10 19:01:46 joerg Exp $
+# $NetBSD: Makefile,v 1.15 2011/07/19 14:00:24 joerg Exp $
#
DISTNAME= libXt-1.0.8
@@ -35,7 +35,11 @@ MAKE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q} CPPFLAGS_FOR_BUILD=-I${PREFIX}/include
CPPFLAGS.OSF1+= -pthread # Required by compiler if including pthread.h
.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