Skip to content

Commit

Permalink
dev-tcltk/tkimg: Fix build with jpeg-9
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/520886
Package-Manager: Portage-2.3.24, Repoman-2.3.6
  • Loading branch information
a17r committed Feb 10, 2018
1 parent c128765 commit 9a70af7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions dev-tcltk/tkimg/files/tkimg-1.4-jpeg-9.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Fix build with jpeg-9, bug #520886

--- a/jpeg/jpeg.c 2010-06-17 15:40:24.000000000 +0200
+++ b/jpeg/jpeg.c 2018-02-07 23:26:38.050073397 +0100
@@ -53,6 +53,13 @@
*/

#include "tkimg.h"
+#ifndef FALSE
+#define FALSE 0
+#endif
+#ifndef TRUE
+#define TRUE 1
+#endif
+#define HAVE_BOOLEAN
#include "jpegtcl.h"

static int SetupJPegLibrary(Tcl_Interp *interp);
3 changes: 2 additions & 1 deletion dev-tcltk/tkimg/tkimg-1.4-r9.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5
Expand Down Expand Up @@ -40,6 +40,7 @@ S="${WORKDIR}/${MYP}"
src_prepare() {
epatch \
"${WORKDIR}"/${P}-jpeg.patch \
"${FILESDIR}"/${P}-jpeg-9.patch \
"${WORKDIR}"/${P}-tiff.patch \
"${WORKDIR}"/${P}-png.patch \
"${FILESDIR}"/${P}-png2.patch \
Expand Down

0 comments on commit 9a70af7

Please sign in to comment.