summaryrefslogtreecommitdiff
blob: efb9539f8289f2d1b670bc504f312f5a255559f9 (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-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/phobiaiii/phobiaiii-1.0-r2.ebuild,v 1.2 2004/06/24 21:58:18 agriffis Exp $

inherit games

S="${WORKDIR}/phobia3"
DESCRIPTION="Just a moment ago, you were safe inside your ship, behind five inch armour"
HOMEPAGE="http://www.lynxlabs.com/phobiaIII/"
SRC_URI="ftp://ftp.edome.net/demot/actionpelit/phobia3-linux.tar.bz2"

KEYWORDS="-* x86"
LICENSE="as-is"
SLOT="0"
IUSE=""

DEPEND=""
RDEPEND="kde-base/arts
	media-sound/esound
	media-libs/audiofile
	media-libs/sdl-mixer
	virtual/x11
	media-libs/libvorbis
	media-libs/libogg
	>=sys-libs/lib-compat-1.3
	media-libs/libsdl
	media-libs/smpeg"

src_unpack() {
	unpack ${A}
	rm -rf "${S}/src"
}

src_install() {
	dogamesbin "${FILESDIR}/phobiaIII"
	if has_version '<sys-libs/glibc-2.3.2' ; then
		dosed '/LD_PRELOAD/s:.*::' "${GAMES_BINDIR}/phobiaIII"
	fi
	dodir "${GAMES_PREFIX_OPT}/${PN}"
	cp -r [a-z]* "${D}/${GAMES_PREFIX_OPT}/${PN}/" || die "cp failed"
	dodoc README || die "dodoc failed"

	prepgamesdirs
	# wants to write hiscores and config to this directory.
	fperms 2770 "${GAMES_PREFIX_OPT}/${PN}/dat"
}