blob: 421babe455150828add6354dc870264fbfb7adf3 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/warzone2100/warzone2100-2.0.5.ebuild,v 1.3 2007/01/14 08:36:24 josejx Exp $
WANT_AUTOCONF=latest
WANT_AUTOMAKE=latest
inherit autotools versionator games
MY_PV=$(get_version_component_range -2)
DESCRIPTION="3D real-time strategy game"
HOMEPAGE="http://wz2100.net/"
SRC_URI="http://download.gna.org/warzone/releases/${MY_PV}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86"
# upstream requested debug support
IUSE="debug mp3"
RDEPEND="dev-games/physfs
media-libs/jpeg
media-libs/libogg
media-libs/libpng
media-libs/libsdl
media-libs/libvorbis
media-libs/openal
media-libs/sdl-net
virtual/glu
virtual/opengl
mp3? ( media-libs/libmad )"
DEPEND="${RDEPEND}
app-arch/zip"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i 's:$(datadir):/usr/share:' Makefile.am || die "sed failed"
AT_M4DIR=m4 eautoreconf
}
src_compile() {
egamesconf \
--disable-dependency-tracking \
--with-ogg=/usr \
--with-vorbis=/usr \
--enable-ogg \
$(use_enable mp3) \
$(use_enable debug) \
|| die
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog README TODO
prepgamesdirs
}
|