summaryrefslogtreecommitdiff
blob: cd0de15f3bf1ac5d2bd3a7ae965c6d7d81d60f41 (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-games/neoengine/neoengine-0.8.0.ebuild,v 1.1 2004/03/23 21:35:16 dholm Exp $

inherit eutils

S="${WORKDIR}/${P}/neoengine"
DESCRIPTION="An open source, platform independent, 3D game engine written in C++"
SRC_URI="mirror://sourceforge/neoengine/${P}.tar.bz2"
HOMEPAGE="http://www.neoengine.org/"
LICENSE="MPL-1.1"
DEPEND="virtual/opengl
	media-libs/alsa-lib
	doc? ( app-doc/doxygen )"
KEYWORDS="~ppc ~x86"
SLOT="0"
IUSE="doc"

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

	if [ -n "`use doc`" ]; then
		for i in "*.doxygen"; do
			doxygen ${i};
		done
	fi
}

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

	dodoc AUTHORS ChangeLog COPYING INSTALL README TODO

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