From 58914a4d89222dac2dabe4c5d46249b8836a572f Mon Sep 17 00:00:00 2001 From: Daniel Mierswa Date: Sun, 24 May 2009 03:59:34 +0200 Subject: [PATCH] ogre version bump to 1.6.2, cleaned it up a bit --- ...e-1.6.0.exheres-0 => ogre-1.6.2.exheres-0} | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) rename packages/dev-libs/ogre/{ogre-1.6.0.exheres-0 => ogre-1.6.2.exheres-0} (65%) diff --git a/packages/dev-libs/ogre/ogre-1.6.0.exheres-0 b/packages/dev-libs/ogre/ogre-1.6.2.exheres-0 similarity index 65% rename from packages/dev-libs/ogre/ogre-1.6.0.exheres-0 rename to packages/dev-libs/ogre/ogre-1.6.2.exheres-0 index d754f55..eb74c61 100644 --- a/packages/dev-libs/ogre/ogre-1.6.0.exheres-0 +++ b/packages/dev-libs/ogre/ogre-1.6.2.exheres-0 @@ -1,20 +1,23 @@ -# Copyright 2008 Daniel Mierswa +# Copyright 2008, 2009 Daniel Mierswa # 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${PV//./-}.tar.bz2" +DOWNLOADS="mirror://sourceforge/$PN/$PN-v$MYPV.tar.bz2" LICENCES="LGPL-2.1" SLOT="0" PLATFORMS="~amd64" MYOPTIONS=" - boost freeimage gtk il openexr + boost freeimage gtk il openexr X ( freeimage il ) [[ number-selected = at-most-one ]] + ( X gtk ) [[ number-selected = exactly-one ]] " DEPENDENCIES=" @@ -26,27 +29,34 @@ DEPENDENCIES=" gtk? ( x11-libs/gtk+ ) il? ( media-libs/DevIL ) openexr? ( media-libs/openexr ) + X? ( + x11-libs/libICE + x11-libs/libSM + x11-libs/libXt + ) " -WORK="${WORKBASE}/${PN}" +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 \ - --with-gui=$(option gtk && echo gtk || echo Xt) \ $(option_enable boost) \ $(option_enable freeimage) \ $(option_enable il devil) \ - $(option_enable openexr) + $(option_enable openexr) \ + ${myconf[@]} } src_install() { default - for what in Docs Samples ; do - insinto "/usr/share/doc/${PNVR}/${what}" - doins -r "${what}"/* - done + dodoc -r Docs }