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

inherit eutils games

MY_P=${P/_/}

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

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

DEPEND=">=media-libs/libsdl-1.2.7
	media-libs/sdl-ttf
	media-libs/sdl-image
	media-libs/sdl-mixer
	media-libs/sdl-net"

RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_P}"
GAMES_USE_SDL="noaudio"

pkg_setup() {
	games_pkg_setup

	if ! built_with_use media-libs/sdl-image png ; then
		eerror "media-libs/sdl-image is missing png support."
		die "Recompile media-libs/sdl-image with USE=\"png\""
	fi

	if ! built_with_use media-libs/sdl-mixer vorbis ; then
		eerror "media-libs/sdl-mixer is missing vorbis support."
		die "Recompile media-libs/sdl-mixer with USE=\"vorbis\""
	fi
}

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