blob: 0a365450695047912f4010034e14039e767d96e0 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/freelords/freelords-0.2.3.ebuild,v 1.1 2003/09/10 05:27:31 vapier Exp $
inherit games
DESCRIPTION="Free Warlords clone"
HOMEPAGE="http://www.freelords.org/"
SRC_URI="http://download.freelords.org/sources/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
DEPEND="dev-libs/expat
>=media-libs/libsdl-1.2.0
>=media-libs/paragui-1.0.0
>=dev-libs/libsigc++-1.2.1
>=media-libs/sdl-image-1.2.0
>=sys-apps/sed-4"
src_unpack() {
unpack ${A}
sed -i "s:/etc/freelordsrc:${GAMES_SYSCONFDIR}/freelordsrc:" ${S}/src/{file,main}.cpp
}
src_compile() {
egamesconf --disable-paraguitest || die
emake || die
}
src_install() {
make install DESTDIR=${D} || die
insinto ${GAMES_SYSCONFDIR}
doins ${FILESDIR}/freelordsrc
dosed "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" ${GAMES_SYSCONFDIR}/freelordsrc
dosed "s:GENTOO_SAVEDIR:${GAMES_STATEDIR}:" ${GAMES_SYSCONFDIR}/freelordsrc
dodoc AUTHORS BUGS ChangeLog DEPENDENCIES HACKER NEWS README TODO doc/*
prepgamesdirs
}
|