Date: Fri, 26 May 2006 03:30:00 -0400 From: Jonathan Noack <noackjr@alumni.rice.edu> To: Marcus Alves Grando <mnag@FreeBSD.org> Cc: Eric <heli@mikestammer.com>, freebsd-ports@FreeBSD.org Subject: Re: graphics/ImageMagick build error Message-ID: <4476AE78.3030203@alumni.rice.edu> In-Reply-To: <4475BB7B.9070603@FreeBSD.org> References: <44753766.8000601@alumni.rice.edu> <44753B38.9050208@alumni.rice.edu> <4475ABBD.8040208@mikestammer.com> <4475BB7B.9070603@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------050309030707030209000003 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 05/25/06 10:13, Marcus Alves Grando wrote: > Eric wrote: >> Jonathan Noack wrote: >>> On 05/25/06 00:49, Jonathan Noack wrote: >>>> After the latest ImageMagick port update to 6.2.7.7, I get the following >>>> build error on several 6.1-RELEASE and 6.1-STABLE machines (all other >>>> ports are up-to-date). It appears to be looking for freetype2 in >>>> /usr/local/include whereas it is actually installed in /usr/X11R6/include. >>> Oops... I confused freetype2 and fontconfig. It can't find >>> fontconfig/fontconfig.h which is located in /usr/X11R6/include. >>> >>>> ... >> <snip> >> >> i got the same error too, so i did a 'locate fontconfig.h' and copied >> its full path, then edited magick/type.c to point to the location of my >> file (which you mentioned above). it got the port to compile and >> install, but i agree with you, something is wonky with the latest >> ImageMagick > > Please, try this patch: > > http://marcus.grupos.com.br:8080/patch/ImageMagick.patch I tried to upgrade to 6.2.7.7_1 and it worked on all but one machine. The port is still broken in the same way when using WITHOUT_X11. For that matter, librsvg2 brings in gtk (and a lot of other things) and probably shouldn't be installed when using WITHOUT_X11. See attached patch. I got some insight from graphics/graphviz, which requires fontconfig but works fine when using WITHOUT_X11. -Jonathan -- Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195 --------------050309030707030209000003 Content-Type: text/x-patch; name="ImageMagick-nox11.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ImageMagick-nox11.diff" Index: Makefile =================================================================== RCS file: /home/ncvs/ports/graphics/ImageMagick/Makefile,v retrieving revision 1.217 diff -u -r1.217 Makefile --- Makefile 26 May 2006 01:41:08 -0000 1.217 +++ Makefile 26 May 2006 07:04:53 -0000 @@ -41,8 +41,8 @@ animate.1 conjure.1 compare.1 composite.1 convert.1 display.1 \ identify.1 import.1 mogrify.1 montage.1 -CPPFLAGS= -I${LOCALBASE}/include -LDFLAGS= -L${LOCALBASE}/lib +CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include +LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib PLIST_SUB+= PORTVERSION=${PORTVERSION:R} @@ -204,7 +204,7 @@ .else CONFIGURE_ARGS+= --without-xml .endif -.if !defined(WITHOUT_IMAGEMAGICK_SVG) +.if !defined(WITHOUT_X11) && !defined(WITHOUT_IMAGEMAGICK_SVG) LIB_DEPENDS+= rsvg-2.2:${PORTSDIR}/graphics/librsvg2 CONFIGURE_ARGS+= --with-rsvg CONFIGURE_ENV+= RSVG_CFLAGS="-I${X11BASE}/include/librsvg-2" \ --------------050309030707030209000003--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4476AE78.3030203>