summaryrefslogtreecommitdiff
blob: 35f9c744258da24d77752cd28e6b1580627317ca (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/lgeneral/lgeneral-1.2_beta2.ebuild,v 1.1 2004/05/29 07:37:27 mr_bones_ Exp $

inherit eutils games

DATA=lgeneral-data-1.1.3
MY_P="${P/_/}"
MY_P="${MY_P/beta/beta-}"
DESCRIPTION="A Panzer General clone written in SDL"
HOMEPAGE="http://lgames.sourceforge.net/index.php?project=LGeneral"
SRC_URI="mirror://sourceforge/lgeneral/${MY_P}.tar.gz
	mirror://sourceforge/lgeneral/${DATA}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""

DEPEND=">=media-libs/libsdl-1.2.4
	>=media-libs/sdl-mixer-1.2.3"

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

src_compile() {
	egamesconf --datadir="${GAMES_DATADIR}/../"
	emake || die "emake failed"

	cd "${WORKDIR}/${DATA}"
	egamesconf --datadir="${GAMES_DATADIR}/../"
	emake || die "emake failed (data)"
}

src_install() {
	make DESTDIR="${D}" install || die "make install failed"
	dodoc AUTHORS ChangeLog INSTALL README TODO
	cd "${WORKDIR}/${DATA}"
	make DESTDIR="${D}" install || die "make install failed (data)"
	prepgamesdirs
}