gcc-4.1 patch from debian.
---- src/board.c
-+++ src/board.c
+--- a/src/board.c
++++ b/src/board.c
@@ -74,7 +74,7 @@
//! default background
char board_default_colors [9] = {215, 215, 215, 215, 215, 215, 0, 0, 0};
extern void ui_make_human_move (byte *move, int *rmove);
---- src/menu.c
-+++ src/menu.c
+--- a/src/menu.c
++++ b/src/menu.c
@@ -829,7 +829,7 @@
{
---- src/menu.c.old 2010-05-24 12:35:15.000000000 +0200
-+++ src/menu.c 2010-05-24 12:35:48.000000000 +0200
+--- a/src/menu.c 2010-05-24 12:35:15.000000000 +0200
++++ b/src/menu.c 2010-05-24 12:35:48.000000000 +0200
@@ -176,7 +176,7 @@
{
#if GTK_MAJOR_VERSION == 2
static char pixbufs [7][size*(size+1)];
char **pixmap_data;
static GdkPixmap *pixmaps[7];
---- src/wordtris.c.old 2010-05-24 12:36:50.000000000 +0200
-+++ src/wordtris.c 2010-05-24 12:38:30.000000000 +0200
+--- a/src/wordtris.c 2010-05-24 12:36:50.000000000 +0200
++++ b/src/wordtris.c 2010-05-24 12:38:30.000000000 +0200
@@ -122,7 +122,7 @@
// TODO: change this so that we only need to specify pixmaps for individual squares
--- /dev/null
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils
+
+MY_P=${P/_}
+DESCRIPTION="Board games system"
+HOMEPAGE="http://gtkboard.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="gnome"
+
+RDEPEND="x11-libs/gtk+:2
+ media-libs/libsdl:0[sound]
+ media-libs/sdl-mixer[vorbis]
+ gnome? ( gnome-base/libgnomeui )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc41.patch
+ "${FILESDIR}"/${P}-gcc45.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i -e "/^LIBS/s:@LIBS@:@LIBS@ -lgmodule-2.0 -lm:" \
+ src/Makefile.in
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ --enable-gtk2 \
+ --enable-sdl \
+ $(use_enable gnome)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ doicon pixmaps/${PN}.png
+ make_desktop_entry ${PN} Gtkboard
+ dodoc AUTHORS ChangeLog TODO doc/index.html
+}