summaryrefslogtreecommitdiff
path: root/x11/libX11
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2008-05-16 13:48:41 +0000
committertnn <tnn@pkgsrc.org>2008-05-16 13:48:41 +0000
commit1b128c264af24d1076f0cb4b65d3e1386f6068c1 (patch)
tree8e84570db5272a747c70fae70fe787ea4ce6e19c /x11/libX11
parent6cbf466300f74e7246703c063ee1a0914743e62c (diff)
downloadpkgsrc-1b128c264af24d1076f0cb4b65d3e1386f6068c1.tar.gz
Some of the X.org packages assume that the C preprocessor will use stdin
if no filename given, but this isn't true with the native HP compiler, so teach them to use '-' explicitly. XXX using cpp(1) to postprocess manpages is ugly, most of the other X.org packages seem to have been converted to use sed(1).
Diffstat (limited to 'x11/libX11')
-rw-r--r--x11/libX11/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/x11/libX11/Makefile b/x11/libX11/Makefile
index 503454adeb8..6cf2a2fa3c7 100644
--- a/x11/libX11/Makefile
+++ b/x11/libX11/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2008/04/24 07:45:49 joerg Exp $
+# $NetBSD: Makefile,v 1.12 2008/05/16 13:48:41 tnn Exp $
#
DISTNAME= libX11-1.1.4
@@ -34,6 +34,11 @@ CONFIGURE_ARGS+= --disable-malloc0returnsnull
MAKE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q} CPPFLAGS_FOR_BUILD=-I${PREFIX}/include
.endif
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mhp)
+CONFIGURE_ENV+= ac_cv_path_RAWCPP="cc -E -Uunix -"
+.endif
+
.include "../../x11/bigreqsproto/buildlink3.mk"
.include "../../x11/inputproto/buildlink3.mk"
.include "../../x11/kbproto/buildlink3.mk"