summaryrefslogtreecommitdiff
blob: b267c9282bab8d4aa2d7f0adcbce552afd237134 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/kobodeluxe/kobodeluxe-0.3-r1.ebuild,v 1.1 2003/09/10 19:29:21 vapier Exp $

IUSE="oss opengl"

S=${WORKDIR}/${P}

DESCRIPTION="An SDL port of xkobo, a addictive space shoot-em-up"
SRC_URI="http://olofson.net/skobo/download/${P}.tar.bz2"
HOMEPAGE="http://olofson.net/skobo/"
KEYWORDS="x86"
LICENSE="GPL-2"

SLOT=0
DEPEND="virtual/glibc
		sys-devel/autoconf
		media-libs/libsdl
		media-libs/sdl-image
		opengl? ( virtual/opengl )"
RDEPEND="virtual/glibc
		media-libs/libsdl
		media-libs/sdl-image
		opengl? ( virtual/opengl )"

src_unpack() {
	unpack ${A}
	cd ${S}
	# Fix paths
	mv configure configure.orig
	sed -e 's/\$(datadir)\/games\/kobo-deluxe/$(datadir)\/games\/kobodeluxe/' \
		-e 's/\$(prefix)\/games\/kobo-deluxe\/scores/$(localstatedir)\/lib\/games\/kobodeluxe/' \
		configure.orig > configure
	chmod +x configure
}

src_compile() {
	local myconf

	use opengl && myconf="--enable-opengl"
	use oss    && myconf="$myconf --enable-oss"

	./configure \
		$myconf \
		--host=${CHOST} \
		--prefix=/usr \
		--localstatedir=/var \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man || die "./configure failed"
	emake || die
}

src_install () {
	dodoc README* TODO
	dobin kobodl

	dodir /usr/share/games/kobodeluxe/gfx
	insinto /usr/share/games/kobodeluxe/gfx
	doins data/*.{pcx,png}

	DIROPTIONS="-g games -m 0775" dodir /var/lib/games/kobodeluxe
	insinto /var/lib/games/kobodeluxe
	doins 42
}