70 lines
1.7 KiB
Bash
70 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 freeimage gtk il openexr X
|
|
( freeimage il ) [[ 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 )
|
|
freeimage? ( media-libs/FreeImage )
|
|
gtk? ( x11-libs/gtk+ )
|
|
il? ( media-libs/DevIL )
|
|
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 freeimage) \
|
|
$(option_enable il devil) \
|
|
$(option_enable openexr) \
|
|
${myconf[@]}
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
dodoc -r Docs
|
|
}
|