diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-03-03 21:00:39 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-03-03 21:00:39 +0000 |
commit | 94f1485cd4b8900b55a585d1433e1ee5e9e9c0da (patch) | |
tree | 7f7d68c69677d8de7fa07da00acd569333b93851 /dev-games/ogre | |
parent | eapi=4 changes, diff for >=vdr-1.7.25 (diff) | |
download | gentoo-2-94f1485cd4b8900b55a585d1433e1ee5e9e9c0da.tar.gz gentoo-2-94f1485cd4b8900b55a585d1433e1ee5e9e9c0da.tar.bz2 gentoo-2-94f1485cd4b8900b55a585d1433e1ee5e9e9c0da.zip |
Version bump #307205 by Christoph Brill, Myckel Habets, and hasufell.
(Portage version: 2.2.0_alpha86/cvs/Linux x86_64)
Diffstat (limited to 'dev-games/ogre')
-rw-r--r-- | dev-games/ogre/ChangeLog | 11 | ||||
-rw-r--r-- | dev-games/ogre/files/ogre-1.7.4-gcc46.patch | 10 | ||||
-rw-r--r-- | dev-games/ogre/files/ogre-1.7.4-threading.patch | 77 | ||||
-rw-r--r-- | dev-games/ogre/metadata.xml | 7 | ||||
-rw-r--r-- | dev-games/ogre/ogre-1.7.4.ebuild | 84 |
5 files changed, 187 insertions, 2 deletions
diff --git a/dev-games/ogre/ChangeLog b/dev-games/ogre/ChangeLog index de521ba2e654..d71874a3561a 100644 --- a/dev-games/ogre/ChangeLog +++ b/dev-games/ogre/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-games/ogre -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-games/ogre/ChangeLog,v 1.72 2011/09/04 21:49:53 mr_bones_ Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-games/ogre/ChangeLog,v 1.73 2012/03/03 21:00:39 vapier Exp $ + +*ogre-1.7.4 (03 Mar 2012) + + 03 Mar 2012; Mike Frysinger <vapier@gentoo.org> +ogre-1.7.4.ebuild, + +files/ogre-1.7.4-gcc46.patch, +files/ogre-1.7.4-threading.patch, + metadata.xml: + Version bump #307205 by Christoph Brill, Myckel Habets, and hasufell. 04 Sep 2011; Michael Sterrett <mr_bones_@gentoo.org> ogre-1.6.5.ebuild: needs <dev-games/cegui-0.7.5 to build (bug #375503) diff --git a/dev-games/ogre/files/ogre-1.7.4-gcc46.patch b/dev-games/ogre/files/ogre-1.7.4-gcc46.patch new file mode 100644 index 000000000000..7fe766a0b994 --- /dev/null +++ b/dev-games/ogre/files/ogre-1.7.4-gcc46.patch @@ -0,0 +1,10 @@ +--- a/OgreMain/include/OgreOptimisedUtil.h ++++ b/OgreMain/include/OgreOptimisedUtil.h +@@ -29,6 +29,7 @@ Torus Knot Software Ltd. + #ifndef __OptimisedUtil_H__ + #define __OptimisedUtil_H__ + ++#include <cstddef> + #include "OgrePrerequisites.h" + #include "OgreEdgeListBuilder.h" + diff --git a/dev-games/ogre/files/ogre-1.7.4-threading.patch b/dev-games/ogre/files/ogre-1.7.4-threading.patch new file mode 100644 index 000000000000..13cf5634e53d --- /dev/null +++ b/dev-games/ogre/files/ogre-1.7.4-threading.patch @@ -0,0 +1,77 @@ +http://www.ogre3d.org/mantis/view.php?id=425 + +--- ogre_src_v1-7-4/OgreMain/include/OgreAtomicWrappers.h ++++ ogre_src_v1-7-4/OgreMain/include/OgreAtomicWrappers.h +@@ -31,6 +31,7 @@ + #include <signal.h> + #include "OgrePrerequisites.h" + #include "OgreException.h" ++#include "Threading/OgreThreadHeaders.h" + + namespace Ogre { + +--- ogre_src_v1-7-4/OgreMain/include/OgreCommon.h ++++ ogre_src_v1-7-4/OgreMain/include/OgreCommon.h +@@ -42,6 +42,8 @@ + # pragma GCC visibility pop + #endif + ++#include "Threading/OgreThreadHeaders.h" ++ + namespace Ogre { + /** \addtogroup Core + * @{ +--- ogre_src_v1-7-4/OgreMain/include/OgreConvexBody.h ++++ ogre_src_v1-7-4/OgreMain/include/OgreConvexBody.h +@@ -31,6 +31,7 @@ + + #include "OgrePrerequisites.h" + #include "OgrePolygon.h" ++#include "Threading/OgreThreadHeaders.h" + + + namespace Ogre +@@ -58,9 +59,7 @@ + + // Static 'free list' of polygons to save reallocation, shared between all bodies + static PolygonList msFreePolygons; +-#if OGRE_THREAD_SUPPORT + OGRE_STATIC_MUTEX(msFreePolygonsMutex) +-#endif + + public: + ConvexBody(); +--- ogre_src_v1-7-4/OgreMain/include/OgreLog.h ++++ ogre_src_v1-7-4/OgreMain/include/OgreLog.h +@@ -32,6 +32,8 @@ + #include "OgrePrerequisites.h" + #include "OgreString.h" + ++#include "Threading/OgreThreadHeaders.h" ++ + namespace Ogre { + + /** \addtogroup Core +--- ogre_src_v1-7-4/OgreMain/include/OgreSharedPtr.h ++++ ogre_src_v1-7-4/OgreMain/include/OgreSharedPtr.h +@@ -30,6 +30,8 @@ + + #include "OgrePrerequisites.h" + ++#include "Threading/OgreThreadHeaders.h" ++ + namespace Ogre { + /** \addtogroup Core + * @{ +--- ogre_src_v1-7-4/OgreMain/src/OgreConvexBody.cpp ++++ ogre_src_v1-7-4/OgreMain/src/OgreConvexBody.cpp +@@ -44,9 +44,7 @@ + // Statics + //----------------------------------------------------------------------- + ConvexBody::PolygonList ConvexBody::msFreePolygons; +-#if OGRE_THREAD_SUPPORT + OGRE_STATIC_MUTEX_INSTANCE(ConvexBody::msFreePolygonsMutex) +-#endif + //----------------------------------------------------------------------- + void ConvexBody::_initialisePool() + { diff --git a/dev-games/ogre/metadata.xml b/dev-games/ogre/metadata.xml index 4cc80de17f6d..7596d2bb0dcd 100644 --- a/dev-games/ogre/metadata.xml +++ b/dev-games/ogre/metadata.xml @@ -74,9 +74,16 @@ Exporters * Maya (meshes) </longdescription> <use> + <flag name="boost">enable boost support</flag> <flag name="cegui">build the CEGUI samples</flag> <flag name="cg">NVIDIA toolkit plugin</flag> <flag name="devil">image loading support with DevIL</flag> <flag name="double-precision">more precise calculations at the expense of speed</flag> + <flag name="freeimage">support images via freeimage</flag> + <flag name="ois">pull in Object-oriented Input System library for samples</flag> + <flag name="poco">when USE=threads, use poco for threading</flag> + <flag name="tbb">when USE=threads, use tbb for threading</flag> + <flag name="tools">build+install helper tools</flag> + <flag name="zip">support zip archives</flag> </use> </pkgmetadata> diff --git a/dev-games/ogre/ogre-1.7.4.ebuild b/dev-games/ogre/ogre-1.7.4.ebuild new file mode 100644 index 000000000000..07eccdd245c8 --- /dev/null +++ b/dev-games/ogre/ogre-1.7.4.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-games/ogre/ogre-1.7.4.ebuild,v 1.1 2012/03/03 21:00:39 vapier Exp $ + +EAPI="4" + +inherit eutils cmake-utils + +MY_PV=${PV//./-} +DESCRIPTION="Object-oriented Graphics Rendering Engine" +HOMEPAGE="http://www.ogre3d.org/" +SRC_URI="mirror://sourceforge/${PN}/${PN}_src_v${MY_PV}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+boost cg doc double-precision examples +freeimage ois +opengl poco profile tbb test threads tools +zip" +REQUIRED_USE="threads? ( || ( boost poco tbb ) )" +RESTRICT="test" #139905 + +RDEPEND="media-libs/freetype:2 + virtual/opengl + virtual/glu + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXrandr + x11-libs/libXt + boost? ( dev-libs/boost ) + cg? ( media-gfx/nvidia-cg-toolkit ) + freeimage? ( media-libs/freeimage ) + ois? ( dev-games/ois ) + threads? ( + poco? ( dev-libs/poco ) + tbb? ( dev-cpp/tbb ) + ) + zip? ( sys-libs/zlib dev-libs/zziplib )" +DEPEND="${RDEPEND} + x11-proto/xf86vidmodeproto + dev-util/pkgconfig + doc? ( app-doc/doxygen ) + test? ( dev-util/cppunit )" + +S=${WORKDIR}/${PN}_src_v${MY_PV} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc46.patch + epatch "${FILESDIR}"/${P}-threading.patch + sed -i \ + -e "s:share/OGRE/docs:share/doc/${PF}:" \ + Docs/CMakeLists.txt || die + # Stupid build system hardcodes release names + sed -i \ + -e '/CONFIGURATIONS/s:CONFIGURATIONS.*::' \ + CMake/Utils/OgreConfigTargets.cmake || die +} + +src_configure() { + local mycmakeargs=( + -DOGRE_FULL_RPATH=NO + $(cmake-utils_use boost OGRE_USE_BOOST) + $(cmake-utils_use cg OGRE_BUILD_PLUGIN_CG) + $(cmake-utils_use doc OGRE_INSTALL_DOCS) + $(cmake-utils_use double-precision OGRE_CONFIG_DOUBLE) + $(cmake-utils_use examples OGRE_INSTALL_SAMPLES) + $(cmake-utils_use freeimage OGRE_CONFIG_ENABLE_FREEIMAGE) + $(cmake-utils_use opengl OGRE_BUILD_RENDERSYSTEM_GL) + $(cmake-utils_use profile OGRE_PROFILING) + $(cmake-utils_use test OGRE_BUILD_TESTS) + $(cmake-utils_use threads OGRE_CONFIG_THREADS) + $(cmake-utils_use tools OGRE_BUILD_TOOLS) + $(cmake-utils_use zip OGRE_CONFIG_ENABLE_ZIP) + ) + + if use threads ; then + local f + for f in poco tbb boost ; do + use ${f} || continue + mycmakeargs+=( -DOGRE_CONFIG_THREAD_PROVIDER=${f} ) + break + done + fi + + cmake-utils_src_configure +} |