From e5e10a1a084432a222d9ac4747662824388d8514 Mon Sep 17 00:00:00 2001 From: Koop Mast Date: Wed, 20 Jun 2012 11:31:01 +0000 Subject: Fix unresolved symbol in library after giflib update. PR: ports/169163 Submitted by: Kurt Jaeger --- graphics/imlib/Makefile | 2 +- graphics/imlib/files/patch-PrintGifError | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 graphics/imlib/files/patch-PrintGifError diff --git a/graphics/imlib/Makefile b/graphics/imlib/Makefile index 45ae9074f4ae..e83f2fb0740b 100644 --- a/graphics/imlib/Makefile +++ b/graphics/imlib/Makefile @@ -8,7 +8,7 @@ PORTNAME= imlib PORTVERSION= 1.9.15 -PORTREVISION= 14 +PORTREVISION= 15 CATEGORIES= graphics MASTER_SITES= GNOME DIST_SUBDIR= gnome diff --git a/graphics/imlib/files/patch-PrintGifError b/graphics/imlib/files/patch-PrintGifError new file mode 100644 index 000000000000..5d544b410176 --- /dev/null +++ b/graphics/imlib/files/patch-PrintGifError @@ -0,0 +1,21 @@ +--- Imlib/load.c-orig 2012-06-16 20:19:27.000000000 +0200 ++++ Imlib/load.c 2012-06-16 20:19:56.000000000 +0200 +@@ -420,6 +420,18 @@ + #endif /* HAVE_LIBTIFF */ + + #ifdef HAVE_LIBGIF ++ ++static void ++PrintGifError(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()); ++} ++ + unsigned char * + _LoadGIF(ImlibData * id, FILE *f, int *w, int *h, int *t) + { \ No newline at end of file -- cgit v1.2.3