From 44b48a79c45694d54f7db5d598a9eddd3a31816f Mon Sep 17 00:00:00 2001 From: tnn Date: Fri, 16 May 2008 13:48:41 +0000 Subject: 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). --- x11/libX11/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'x11/libX11') 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" -- cgit v1.2.3