summaryrefslogtreecommitdiff
blob: eb471564e8672a67610b103e31c42b8596d815d5 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit games toolchain-funcs

DESCRIPTION="First Cushion Shooter! A remake of well-known Czech game Bulanci."
SRC_URI="http://tuxanci.tuxportal.cz/releases/${P}.tar.bz2"
HOMEPAGE="http://tuxanci.tuxportal.cz"

KEYWORDS="~x86 ~x86-fbsd"
LICENSE="GPL-2"
SLOT="0"

DEPEND="media-libs/libsdl
	media-libs/sdl-ttf
	media-libs/sdl-image
	media-libs/sdl-mixer"
RDEPEND="${DEPEND}"

src_unpack() {
	unpack ${A}
	cd "${S}"
	# quick fix for English localization
	sed -i -e "s/End game/Quit!/" lang/en.lang || die "sed failed"
}

src_compile() {
	emake CC=$(tc-getCC) || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "Installation failed."
	dodoc README ChangeLog
	prepgamesdirs
}