blob: 2d08b27fe80b1096790c93a6a8fca7c0a5d0f572 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-games/ogre/ogre-0.12.1.ebuild,v 1.2 2003/11/29 23:51:15 vapier Exp $
S=${WORKDIR}/ogrenew
DESCRIPTION="Object-oriented Graphics Rendering Engine"
HOMEPAGE="http://ogre.sourceforge.net/"
SRC_URI="mirror://sourceforge/ogre/${PN}-v${PV//./-}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="x86"
IUSE="doc gtk"
RDEPEND="virtual/opengl
media-libs/libsdl
=media-libs/freetype-2*
media-libs/devil
gtk? (
=dev-cpp/libglademm-2*
=dev-cpp/gtkmm-2*
)
sys-libs/zlib"
DEPEND="${RDEPEND}
>=sys-apps/sed-4
|| ( dev-libs/STLport >=sys-devel/gcc-3.0 )"
src_compile() {
local myconf="cli"
[ `use gtk` ] && myconf="gtk"
econf --with-cfgtk=${myconf} || die
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die "make install failed"
if [ `use doc` ] ; then
dohtml -r Docs/* Docs/Tutorials/* || die "dohtml failed (doc)"
fi
insinto /usr/share/OGRE/Media
doins Samples/Media/* || die "doins failed"
dodoc AUTHORS BUGS LINUX.DEV README Docs/README.linux || die "dodoc failed"
dohtml Docs/*.html || die "dohtml failed"
}
|