From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Sep 25 18:10:29 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E05C1065691 for ; Tue, 25 Sep 2012 18:10:29 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EEC6E8FC17 for ; Tue, 25 Sep 2012 18:10:28 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8PIASqt021285 for ; Tue, 25 Sep 2012 18:10:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8PIASQA021276; Tue, 25 Sep 2012 18:10:28 GMT (envelope-from gnats) Resent-Date: Tue, 25 Sep 2012 18:10:28 GMT Resent-Message-Id: <201209251810.q8PIASQA021276@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, KATO Tsuguru Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 52230106566B for ; Tue, 25 Sep 2012 18:07:20 +0000 (UTC) (envelope-from tkato432@yahoo.com) Received: from msa103lp.auone-net.jp (msa103lp.auone-net.jp [222.3.140.166]) by mx1.freebsd.org (Postfix) with ESMTP id 2402B8FC14 for ; Tue, 25 Sep 2012 18:07:19 +0000 (UTC) Received: from localhost.localdomain (ZT030063.ppp.dion.ne.jp [59.128.30.63]) by msa103lp.auone-net.jp (au one net msa) with ESMTP id 12C5247C036 for ; Wed, 26 Sep 2012 03:07:17 +0900 (JST) Message-Id: <20120926022402.f8e8137394e6d02e97c52ebc@yahoo.com> Date: Wed, 26 Sep 2012 02:24:02 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/172016: graphics/ida: Fix build X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2012 18:10:29 -0000 >Number: 172016 >Category: ports >Synopsis: graphics/ida: Fix build >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: Tue Sep 25 18:10:28 UTC 2012 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 7.4-RELEASE-p10 i386 >Organization: >Environment: >Description: - Fix build New file: files/patch-rd__read-gif.c >How-To-Repeat: >Fix: diff -urN /usr/ports/graphics/ida/Makefile graphics/ida/Makefile --- /usr/ports/graphics/ida/Makefile 2012-06-14 05:55:51.000000000 +0900 +++ graphics/ida/Makefile 2012-09-25 03:34:31.000000000 +0900 @@ -1,9 +1,5 @@ -# New ports collection makefile for: ida -# Date created: Thu Aug 19 21:13:58 UTC 2004 -# Whom: Andrey Slusar -# +# Created by: Andrey Slusar # $FreeBSD: ports/graphics/ida/Makefile,v 1.27 2012/06/13 20:55:51 pav Exp $ -# PORTNAME= ida PORTVERSION= 2.09 @@ -16,12 +12,9 @@ COMMENT= Small and fast motif-based image viewer and editor LICENSE= GPLv2 -LICENSE_FILE= ${WRKSRC}/COPYING -LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \ - exif.12:${PORTSDIR}/graphics/libexif - -BROKEN= does not compile +LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \ + exif:${PORTSDIR}/graphics/libexif OPTIONS_DEFINE= GIF PCF PNG SANE TIFF WEBP DOCS OPTIONS_DEFAULT= GIF PNG TIFF @@ -69,7 +62,7 @@ .endif .if ${PORT_OPTIONS:MTIFF} -LIB_DEPENDS+= tiff.4:${PORTSDIR}/graphics/tiff +LIB_DEPENDS+= tiff:${PORTSDIR}/graphics/tiff .else MAKE_ARGS+= HAVE_LIBTIFF=no .endif diff -urN /usr/ports/graphics/ida/files/patch-rd__read-gif.c graphics/ida/files/patch-rd__read-gif.c --- /usr/ports/graphics/ida/files/patch-rd__read-gif.c 1970-01-01 09:00:00.000000000 +0900 +++ graphics/ida/files/patch-rd__read-gif.c 2012-09-10 18:53:01.000000000 +0900 @@ -0,0 +1,47 @@ +--- rd/read-gif.c.orig 2012-02-23 02:13:36.000000000 +0900 ++++ rd/read-gif.c 2012-09-10 18:52:32.000000000 +0900 +@@ -13,6 +13,17 @@ + int w,h; + }; + ++static void ++localPrintGifError(void) ++{ ++ char *Err = GifErrorString(); ++ ++ if (Err != NULL) ++ fprintf(stderr, "\nGIF-LIB error: %s.\n", Err); ++ else ++ fprintf(stderr, "\nGIF-LIB undefined error %d.\n", GifError()); ++} ++ + static GifRecordType + gif_fileread(struct gif_state *h) + { +@@ -25,7 +36,7 @@ + if (GIF_ERROR == DGifGetRecordType(h->gif,&RecordType)) { + if (debug) + fprintf(stderr,"gif: DGifGetRecordType failed\n"); +- PrintGifError(); ++ localPrintGifError(); + return -1; + } + switch (RecordType) { +@@ -42,7 +53,7 @@ + if (rc == GIF_ERROR) { + if (debug) + fprintf(stderr,"gif: DGifGetExtension failed\n"); +- PrintGifError(); ++ localPrintGifError(); + return -1; + } + if (debug) { +@@ -108,7 +119,7 @@ + if (GIF_ERROR == DGifGetImageDesc(h->gif)) { + if (debug) + fprintf(stderr,"gif: DGifGetImageDesc failed\n"); +- PrintGifError(); ++ localPrintGifError(); + } + if (NULL == h->gif->SColorMap && + NULL == h->gif->Image.ColorMap) { >Release-Note: >Audit-Trail: >Unformatted: