summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhubertf <hubertf>2003-01-25 06:45:48 +0000
committerhubertf <hubertf>2003-01-25 06:45:48 +0000
commitfb20e7cada4b55f878ea201d82688b674202b005 (patch)
tree2d5f1ad6f0b7975141ade94ae7198b1f655decb6
parent989138aa361bd659d950d847e02ad8e4cdb87343 (diff)
downloadpkgsrc-fb20e7cada4b55f878ea201d82688b674202b005.tar.gz
This pkg needs a newer gcc than what comes with NetBSD for 1.[543]*
Tested on 1.5.1/cobalt.
-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)