--- /dev/null
+--- swftools-0.9.2.orig/src/gif2swf.c 2016-02-16 16:15:39.697992195 -0500
++++ swftools-0.9.2/src/gif2swf.c 2016-02-16 16:25:37.047992256 -0500
+@@ -467,7 +467,11 @@
+
+ free(pal);
+ free(imagedata);
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1
++ DGifCloseFile(gft, D_GIF_SUCCEEDED);
++#else
+ DGifCloseFile(gft);
++#endif
+
+ return t;
+ }
+@@ -542,7 +546,11 @@
+ fprintf(stderr, "frame: %u, delay: %.3f sec\n", i + 1, getGifDelayTime(gft, i) / 100.0);
+ }
+
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1
++ DGifCloseFile(gft, D_GIF_SUCCEEDED);
++#else
+ DGifCloseFile(gft);
++#endif
+
+ return 0;
+ }
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
RDEPEND="
app-text/poppler
- >=media-libs/t1lib-1.3.1
- media-libs/freetype
+ media-libs/freetype:2
+ media-libs/giflib:0=
+ >=media-libs/t1lib-1.3.1:5
virtual/jpeg
"
DEPEND="${RDEPEND}
epatch "${FILESDIR}"/${P}_nopdf.patch
epatch "${FILESDIR}"/${P}_general.patch
epatch "${FILESDIR}"/${P}_giflib.patch
+ epatch "${FILESDIR}"/${P}_giflib5.patch
}
src_configure() {