diff options
author | tnn <tnn@pkgsrc.org> | 2008-05-16 13:48:41 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2008-05-16 13:48:41 +0000 |
commit | e8852f69f406dfda13f046322d4f1ab2afd3181a (patch) | |
tree | 8e84570db5272a747c70fae70fe787ea4ce6e19c | |
parent | 815967fdd60e4c9d999926e6ef91e9a4172c3f40 (diff) | |
download | pkgsrc-e8852f69f406dfda13f046322d4f1ab2afd3181a.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).
-rw-r--r-- | x11/libX11/Makefile | 7 | ||||
-rw-r--r-- | x11/libXext/Makefile | 7 | ||||
-rw-r--r-- | x11/libXt/Makefile | 7 | ||||
-rw-r--r-- | x11/xinit/Makefile | 7 |
4 files changed, 24 insertions, 4 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" diff --git a/x11/libXext/Makefile b/x11/libXext/Makefile index 0a4ddfcc7a7..c0aab80b851 100644 --- a/x11/libXext/Makefile +++ b/x11/libXext/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2008/03/02 14:44:47 bjs Exp $ +# $NetBSD: Makefile,v 1.6 2008/05/16 13:48:41 tnn Exp $ # DISTNAME= libXext-1.0.4 @@ -25,6 +25,11 @@ PKGCONFIG_OVERRIDE+= xext.pc.in CONFIGURE_ARGS+= --disable-malloc0returnsnull .endif +.include "../../mk/compiler.mk" +.if !empty(PKGSRC_COMPILER:Mhp) +CONFIGURE_ENV+= ac_cv_path_RAWCPP="cc -E -Uunix -" +.endif + .include "../../x11/libX11/buildlink3.mk" .include "../../x11/xextproto/buildlink3.mk" .include "../../x11/xproto/buildlink3.mk" diff --git a/x11/libXt/Makefile b/x11/libXt/Makefile index 3ba00d267d3..97332e6e284 100644 --- a/x11/libXt/Makefile +++ b/x11/libXt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2008/01/29 03:37:02 bjs Exp $ +# $NetBSD: Makefile,v 1.8 2008/05/16 13:48:41 tnn Exp $ # DISTNAME= libXt-1.0.5 @@ -32,6 +32,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/libSM/buildlink3.mk" .include "../../x11/libX11/buildlink3.mk" .include "../../x11/kbproto/buildlink3.mk" diff --git a/x11/xinit/Makefile b/x11/xinit/Makefile index eeb767ce0f8..a6f0c44e2fd 100644 --- a/x11/xinit/Makefile +++ b/x11/xinit/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2008/04/16 22:07:24 wiz Exp $ +# $NetBSD: Makefile,v 1.7 2008/05/16 13:48:41 tnn Exp $ # DISTNAME= xinit-1.0.8 @@ -15,6 +15,11 @@ PKG_DESTDIR_SUPPORT= user-destdir GNU_CONFIGURE= yes USE_TOOLS+= pkg-config xauth:run +.include "../../mk/compiler.mk" +.if !empty(PKGSRC_COMPILER:Mhp) +CONFIGURE_ENV+= ac_cv_path_RAWCPP="cc -E -Uunix -" +.endif + .include "../../x11/libX11/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |