blob: 069bc9688e3db79bb8d01d083f4918c5faff01b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop toolchain-funcs
DESCRIPTION="Mole infested 2D platform game"
HOMEPAGE="http://moleinvasion.tuxfamily.org/"
SRC_URI="
ftp://download.tuxfamily.org/minvasion/packages/MoleInvasion-${PV}.tar.bz2
music? ( mirror://gentoo/${PN}-music-20090731.tar.gz )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="music"
DEPEND="
media-libs/libsdl[joystick,opengl,video]
media-libs/sdl-image[jpeg,png]
media-libs/sdl-mixer[vorbis]
media-libs/sdl-ttf
virtual/opengl"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}/src"
src_prepare() {
default
if use music; then
mv -f "${WORKDIR}"/music ../ || die
fi
sed -i \
-e '/^CFLAGS/s:= -g:+=:' \
-e '/^LDFLAGS/d' \
-e "/^FINALEXEDIR/s:/usr.*:/usr/bin:" \
-e "/^FINALDATADIR/s:/usr.*:/usr/share/${PN}:" \
Makefile || die "sed failed"
eapply \
"${FILESDIR}"/${P}-opengl.patch \
"${FILESDIR}"/${P}-underlink.patch \
"${FILESDIR}"/${P}-fno-common.patch
}
src_configure() {
tc-export CC
}
src_install() {
emake DESTDIR="${D}" install install-data
doman ../debian/*.6
newicon ../gfx/icon.xpm moleinvasion.xpm
make_desktop_entry moleinvasion "Mole Invasion"
}
|