From owner-freebsd-questions@FreeBSD.ORG Thu Jun 2 14:41:27 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3714C106566B for ; Thu, 2 Jun 2011 14:41:27 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id EE5FE8FC08 for ; Thu, 2 Jun 2011 14:41:26 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.4/8.14.4) with ESMTP id p52EfQPV023600; Thu, 2 Jun 2011 08:41:26 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.4/8.14.4/Submit) with ESMTP id p52EfQpm023597; Thu, 2 Jun 2011 08:41:26 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Thu, 2 Jun 2011 08:41:26 -0600 (MDT) From: Warren Block To: Angelo In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Thu, 02 Jun 2011 08:41:26 -0600 (MDT) Cc: freebsd-questions@freebsd.org Subject: Re: Install ImageMagick configured with Autotrace switch X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2011 14:41:27 -0000 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.