diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2002-08-12 11:56:43 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2002-08-12 11:56:43 +0000 |
commit | ea22e44ecf04616d25a4470f8de7e38bbdf19fb7 (patch) | |
tree | 60c85b441ba10093d3ef1e99ca5039fe2f31fad2 /x11 | |
parent | e7e6ab75160c7b990182a213e96c93171bcbbcd8 (diff) | |
download | pkgsrc-ea22e44ecf04616d25a4470f8de7e38bbdf19fb7.tar.gz |
on alpha use the gcc package on older systems to avoid a cc -O2 compiler
bug.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/neXtaw/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/x11/neXtaw/Makefile b/x11/neXtaw/Makefile index e0c4e5b727b..0104955ec32 100644 --- a/x11/neXtaw/Makefile +++ b/x11/neXtaw/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2002/08/02 20:10:47 jlam Exp $ +# $NetBSD: Makefile,v 1.2 2002/08/12 11:56:43 dmcmahill Exp $ DISTNAME= neXtaw-0.12 CATEGORIES= x11 @@ -7,8 +7,6 @@ MASTER_SITES= http://siag.nu/pub/neXtaw/ MAINTAINER= packages@netbsd.org COMMENT= NeXTstep-like widgets based on the Athena Widget set -.include "../../mk/bsd.prefs.mk" - USE_BUILDLINK_ONLY= # defined GNU_CONFIGURE= # defined @@ -18,6 +16,16 @@ LIBTOOL_OVERRIDE= ${WRKSRC}/libtool DOCDIR= ${PREFIX}/share/doc/${PKGBASE} EGDIR= ${PREFIX}/share/examples/${PKGBASE} +.include "../../mk/bsd.prefs.mk" + +.if !empty(MACHINE_PLATFORM:MNetBSD-*-alpha) +GCC_VERSION!= gcc --version +.if (${GCC_VERSION:C/-.*$$//} == egcs) +# "egcs" cannot be used, as this package tickles c++ compiler bugs +. include "../../lang/gcc/Makefile.gcc" +.endif +.endif + post-install: ${INSTALL_DATA_DIR} ${DOCDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR} @@ -30,8 +38,3 @@ post-install: .include "../../mk/x11.buildlink.mk" .include "../../mk/bsd.pkg.mk" - -# XXX On NetBSD/alpha 1.5.2, gcc has an optimization bug. -.if !empty(MACHINE_PLATFORM:MNetBSD-1.5.2-alpha) -CFLAGS+= -O0 -.endif |