summaryrefslogtreecommitdiff
path: root/x11/libXt
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2011-07-19 13:59:45 +0000
committerjoerg <joerg@pkgsrc.org>2011-07-19 13:59:45 +0000
commit4d14310259842ab8ef4aec593be5c9032b88f263 (patch)
treef9d6f88b855890ffeaf388eac9d8bd6ff5ef8c75 /x11/libXt
parent2b495d977d4f855a105af6b45989042849d65877 (diff)
downloadpkgsrc-4d14310259842ab8ef4aec593be5c9032b88f263.tar.gz
When building with clang, pull in devel/ucpp for the man page
processing. XXX should be fixed upstream to use sed
Diffstat (limited to 'x11/libXt')
-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