summaryrefslogtreecommitdiff
blob: 71150e1504fd996a7c4cfca6dffeec57e987e134 (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools desktop

DESCRIPTION="An exciting Brick Breaker"
HOMEPAGE="http://linux.tlk.fr/games/TecnoballZ/"
SRC_URI="https://github.com/brunonymous/tecnoballz/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="
	dev-libs/tinyxml
	media-libs/libsdl[joystick]
	media-libs/sdl-mixer[mikmod]
	media-libs/sdl-image[png]
	media-libs/libmikmod:0"
RDEPEND="${DEPEND}"

src_prepare() {
	default

	mkdir man/fr || die
	mv man/${PN}.fr.6 man/fr/${PN}.6 || die

	sed -i -e 's:\$(prefix)/games:\$(prefix)/bin:' src/Makefile.am || die
	sed -i -e '/CXXFLAGS=/d' -e '/^else/d' configure.ac || die

	eautoreconf
}

src_install() {
	default
	make_desktop_entry ${PN} Tecnoballz
}