From owner-freebsd-ports@FreeBSD.ORG Fri May 26 07:30:15 2006 Return-Path: X-Original-To: freebsd-ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D64516A7D7 for ; Fri, 26 May 2006 07:30:15 +0000 (UTC) (envelope-from noackjr@alumni.rice.edu) Received: from smtp101.biz.mail.re2.yahoo.com (smtp101.biz.mail.re2.yahoo.com [68.142.229.215]) by mx1.FreeBSD.org (Postfix) with SMTP id 389CD43D6A for ; Fri, 26 May 2006 07:30:03 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: (qmail 69758 invoked from network); 26 May 2006 07:30:03 -0000 Received: from unknown (HELO optimator.noacks.org) (noackjr@supercrime.org@24.99.22.177 with login) by smtp101.biz.mail.re2.yahoo.com with SMTP; 26 May 2006 07:30:03 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id A4CF6622F; Fri, 26 May 2006 03:30:02 -0400 (EDT) X-Virus-Scanned: amavisd-new at noacks.org Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2dgxVhWsHnsQ; Fri, 26 May 2006 03:30:01 -0400 (EDT) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id 331156193; Fri, 26 May 2006 03:30:01 -0400 (EDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.13.6/8.13.6) with ESMTP id k4Q7U08b039157; Fri, 26 May 2006 03:30:00 -0400 (EDT) (envelope-from noackjr@alumni.rice.edu) Message-ID: <4476AE78.3030203@alumni.rice.edu> Date: Fri, 26 May 2006 03:30:00 -0400 From: Jonathan Noack User-Agent: Thunderbird 1.5.0.2 (X11/20060422) MIME-Version: 1.0 To: Marcus Alves Grando References: <44753766.8000601@alumni.rice.edu> <44753B38.9050208@alumni.rice.edu> <4475ABBD.8040208@mikestammer.com> <4475BB7B.9070603@FreeBSD.org> In-Reply-To: <4475BB7B.9070603@FreeBSD.org> X-Enigmail-Version: 0.94.0.0 OpenPGP: id=991D8195; url=http://www.noacks.org/cert/noackjr.asc Content-Type: multipart/mixed; boundary="------------050309030707030209000003" Cc: Eric , freebsd-ports@FreeBSD.org Subject: Re: graphics/ImageMagick build error X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 May 2006 07:30:16 -0000 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. >>> >>>> ... >> >> >> 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--