blob: a8b5014a8b13998d841498a061fe74f8af4b1cdb (
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
52
53
54
55
56
57
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-games/neoengine/neoengine-0.8.2-r1.ebuild,v 1.2 2009/08/10 08:39:17 ssuominen Exp $
EAPI=2
inherit eutils autotools
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="~ppc ~x86"
IUSE="doc"
RDEPEND="virtual/opengl
media-libs/alsa-lib
media-libs/libpng
media-libs/jpeg"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"
S=${WORKDIR}/neoengine
src_prepare() {
epatch "${FILESDIR}/${P}"-gcc41.patch \
"${FILESDIR}/${P}"-gcc43.patch \
"${FILESDIR}"/${P}-nolibs.patch \
"${FILESDIR}"/${P}-gcc44.patch
./setbuildtype.sh dynamic
eautoreconf || die "eautoreconf failed"
eautomake neodevopengl/Makefile || die "eautomake neodevopengl failed"
eautomake neodevalsa/Makefile || die "eautomake neodevalsa failed"
}
src_configure() {
econf \
--disable-dependency-tracking \
|| die "econf failed"
}
src_compile() {
emake || die "emake failed"
if use doc; then
emake doc || die "emake doc failed"
fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog* NEWS README
use doc && dohtml -r *-api
}
|