summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2003-01-25 06:45:48 +0000
committerhubertf <hubertf@pkgsrc.org>2003-01-25 06:45:48 +0000
commitdc8bc2f162e17c3c6d8dd59a166e566c35041540 (patch)
tree2d5f1ad6f0b7975141ade94ae7198b1f655decb6 /graphics
parenta5da345ad68242faf45e6d03dd3918c59d1b1c58 (diff)
downloadpkgsrc-dc8bc2f162e17c3c6d8dd59a166e566c35041540.tar.gz
This pkg needs a newer gcc than what comes with NetBSD for 1.[543]*
Tested on 1.5.1/cobalt.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/ImageMagick/Makefile10
1 files 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)