blob: 0f38cfdab590636cef074e9c9fd786e5e510afb0 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/widelands/widelands-0.0.9.ebuild,v 1.4 2005/10/29 12:37:52 lu_zero Exp $
inherit eutils games
DESCRIPTION="A game similar to Settlers 2"
HOMEPAGE="http://widelands.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}-b${PV:4:4}-source.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug"
DEPEND="media-libs/libsdl
media-libs/sdl-image
media-libs/sdl-net
media-libs/sdl-ttf
sys-libs/zlib
media-libs/jpeg
media-libs/libpng"
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
epatch "${FILESDIR}/${P}-amd64.patch"
sed -i -e "s:__ppc__:__PPC__:g" ${S}/src/machdep.h
}
src_compile() {
use debug || export BUILD="release"
emake || die "emake failed"
unset BUILD
}
src_install() {
local dir=${GAMES_DATADIR}/${PN}
insinto "${dir}"
doins -r fonts maps pics tribes worlds campaigns README \
|| die "doins failed"
exeinto "${dir}"
doexe ${PN} || die "copying widelands"
games_make_wrapper widelands ./widelands "${dir}"
dodoc AUTHORS ChangeLog README
prepgamesdirs
}
|