summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/swftools')
-rw-r--r--media-gfx/swftools/files/swftools-0.9.2-jpeg-9.patch17
-rw-r--r--media-gfx/swftools/swftools-0.9.2-r1.ebuild3
2 files changed, 19 insertions, 1 deletions
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 000000000000..7f809ea99836
--- /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 de698a91aa5b..cbdcdb3e1c78 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() {