summaryrefslogtreecommitdiff
blob: 2d2e6ff60350fc0838b37d1ec94d4bdf38757340 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

inherit cmake-utils games mercurial

DESCRIPTION="a cross platform 3d action adventure"
HOMEPAGE="http://www.wolfire.com/lugaru"
SRC_URI=""
EHG_REPO_URI="http://hg.icculus.org/icculus/lugaru"

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

DEPEND="media-libs/openal
		media-libs/libpng
		media-libs/jpeg
		media-libs/libsdl
		virtual/opengl
		media-libs/libvorbis
		media-libs/libogg"
RDEPEND="${DEPEND}
		games-action/lugaru-data"

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

pkg_setup() {
	mycmakeargs="-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX_OPT}/${PN}"
}

src_configure() {
	cmake-utils_src_configure
}

src_compile() {
	cmake-utils_src_compile
}

src_install() {
	cmake-utils_src_install
	rm -rf "${D}"/opt/lugaru/Data
	games_make_wrapper lugaru ./lugaru "${GAMES_PREFIX_OPT}/${PN}" "${GAMES_PREFIX_OPT}/${PN}"
	make_desktop_entry lugaru "Neverwinter Nights"
}