2008-12-03 19:34:47 +01:00
|
|
|
# Copyright 2008 Daniel Mierswa <impulze@impulze.org>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
SUMMARY="A graphics rendering engine."
|
|
|
|
DESCRIPTION="OGRE (Object-Oriented Graphics Rendering Engine) is a
|
|
|
|
scene-oriented, flexible 3D engine written in C++ designed to make it easier
|
|
|
|
and more intuitive for developers to produce applications utilising
|
|
|
|
hardware-accelerated 3D graphics"
|
|
|
|
HOMEPAGE="http://ogre3d.org/"
|
|
|
|
DOWNLOADS="mirror://sourceforge/${PN}/${PN}-v${PV//./-}.tar.bz2"
|
|
|
|
|
|
|
|
LICENCES="LGPL-2.1"
|
|
|
|
SLOT="0"
|
|
|
|
PLATFORMS="~amd64"
|
|
|
|
MYOPTIONS="
|
|
|
|
boost freeimage gtk il openexr
|
|
|
|
( freeimage il ) [[ number-selected = at-most-one ]]
|
|
|
|
"
|
|
|
|
|
|
|
|
DEPENDENCIES="
|
|
|
|
build+run:
|
|
|
|
dev-libs/zziplib
|
|
|
|
media-libs/freetype:2
|
|
|
|
boost? ( dev-libs/boost )
|
|
|
|
freeimage? ( dev-libs/FreeImage )
|
|
|
|
gtk? ( x11-libs/gtk+ )
|
|
|
|
il? ( dev-libs/DevIL )
|
|
|
|
openexr? ( media-libs/openexr )
|
|
|
|
"
|
|
|
|
|
2008-12-03 20:05:14 +01:00
|
|
|
WORK="${WORKBASE}/${PN}"
|
|
|
|
|
2008-12-03 19:34:47 +01:00
|
|
|
src_configure() {
|
2009-05-22 17:47:54 +02:00
|
|
|
econf \
|
|
|
|
--disable-ogre-demos \
|
|
|
|
--disable-cg \
|
|
|
|
--disable-cegui \
|
|
|
|
--with-gui=$(option gtk && echo gtk || echo Xt) \
|
|
|
|
$(option_enable boost) \
|
|
|
|
$(option_enable freeimage) \
|
|
|
|
$(option_enable il devil) \
|
|
|
|
$(option_enable openexr)
|
2008-12-03 19:34:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
|
|
|
|
for what in Docs Samples ; do
|
|
|
|
insinto "/usr/share/doc/${PNVR}/${what}"
|
|
|
|
doins -r "${what}"/*
|
|
|
|
done
|
|
|
|
}
|