games-action/lugaru: Fix building with media-libs/jpeg
authorDavid Seifert <soap@gentoo.org>
Thu, 11 Apr 2019 17:11:14 +0000 (19:11 +0200)
committerDavid Seifert <soap@gentoo.org>
Thu, 11 Apr 2019 17:21:50 +0000 (19:21 +0200)
Closes: https://bugs.gentoo.org/652930
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: David Seifert <soap@gentoo.org>
games-action/lugaru/files/lugaru-20151204-jpeg-9c.patch [new file with mode: 0644]
games-action/lugaru/lugaru-20151204-r1.ebuild

diff --git a/games-action/lugaru/files/lugaru-20151204-jpeg-9c.patch b/games-action/lugaru/files/lugaru-20151204-jpeg-9c.patch
new file mode 100644 (file)
index 0000000..ac0ee48
--- /dev/null
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/652930
+
+--- a/Source/OpenGL_Windows.cpp
++++ b/Source/OpenGL_Windows.cpp
+@@ -839,7 +839,7 @@
+     (void) jpeg_read_header(&cinfo, TRUE);
+     cinfo.out_color_space = JCS_RGB;
+-    cinfo.quantize_colors = 0;
++    cinfo.quantize_colors = FALSE;
+     (void) jpeg_calc_output_dimensions(&cinfo);
+     (void) jpeg_start_decompress(&cinfo);
index 16843cc472c0416bf7a92517cf5ebe70afe9aeae..9860f427cdd038f4e558a75ec22e1f9839df00a1 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -27,7 +27,8 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
 PATCHES=(
-       "${FILESDIR}/${P}-dir.patch"
+       "${FILESDIR}"/${P}-dir.patch
+       "${FILESDIR}"/${P}-jpeg-9c.patch
 )
 
 src_prepare() {