diff options
author | joerg <joerg@pkgsrc.org> | 2011-07-19 13:59:45 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2011-07-19 13:59:45 +0000 |
commit | 4d14310259842ab8ef4aec593be5c9032b88f263 (patch) | |
tree | f9d6f88b855890ffeaf388eac9d8bd6ff5ef8c75 /x11/libX11 | |
parent | 2b495d977d4f855a105af6b45989042849d65877 (diff) | |
download | pkgsrc-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/libX11')
-rw-r--r-- | x11/libX11/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/x11/libX11/Makefile b/x11/libX11/Makefile index e3c6e7dad9c..ee563618c49 100644 --- a/x11/libX11/Makefile +++ b/x11/libX11/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2010/09/10 20:28:03 joerg Exp $ +# $NetBSD: Makefile,v 1.25 2011/07/19 13:59:45 joerg Exp $ # DISTNAME= libX11-1.3.5 @@ -38,7 +38,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 |