Subject: pkg/4890: ImageMagick should be updated to 4.0
To: None <gnats-bugs@gnats.netbsd.org>
From: None <thatrack@da2.so-net.or.jp>
List: netbsd-bugs
Date: 01/25/1998 16:20:34
>Number:         4890
>Category:       pkg
>Synopsis:       ImageMagick should be updated to 4.0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 25 15:35:00 1998
>Last-Modified:
>Originator:     Hitoshi Osada
>Organization:
Hitoshi Osada	osada@meme.hokudai.ac.jp, thatrack@da2.so-net.or.jp
		WWW: http://ca.meme.hokudai.ac.jp/people/osada/
>Release:        NetBSD-1.3
>Environment:
System: NetBSD thatat 1.3 NetBSD 1.3 (THATAT) #3: Sat Jan 10 20:49:00 JST 1998 that@thatat:/usr/src/sys/arch/i386/compile/THATAT i386


>Description:
	ImageMagick in our packages is old. The current is 4.0.
>How-To-Repeat:
	...
>Fix:
apply the following patch.

diff -adurN /usr/pkgsrc/graphics/ImageMagick/Makefile ./Makefile
--- /usr/pkgsrc/graphics/ImageMagick/Makefile	Sat Jan 24 13:36:00 1998
+++ ./Makefile	Sun Jan 25 15:54:03 1998
@@ -1,12 +1,11 @@
+# $NetBSD: Makefile,v 1.2 1997/12/23 17:08:31 agc Exp $
 # New ports collection Makefile for: ImageMagick
-# Version required:	3.9.3
+# Version required:	4.0
 # Date created:         11th December 1997
 # Whom:                 tron
 #
-# $NetBSD: Makefile,v 1.3 1998/01/24 05:16:42 hubertf Exp $
-#
 
-DISTNAME=	ImageMagick-3.9.3
+DISTNAME=	ImageMagick-4.0
 CATEGORIES=	graphics
 MASTER_SITES=	ftp://ftp.wizards.dupont.com/pub/ImageMagick/ \
 		ftp://ftp.ms.mff.cuni.cz/MIRRORS/ftp.wizards.dupont.com/pub/ImageMagick/ \
@@ -14,17 +13,32 @@
 
 LIB_DEPENDS=    jpeg\\.7\\.:${PORTSDIR}/graphics/jpeg \
 		mpeg\\.1\\.2:${PORTSDIR}/graphics/mpeg-lib \
-		png\\.0\\.96:${PORTSDIR}/graphics/png \
+		png\\.0\\.:${PORTSDIR}/graphics/png \
 		tiff\\.3\\.4:${PORTSDIR}/graphics/tiff
 
 USE_IMAKE=	yes
-WRKSRC=		${WRKDIR}/ImageMagick
+USE_X11=	yes
+XMKMF=		$(MAKE_ENV) xmkmf -a
 MAKE_ENV=	LOCALBASE=${LOCALBASE} PREFIX=${PREFIX}
 
 NO_CHECKSUM=	yes
 
 CAT1=		display.0 montage.0 import.0 animate.0 convert.0 identify.0 \
-		mogrify.0 combine.0 ImageMagick.0 quantize.0 miff.0 xtp.0
+		mogrify.0 combine.0 ImageMagick.0 xtp.0
+
+CAT4=		miff.0
+CAT5=		quantize.0
+
+post-extract:
+	(cd ${WRKSRC} && \
+	    for i in display montage import animate convert identify \
+		mogrify combine ImageMagick; do \
+	        ln -s $$i.1 $$i.man ; \
+	    done; \
+	    ln -s miff.4 miff.man; \
+	    ln -s quantize.5 quantize.man; )
+	(cd ${WRKSRC}/xtp && ln -s xtp.1 xtp.man)
+
 
 post-install:
 	${LDCONFIG} -m ${PREFIX}/lib || /usr/bin/true
diff -adurN /usr/pkgsrc/graphics/ImageMagick/files/md5 ./files/md5
--- /usr/pkgsrc/graphics/ImageMagick/files/md5	Mon Dec 15 21:43:30 1997
+++ ./files/md5	Sat Jan 24 17:48:37 1998
@@ -1 +1 @@
-MD5 (ImageMagick-3.9.3.tar.gz) = 3bfce7c5e5f657e3ffa06c7f3172333b
+MD5 (ImageMagick-4.0.tar.gz) = 60d49b8f4747bab8dd48018097656ccd
diff -adurN /usr/pkgsrc/graphics/ImageMagick/patches/patch-aa ./patches/patch-aa
--- /usr/pkgsrc/graphics/ImageMagick/patches/patch-aa	Sun Dec 14 21:42:31 1997
+++ ./patches/patch-aa	Sat Jan 24 19:16:14 1998
@@ -1,11 +1,12 @@
---- Magick.tmpl.orig	Tue Dec  9 05:08:48 1997
-+++ Magick.tmpl	Thu Dec 11 01:43:36 1997
-@@ -33,12 +33,12 @@
- XCOMM HasShape if your X server supports the Shape Extension and
- XCOMM HasSharedMemory for the Shared Memory Extension.
- XCOMM
+--- Magick.tmpl.orig	Thu Jan  8 07:16:35 1998
++++ Magick.tmpl	Sat Jan 24 19:15:35 1998
+@@ -36,13 +36,13 @@
+ #ifdef RsArchitecture
+ XCOMM EXTENSIONS_DEFINES= -DHasLZW -DHasShape
+ #else
 -XCOMM EXTENSIONS_DEFINES= -DHasLZW -DHasShape -DHasSharedMemory
 +EXTENSIONS_DEFINES= -DHasLZW -DHasShape -DHasSharedMemory
+ #endif
  
  XCOMM Set DoSharedLib to HasSharedLibraries to build ImageMagick with shared
  XCOMM libraries.
@@ -15,7 +16,7 @@
  
  XCOMM By default, the maximum color value is 255.  To increase the maximum to
  XCOMM 65535 define:
-@@ -56,10 +56,10 @@
+@@ -60,10 +60,10 @@
  XCOMM #define HasFPX
  XCOMM #define HasHDF
  XCOMM #define HasJBIG
@@ -30,7 +31,7 @@
  XCOMM #define HasTTF
  
  #ifdef HasDPS
-@@ -92,29 +92,29 @@
+@@ -96,29 +96,29 @@
  
  #ifdef HasJPEG
  JPEG_DEFINES= -DHasJPEG
@@ -51,7 +52,7 @@
  #endif
  
  #ifdef HasPNG
- PNG_DEFINES= -DHasPNG
+ PNG_DEFINES= -DHasPNG -DHasZLIB
 -PNG_INCLUDES= -I$(TOP)/png -I$(TOP)/zlib
 -PNG_FLAGS= -L$(TOP)/png -L$(TOP)/zlib
 +PNG_INCLUDES= -I${LOCALBASE}/include
@@ -68,7 +69,7 @@
  TIFF_LIBRARIES= -ltiff
  #endif
  
-@@ -136,10 +136,10 @@
+@@ -140,10 +140,12 @@
  XCOMM ImageMagick has an include file named X.h.  Do not set LOCALINC to
  XCOMM the top level X11 include directory or X11/X.h will be overwritten.
  
@@ -79,7 +80,9 @@
 +LOCALDIR= $(PREFIX)/bin
 +LOCALINC= $(PREFIX)/include/magick
 +LOCALLIB= $(PREFIX)/lib
-+LOCALMAN= $(PREFIX)/man/cat1
++LOCALMAN1= $(PREFIX)/man/cat1
++LOCALMAN4= $(PREFIX)/man/cat4
++LOCALMAN5= $(PREFIX)/man/cat5
  
  MAGICKDIR= $(TOP)/magick
  MAGICK_INCLUDES= -I$(TOP)/magick
diff -adurN /usr/pkgsrc/graphics/ImageMagick/patches/patch-ab ./patches/patch-ab
--- /usr/pkgsrc/graphics/ImageMagick/patches/patch-ab	Thu Jan  1 09:00:00 1970
+++ ./patches/patch-ab	Sun Jan 25 14:55:04 1998
@@ -0,0 +1,42 @@
+--- Imakefile~	Sun Jan  4 05:24:10 1998
++++ Imakefile	Sat Jan 24 19:17:11 1998
+@@ -68,28 +68,28 @@
+ NormalProgramTarget(display,display.o,$(DEPLIBS),$(LOCAL_LIBRARIES),$(XLIB) -lm)
+ NormalLintTarget($(LINTSRCS))
+ InstallProgram(display,$(LOCALDIR))
+-InstallMultipleMan(display.1,$(LOCALMAN))
++InstallMultipleMan(display,$(LOCALMAN1))
+ NormalProgramTarget(montage,montage.o,$(DEPLIBS),$(LOCAL_LIBRARIES),$(XLIB) -lm)
+ InstallProgram(montage,$(LOCALDIR))
+-InstallMultipleMan(montage.1,$(LOCALMAN))
++InstallMultipleMan(montage,$(LOCALMAN1))
+ NormalProgramTarget(import,import.o,$(DEPLIBS),$(LOCAL_LIBRARIES),$(XLIB) -lm)
+ InstallProgram(import,$(LOCALDIR))
+-InstallMultipleMan(import.1,$(LOCALMAN))
++InstallMultipleMan(import,$(LOCALMAN1))
+ NormalProgramTarget(animate,animate.o,$(DEPLIBS),$(LOCAL_LIBRARIES),$(XLIB) -lm)
+ InstallProgram(animate,$(LOCALDIR))
+-InstallMultipleMan(animate.1,$(LOCALMAN))
++InstallMultipleMan(animate,$(LOCALMAN1))
+ NormalProgramTarget(convert,convert.o,$(DEPLIBS),$(LOCAL_LIBRARIES),$(XLIB) -lm)
+ InstallProgram(convert,$(LOCALDIR))
+-InstallMultipleMan(convert.1,$(LOCALMAN))
++InstallMultipleMan(convert,$(LOCALMAN1))
+ NormalProgramTarget(identify,identify.o,$(DEPLIBS),$(LOCAL_LIBRARIES),$(XLIB) -lm)
+ InstallProgram(identify,$(LOCALDIR))
+-InstallMultipleMan(identify.1,$(LOCALMAN))
++InstallMultipleMan(identify,$(LOCALMAN1))
+ NormalProgramTarget(mogrify,mogrify.o,$(DEPLIBS),$(LOCAL_LIBRARIES),$(XLIB) -lm)
+ InstallProgram(mogrify,$(LOCALDIR))
+-InstallMultipleMan(mogrify.1,$(LOCALMAN))
++InstallMultipleMan(mogrify,$(LOCALMAN1))
+ NormalProgramTarget(combine,combine.o,$(DEPLIBS),$(LOCAL_LIBRARIES),$(XLIB) -lm)
+ InstallProgram(combine,$(LOCALDIR))
+-InstallMultipleMan(combine.1,$(LOCALMAN))
+-InstallMultipleMan(ImageMagick.1,$(LOCALMAN))
+-InstallMultipleMan(miff.4,$(LOCALMAN))
+-InstallMultipleMan(quantize.5,$(LOCALMAN))
++InstallMultipleMan(combine,$(LOCALMAN1))
++InstallMultipleMan(ImageMagick,$(LOCALMAN1))
++InstallMultipleMan(miff,$(LOCALMAN4))
++InstallMultipleMan(quantize,$(LOCALMAN5))
diff -adurN /usr/pkgsrc/graphics/ImageMagick/patches/patch-ac ./patches/patch-ac
--- /usr/pkgsrc/graphics/ImageMagick/patches/patch-ac	Thu Jan  1 09:00:00 1970
+++ ./patches/patch-ac	Sun Jan 25 14:55:13 1998
@@ -0,0 +1,9 @@
+--- ./xtp/Imakefile~	Sun Jan  4 05:01:33 1998
++++ ./xtp/Imakefile	Sat Jan 24 19:20:19 1998
+@@ -41,5 +41,5 @@
+ 
+ NormalProgramTarget(xtp,$(XTPObjects),NullParameter,NullParameter,NullParameter)
+ InstallProgram(xtp,$(LOCALDIR))
+-InstallMultipleMan(xtp.1,$(LOCALMAN))
++InstallMultipleMan(xtp,$(LOCALMAN1))
+ DependTarget()
diff -adurN /usr/pkgsrc/graphics/ImageMagick/pkg/DESCR ./pkg/DESCR
--- /usr/pkgsrc/graphics/ImageMagick/pkg/DESCR	Sun Dec 14 21:42:31 1997
+++ ./pkg/DESCR	Sat Jan 24 18:00:14 1998
@@ -1,4 +1,4 @@
-ImageMagick TM, version 3.9.3, is a package for display and interactive
+ImageMagick TM, version 4.0, is a package for display and interactive
 manipulation of images for the X Window System. It is written in C and
 interfaces to the X library, and therefore does not require any proprietary
 toolkit in order to compile. Although the software is copyrighted, it is
diff -adurN /usr/pkgsrc/graphics/ImageMagick/pkg/PLIST ./pkg/PLIST
--- /usr/pkgsrc/graphics/ImageMagick/pkg/PLIST	Sat Jan 24 13:36:00 1998
+++ ./pkg/PLIST	Sun Jan 25 14:57:48 1998
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 1998/01/24 05:17:14 hubertf Exp $
+@comment $NetBSD: PLIST,v 1.1 1997/12/14 01:39:38 agc Exp $
 bin/xtp
 bin/display
 bin/montage
@@ -21,7 +21,7 @@
 include/magick/plug-ins.h
 @dirrm include/magick
 lib/libMagick.a
-lib/libMagick.so.3.9.3
+lib/libMagick.so.4.0.0
 @exec /sbin/ldconfig -m %B || /usr/bin/true
 @unexec /sbin/ldconfig -m %B || /usr/bin/true
 man/cat1/display.0
@@ -33,6 +33,6 @@
 man/cat1/mogrify.0
 man/cat1/combine.0
 man/cat1/ImageMagick.0
-man/cat1/quantize.0
-man/cat1/miff.0
+man/cat5/quantize.0
+man/cat4/miff.0
 man/cat1/xtp.0
>Audit-Trail:
>Unformatted: