summaryrefslogtreecommitdiff
blob: 03928befd38d5dca13fa4390e02ac5cf6d7c7ed3 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-games/neoengine/neoengine-0.7.0.ebuild,v 1.4 2004/06/29 15:06:26 vapier Exp $

inherit eutils

DESCRIPTION="An Open Source platform independent 3D game engine written in C++"
HOMEPAGE="http://www.neoengine.org/"
SRC_URI="mirror://sourceforge/neoengine/${P}.tar.bz2"

LICENSE="MPL-1.1"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE="doc"

DEPEND="virtual/opengl
	media-libs/alsa-lib
	doc? ( app-doc/doxygen )"

src_unpack() {
	unpack ${A}

	cd ${S}
	epatch ${FILESDIR}/${PV}-execute.patch
	use ppc && epatch ${FILESDIR}/${PV}-ppc.patch
}

src_compile() {
	econf || die "./configure failed"
	emake || die "Compilation failed"

	if use doc; then
		for i in "*.doxygen"; do
			doxygen ${i};
		done
	fi
}

src_install() {
	einstall || die "Installation failed"

	dodoc AUTHORS ChangeLog INSTALL README TODO

	if use doc; then
		mkdir -p ${D}/usr/share/doc/${PF}
		for i in "*-api"; do
			cp -r ${i} ${D}/usr/share/doc/${PF};
		done
	fi
}