Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Jun 2011 20:35:00 +0400
From:      Pan Tsu <inyaoo@gmail.com>
To:        Warren Block <wblock@wonkity.com>
Cc:        Angelo <aussieang@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: Install ImageMagick configured with Autotrace switch
Message-ID:  <86lixk8a4r.fsf@gmail.com>
In-Reply-To: <alpine.BSF.2.00.1106020834070.23437@wonkity.com> (Warren Block's message of "Thu, 2 Jun 2011 08:41:26 -0600 (MDT)")
References:  <BANLkTi=8fned-CqHDemu=8dWs-KOqFpQcQ@mail.gmail.com> <alpine.BSF.2.00.1106020834070.23437@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Warren Block <wblock@wonkity.com> writes:

> On Wed, 1 Jun 2011, Angelo wrote:
>
>> Thanks Peter but I can't seem to build this thing.
>
> Please don't top-post, and please trim responses.
>
>> I've tried just about everything I can think of to pass the argument
>> "--with-autotrace" and it throws exceptions or just ignores the command.
>
> Patching the ImageMagick Makefile is not too bad:
>
> --- graphics/ImageMagick/Makefile.orig	2011-06-02 08:13:35.000000000 -0600
> +++ graphics/ImageMagick/Makefile	2011-06-02 08:22:51.000000000 -0600
> @@ -40,6 +40,7 @@
>
>  OPTIONS=\
>  	IMAGEMAGICK_16BIT_PIXEL	"16bit pixel support" on \
> +	IMAGEMAGICK_AUTOTRACE	"Autotrace support" off \
>  	IMAGEMAGICK_BZLIB	"Bzlib support" on \
>  	IMAGEMAGICK_DJVU	"DJVU format support (needs threads)" off \
>  	IMAGEMAGICK_DOT		"GraphViz dot graphs support" off \
> @@ -228,6 +229,11 @@
>  CONFIGURE_ARGS+=	--without-fftw
>  .endif
>
> +.if defined(WITH_IMAGEMAGICK_AUTOTRACE)
> +LIB_DEPENDS+=           autotrace:${PORTSDIR}/graphics/autotrace
> +CONFIGURE_ARGS+=        --with-autotrace
> +.endif
> +
>  # Produce BZip compressed MIFF images
>  .if defined(WITHOUT_IMAGEMAGICK_BZLIB)
>  CONFIGURE_ARGS+=	--without-bzlib
>
> And that seems to produce a working ImageMagick, at least one that can
> convert jpeg to svg.  There may be correctness issues, like whether
> autotrace requires other ImageMagick options to be enabled (like SVG).
>
> The problem is that autotrace depends on ImageMagick, and the patched
> ImageMagick now depends on autotrace.  I don't know enough about
> either port to fix that.  Hopefully someone can, because this seems
> like a useful addition.

In a circular dependency with x264 (lavf input) <-> ffmpeg (x264 encoder)
was resolved in favor of x264 autodetecting presence of ffmpeg which
makes x264 in the package unable to read popular formats. I wonder
which frontend is more useful for enconding in h264...

As autotrace leverages ImageMagick for reading more formats but can work without.
Why not make it autodetect it then?

%%
Index: graphics/autotrace/Makefile
===================================================================
RCS file: /a/.cvsup/ports/graphics/autotrace/Makefile,v
retrieving revision 1.52
diff -u -p -r1.52 Makefile
--- graphics/autotrace/Makefile	2 May 2011 12:44:35 -0000	1.52
+++ graphics/autotrace/Makefile	2 Jun 2011 16:13:03 -0000
@@ -14,8 +14,7 @@ MASTER_SITES=	SF/${PORTNAME}/AutoTrace/$
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Convert bitmap to vector graphics
 
-LIB_DEPENDS=	png.6:${PORTSDIR}/graphics/png \
-    		MagickWand.4:${PORTSDIR}/graphics/ImageMagick
+LIB_DEPENDS=	png.6:${PORTSDIR}/graphics/png
 
 USE_AUTOTOOLS=	libtool
 USE_LDCONFIG=	yes
%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86lixk8a4r.fsf>