ports/146514: [patch] graphics/ImageMagick: FFTW support

Anonymous swell.k at gmail.com
Wed May 12 11:40:02 UTC 2010


>Number:         146514
>Category:       ports
>Synopsis:       [patch] graphics/ImageMagick: FFTW support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 12 11:40:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
>Description:
Prevent the port from accidentally picking up fftw3 lib. IOW, add option
for the following features

  http://www.imagemagick.org/script/command-line-options.php#fft
  http://www.imagemagick.org/script/command-line-options.php#ift

>How-To-Repeat:
1. install math/fftw3
2. install graphics/ImageMagick
3. deinstall math/fftw3
4. try to run any app from ImageMagick
>Fix:
I don't get the arcane sorting of OPTIONS and ifdefs. ;(
--- a.diff begins here ---
Index: graphics/ImageMagick/Makefile
===================================================================
RCS file: /a/.cvsup/ports/graphics/ImageMagick/Makefile,v
retrieving revision 1.304
diff -u -p -r1.304 Makefile
--- graphics/ImageMagick/Makefile	28 Mar 2010 21:40:04 -0000	1.304
+++ graphics/ImageMagick/Makefile	12 May 2010 11:12:42 -0000
@@ -63,7 +63,8 @@ OPTIONS=	X11				"X11 support" on \
 		IMAGEMAGICK_SVG			"SVG format support" off \
 		IMAGEMAGICK_PDF			"PDF format support" on \
 		IMAGEMAGICK_GSLIB	"libgs (Postscript SHLIB) support" off \
-		IMAGEMAGICK_LQR		"Liquid Rescale support" on
+		IMAGEMAGICK_LQR		"Liquid Rescale support" on \
+		IMAGEMAGICK_FFTW	"Discrete Fourier Transform support" on
 
 .include <bsd.port.pre.mk>
 
@@ -186,6 +187,13 @@ LIB_DEPENDS+=		lqr-1.3:${PORTSDIR}/graph
 CONFIGURE_ARGS+=	--without-lqr
 .endif
 
+.if !defined(WITHOUT_IMAGEMAGICK_FFTW)
+CONFIGURE_ARGS+=	--with-fftw
+LIB_DEPENDS+=		fftw3.5:${PORTSDIR}/math/fftw3
+.else
+CONFIGURE_ARGS+=	--without-fftw
+.endif
+
 # Produce BZip compressed MIFF images
 .if defined(WITHOUT_IMAGEMAGICK_BZLIB)
 CONFIGURE_ARGS+=	--without-bzlib
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list