exherbo-impulze/packages/dev-libs/ogre/ogre-1.6.3.exheres-0
2009-08-04 16:11:52 +02:00

72 lines
1.7 KiB
Bash

# Copyright 2008, 2009 Daniel Mierswa <impulze@impulze.org>
# Distributed under the terms of the GNU General Public License v2
MYPV="$(ever replace_all -)"
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$MYPV.tar.bz2"
LICENCES="LGPL-2.1"
SLOT="0"
PLATFORMS="~amd64"
MYOPTIONS="
boost devil freeimage gtk openexr X
( devil freeimage ) [[ number-selected = at-most-one ]]
( X gtk ) [[ number-selected = exactly-one ]]
"
DEPENDENCIES="
build+run:
dev-libs/zziplib
media-libs/freetype:2
boost? ( dev-libs/boost )
devil? ( media-libs/DevIL )
freeimage? ( media-libs/FreeImage )
gtk? ( x11-libs/gtk+ )
openexr? ( media-libs/openexr )
X? (
x11-libs/libICE
x11-libs/libSM
x11-libs/libXt
)
x11-dri/mesa
x11-libs/libX11
x11-libs/libXext
x11-libs/libXrandr
x11-libs/libXxf86vm
"
WORK="$WORKBASE/$PN"
src_configure() {
local myconf
option X && myconf+=( --with-gui=Xt )
option gtk && myconf+=( --with-gui=gtk )
econf \
--disable-ogre-demos \
--disable-cg \
--disable-cegui \
$(option_enable boost) \
$(option_enable devil) \
$(option_enable freeimage) \
$(option_enable openexr) \
${myconf[@]}
}
src_install() {
default
dodoc -r Docs
}