Line 0
Link Here
|
0 |
- |
1 |
# Copyright 1999-2016 Gentoo Foundation |
|
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Id$ |
4 |
|
5 |
EAPI=6 |
6 |
|
7 |
inherit flag-o-matic toolchain-funcs |
8 |
|
9 |
DESCRIPTION="Bomberman clone w/multiplayer support" |
10 |
HOMEPAGE="http://www.xdr.com/dash/bomber.html" |
11 |
SRC_URI="http://www.xdr.com/dash/${P}.tgz" |
12 |
|
13 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
15 |
KEYWORDS="~amd64 ~ppc ~x86" |
16 |
IUSE="" |
17 |
|
18 |
DEPEND="x11-libs/libX11" |
19 |
RDEPEND=${DEPEND} |
20 |
|
21 |
PATCHES=( |
22 |
"${FILESDIR}"/${P}-va_list.patch |
23 |
"${FILESDIR}"/${P}-gcc4.patch |
24 |
"${FILESDIR}"/${P}-ldflags.patch |
25 |
) |
26 |
|
27 |
src_prepare() { |
28 |
sed -i \ |
29 |
-e "/^CC/d" \ |
30 |
-e 's/gcc/$(CC)/g' \ |
31 |
-e "s:X386:X11R6:" \ |
32 |
Makefile || die |
33 |
sed -i \ |
34 |
-e "s:data/%s:/usr/share/${PN}/%s:" bomber.c || die |
35 |
sed -i \ |
36 |
-e "s:=\"data\":=\"/usr/share/${PN}\":" sound.c || die |
37 |
# ${P}-ldflags.patch depends on the munged Makefile |
38 |
default |
39 |
} |
40 |
|
41 |
src_compile() { |
42 |
if tc-is-clang ; then |
43 |
# Fatal on clang |
44 |
append-cflags -Wno-return-type |
45 |
fi |
46 |
|
47 |
default |
48 |
} |
49 |
|
50 |
src_install() { |
51 |
dobin matcher bomber |
52 |
insinto /usr/share/${PN} |
53 |
doins -r data/* |
54 |
dodoc README Changelog |
55 |
} |