blob: c450649d391cec3abd4be3bf832212c9333c78d6 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-simulation/lincity-ng/lincity-ng-1.1.2.ebuild,v 1.1 2007/11/05 02:12:46 mr_bones_ Exp $
inherit eutils games
DESCRIPTION="city/country simulation game for X and opengl"
HOMEPAGE="http://lincity-ng.berlios.de/"
SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
RDEPEND="virtual/opengl
dev-libs/libxml2
media-libs/libsdl
media-libs/sdl-mixer
media-libs/sdl-image
media-libs/sdl-ttf
media-libs/sdl-gfx
dev-games/physfs"
DEPEND="${RDEPEND}
dev-util/pkgconfig
dev-util/jam"
pkg_setup() {
games_pkg_setup
if ! built_with_use media-libs/sdl-mixer vorbis ; then
eerror "lincity-ng doesn't work properly if"
eerror "sdl-mixer is built without vorbis support"
die "Please emerge sdlmixer with USE=vorbis"
fi
}
src_compile() {
egamesconf || die
jam || die "jam failed"
}
src_install() {
jam -sDESTDIR="${D}" \
-sappdocdir="/usr/share/doc/${PF}" \
-sapplicationsdir="/usr/share/applications" \
-spixmapsdir="/usr/share/pixmaps" \
install \
|| die "jam install failed"
prepalldocs
prepgamesdirs
}
|