blob: 5aa79fe1ddd754f28fd7f0fb89a82c881fc253f5 (
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
|
# Copyright 2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools eutils
DESCRIPTION="3d tron, just like the movie"
HOMEPAGE="http://gltron.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.gz
mirror://gentoo/${PN}.png"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
DEPEND="virtual/opengl
media-libs/libpng:0
media-libs/libsdl[sound,video]
media-libs/sdl-mixer[vorbis]
media-libs/sdl-sound[vorbis,mikmod]
media-libs/smpeg
media-libs/libmikmod"
RDEPEND=${DEPEND}
src_prepare() {
eapply -p0 "${FILESDIR}"/${P}-configure.patch
eapply -p0 "${FILESDIR}"/${P}-prototypes.patch
eapply -p0 "${FILESDIR}"/${P}-debian.patch
eapply "${FILESDIR}"/${P}-gcc49.patch
sed -i \
-e '/^gltron_LINK/s/$/ $(LDFLAGS)/' \
Makefile.in || die
mv configure.in configure.ac || die
sed -i -e 's/ #/#/' "${S}/nebu/scripting/Makefile.am" || die
eapply_user
eautoreconf
}
src_configure() {
# warn/debug/profile just modify CFLAGS, they aren't
# real options, so don't utilize USE flags here
econf \
--datadir=/usr/share/games \
--datarootdir=/usr/share \
--disable-warn \
--disable-debug \
--disable-profile
}
src_install() {
default
doicon "${DISTDIR}"/${PN}.png
make_desktop_entry ${PN} GLtron
}
|