ports/172016: graphics/ida: Fix build
KATO Tsuguru
tkato432 at yahoo.com
Tue Sep 25 18:10:29 UTC 2012
>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 <anray at FreeBSD.org>
-#
+# Created by: Andrey Slusar <anray at FreeBSD.org>
# $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:
More information about the freebsd-ports-bugs
mailing list