* [gentoo-commits] repo/gentoo:master commit in: media-gfx/swftools/, media-gfx/swftools/files/
@ 2016-10-09 11:18 Pacho Ramos
0 siblings, 0 replies; 2+ messages in thread
From: Pacho Ramos @ 2016-10-09 11:18 UTC (permalink / raw
To: gentoo-commits
commit: 6d21e198bd0679145b72707988dbed60b614f1a2
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 9 10:37:53 2016 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sun Oct 9 11:17:59 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d21e198
media-gfx/swftools: Fix giflib-5.1 support (#572088 by Hank Leininger)
Package-Manager: portage-2.3.1
.../swftools/files/swftools-0.9.2_giflib5.patch | 26 ++++++++++++++++++++++
...tools-0.9.2.ebuild => swftools-0.9.2-r1.ebuild} | 8 ++++---
2 files changed, 31 insertions(+), 3 deletions(-)
diff --git a/media-gfx/swftools/files/swftools-0.9.2_giflib5.patch b/media-gfx/swftools/files/swftools-0.9.2_giflib5.patch
new file mode 100644
index 00000000..6450f82
--- /dev/null
+++ b/media-gfx/swftools/files/swftools-0.9.2_giflib5.patch
@@ -0,0 +1,26 @@
+--- 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;
+ }
diff --git a/media-gfx/swftools/swftools-0.9.2.ebuild b/media-gfx/swftools/swftools-0.9.2-r1.ebuild
similarity index 84%
rename from media-gfx/swftools/swftools-0.9.2.ebuild
rename to media-gfx/swftools/swftools-0.9.2-r1.ebuild
index 8f0cd43..0defd16 100644
--- a/media-gfx/swftools/swftools-0.9.2.ebuild
+++ b/media-gfx/swftools/swftools-0.9.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -16,8 +16,9 @@ IUSE=""
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}
@@ -28,6 +29,7 @@ src_prepare() {
epatch "${FILESDIR}"/${P}_nopdf.patch
epatch "${FILESDIR}"/${P}_general.patch
epatch "${FILESDIR}"/${P}_giflib.patch
+ epatch "${FILESDIR}"/${P}_giflib5.patch
}
src_configure() {
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-gfx/swftools/, media-gfx/swftools/files/
@ 2018-02-07 22:33 Andreas Sturmlechner
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Sturmlechner @ 2018-02-07 22:33 UTC (permalink / raw
To: gentoo-commits
commit: 0ea565c59a608e42a1a8653b95e4dd8ff51e6796
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 7 22:16:49 2018 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Feb 7 22:33:18 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ea565c5
media-gfx/swftools: Fix build with jpeg-9
Closes: https://bugs.gentoo.org/520934
Package-Manager: Portage-2.3.24, Repoman-2.3.6
media-gfx/swftools/files/swftools-0.9.2-jpeg-9.patch | 17 +++++++++++++++++
media-gfx/swftools/swftools-0.9.2-r1.ebuild | 3 ++-
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/media-gfx/swftools/files/swftools-0.9.2-jpeg-9.patch b/media-gfx/swftools/files/swftools-0.9.2-jpeg-9.patch
new file mode 100644
index 00000000000..7f809ea9983
--- /dev/null
+++ b/media-gfx/swftools/files/swftools-0.9.2-jpeg-9.patch
@@ -0,0 +1,17 @@
+Patch kindly borrowed from macports.org.
+
+--- a/lib/jpeg.c 2011-10-14 15:46:10.000000000 -0500
++++ b/lib/jpeg.c 2014-08-06 20:15:51.000000000 -0500
+@@ -5,6 +5,12 @@
+ #include "../config.h"
+
+ #ifdef HAVE_JPEGLIB
++#ifndef FALSE
++#define FALSE 0
++#endif
++#ifndef TRUE
++#define TRUE 1
++#endif
+ #define HAVE_BOOLEAN
+ #include <jpeglib.h>
+
diff --git a/media-gfx/swftools/swftools-0.9.2-r1.ebuild b/media-gfx/swftools/swftools-0.9.2-r1.ebuild
index de698a91aa5..cbdcdb3e1c7 100644
--- a/media-gfx/swftools/swftools-0.9.2-r1.ebuild
+++ b/media-gfx/swftools/swftools-0.9.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -29,6 +29,7 @@ src_prepare() {
epatch "${FILESDIR}"/${P}_general.patch
epatch "${FILESDIR}"/${P}_giflib.patch
epatch "${FILESDIR}"/${P}_giflib5.patch
+ epatch "${FILESDIR}"/${P}-jpeg-9.patch
}
src_configure() {
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-07 22:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-07 22:33 [gentoo-commits] repo/gentoo:master commit in: media-gfx/swftools/, media-gfx/swftools/files/ Andreas Sturmlechner
-- strict thread matches above, loose matches on Subject: below --
2016-10-09 11:18 Pacho Ramos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox