blob: fe5f02090e9fadcbb60269cec2ffa40ddcd3d1f6 (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop
DESCRIPTION="Tetris clone written in OpenGL"
HOMEPAGE="https://fbg.sourceforge.net/"
SRC_URI="https://downloads.sourceforge.net/fbg/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-games/physfs
media-libs/libmikmod
media-libs/libsdl[opengl,video]
virtual/glu
virtual/opengl"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-missing-return.patch
)
src_prepare() {
default
sed -e "/FBGDATADIR=/s|=.*|=\"${EPREFIX}/usr/share/${PN}\"|" \
-e '/^datadir=/d' \
-i configure || die
}
src_configure() {
econf --disable-fbglaunch --without-x
}
src_install() {
default
newicon startfbg/icon.xpm ${PN}.xpm
make_desktop_entry ${PN} "Falling Block Game"
rm -r "${ED}"/usr/doc || die
}
|