From fb20e7cada4b55f878ea201d82688b674202b005 Mon Sep 17 00:00:00 2001 From: hubertf Date: Sat, 25 Jan 2003 06:45:48 +0000 Subject: This pkg needs a newer gcc than what comes with NetBSD for 1.[543]* Tested on 1.5.1/cobalt. --- graphics/ImageMagick/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/graphics/ImageMagick/Makefile b/graphics/ImageMagick/Makefile index 8cee8bf0f57..f9ee1139eed 100644 --- a/graphics/ImageMagick/Makefile +++ b/graphics/ImageMagick/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.90 2003/01/24 20:13:42 hubertf Exp $ +# $NetBSD: Makefile,v 1.91 2003/01/25 06:45:48 hubertf Exp $ DISTNAME= ImageMagick-${IM_MAJOR_VER}-${IM_MINOR_VER} PKGNAME= ImageMagick-${IM_MAJOR_VER}.${IM_MINOR_VER} @@ -30,10 +30,16 @@ WRKSRC= ${WRKDIR}/ImageMagick-${IM_MAJOR_VER} PLIST_SUBST+= IM_MAJOR_VER=${IM_MAJOR_VER} +.include "../../mk/bsd.prefs.mk" + # c++ broken as of 'gcc version 2.95.3 20010315 (release) (NetBSD nb1)' NOT_FOR_PLATFORM= NetBSD-*-sparc64 -.include "../../mk/bsd.prefs.mk" +# NetBSD 1.5's gcc is too old to compile this pkg +.if (${OPSYS} == "NetBSD") && !empty(OS_VERSION:M1.[345]*) +.include "../../lang/gcc/buildlink2.mk" +USE_PKGSRC_GCC= yes +.endif # Avoid compiler bug on "arm32" and "mipsel" (cobalt?) .if (${MACHINE_ARCH} == arm32) || (${MACHINE_ARCH} == mipsel) -- cgit v1.2.3