summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <sven.eden@gmx.de>2018-03-23 09:30:35 +0100
committerSven Eden <sven.eden@gmx.de>2018-03-23 09:30:35 +0100
commita77d22421c5924ddb0af9d0f0631f7dec42f5b74 (patch)
tree5db14b07f9a69188ebdd8aebeaee261c243799d9
parentsys-auth/elogind-233.7 : Depend on glibc < 2.26, this version still uses the ... (diff)
downloadseden-a77d22421c5924ddb0af9d0f0631f7dec42f5b74.tar.gz
seden-a77d22421c5924ddb0af9d0f0631f7dec42f5b74.tar.bz2
seden-a77d22421c5924ddb0af9d0f0631f7dec42f5b74.zip
dev-games/ogre-1.10.11 : Ebuild for current stable release
-rw-r--r--dev-games/ogre/ChangeLog46
-rw-r--r--dev-games/ogre/Manifest1
-rw-r--r--dev-games/ogre/files/e1a54c79137d30b332abb645f05759900844b68a.patch32
-rw-r--r--dev-games/ogre/files/ogre-1.10.11-media_path.patch (renamed from dev-games/ogre/files/1.10.4-02_remove_media_path_to_bindir.patch)2
-rw-r--r--dev-games/ogre/files/ogre-1.10.11-resource_path.patch (renamed from dev-games/ogre/files/1.10.4-01_remove_resource_path_to_bindir.patch)2
-rw-r--r--dev-games/ogre/files/ogre-1.10.11-samples.patch13
-rw-r--r--dev-games/ogre/metadata.xml89
-rw-r--r--dev-games/ogre/ogre-1.10.11.ebuild115
-rw-r--r--dev-games/ogre/ogre-1.10.4-r1.ebuild146
9 files changed, 243 insertions, 203 deletions
diff --git a/dev-games/ogre/ChangeLog b/dev-games/ogre/ChangeLog
deleted file mode 100644
index c784596..0000000
--- a/dev-games/ogre/ChangeLog
+++ /dev/null
@@ -1,46 +0,0 @@
-# ChangeLog for dev-games/ogre
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: $
-
- 15 Mar 2016; Sven Eden <yamakuzure@gmx.net>
- -ogre-1.9.0-r2.ebuild :
- Long overdue cleanup.
-
-
-*ogre-1.9.0-r3 (03 Sep 2015)
-
- 03 Sep 2015; Sven Eden <yamakuzure@gmx.net> +ogre-1.9.0-r3.ebuild,
- + files/1.9.0-03_move_stowed_template_func.patch,
- - ogre-1.9.0-r1.ebuild :
-
- Fix bug 559472
-
-
-*ogre-1.9.0-r2 (29 Oct 2014)
-
- 29 Oct 2014; Sven Eden <yamakuzure@gmx.net> +ogre-1.9.0-r2.ebuild,
- + files/1.9.0-01_remove_resource_path_to_bindir.patch,
- + files/1.9.0-02_remove_media_path_to_bindir.patch :
-
- Instead of sed'ing the wrong paths away, two patches now remove the
- parts in CMake/InstallResources.cmake that overwrote the correctly
- detected paths with build directory paths.
-
- GLES1 is gone for good, its support couldn't be compiled in anyway.
- See bug #418201 and bug #506058
-
- Usage of global variables was reduced to only one (MY_PV), as the
- paths set are used in src_install() only anyway since the sed'ing
- is gone for good.
-
-
-*ogre-1.9.0-r1 (27 Mar 2014)
-
- 27 Mar 2014; Sven Eden <yamakuzure@gmx.net> +ogre-1.9.0-r1.ebuild :
- - Updated to install the configuration file with correct paths into
- /usr/share/OGRE - the path where ogre searches for them.
- - Test path is /usr/local/share/OGRE
- - All paths linked into /etc/OGRE for backwards compatibility.
- - Added USE flags 'gles3' and'gl3plus', to add experimental support for
- OpenGL 3+ and OpenGL ES 3.0 support.
-
diff --git a/dev-games/ogre/Manifest b/dev-games/ogre/Manifest
index 6f165ff..6278b35 100644
--- a/dev-games/ogre/Manifest
+++ b/dev-games/ogre/Manifest
@@ -1 +1,2 @@
+DIST ogre-1.10.11.zip 133064317 SHA256 2d14a685857865c4acfb54b8eddce31e423b0dd0a556cf563de47b31d1d40624 SHA512 db207aec8330ec9da2a9781c8753411e69e08008995b8b3e127d454dc05aa899c75157718398ca24998644c586e2dd30cc7e9b7d98e045e4575537f5c81a5a54 WHIRLPOOL e914d2aa9bdee60d6421c6462e054a56700e3ceb2f76d24b491304a6c5b4ef0a00de5c5743739d0e7bac279f7364feba6df74a38beeeb8cfde54ecc5b47adb34
DIST ogre-1.10.4.tar.bz2 134698188 SHA256 2fd3781ed533898602ced9ee528e9b42f0694ff8561e21341f44752e6d33d86b SHA512 6756648f7e90d8f6e6f49f85257f81be27b63c7b572028b97f9ded57d5a9256af39c0afba649190190565bd4a5b1b25354fb0d237e3b93453709bc4d49c777ad WHIRLPOOL 05ad8fd28787ed1cd847f02fcd5b2936615502c81ae455d4c6306184bccda3d8ae43cbb51348f3c104a27c64d9e9c567787869eb6ec15389c00f932b258c8c2f
diff --git a/dev-games/ogre/files/e1a54c79137d30b332abb645f05759900844b68a.patch b/dev-games/ogre/files/e1a54c79137d30b332abb645f05759900844b68a.patch
new file mode 100644
index 0000000..f00d27f
--- /dev/null
+++ b/dev-games/ogre/files/e1a54c79137d30b332abb645f05759900844b68a.patch
@@ -0,0 +1,32 @@
+From e1a54c79137d30b332abb645f05759900844b68a Mon Sep 17 00:00:00 2001
+From: niparx <koliap@gmail.com>
+Date: Fri, 5 Jan 2018 15:48:31 +0200
+Subject: [PATCH] [OGRE-592] RTShaderSystem compile error when using double
+ precision (#622)
+
+RTShaderSystem: compile error when using double precision
+
+https://ogre3d.atlassian.net/browse/OGRE-592
+---
+ Components/RTShaderSystem/src/OgreShaderFFPTexturing.cpp | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/Components/RTShaderSystem/src/OgreShaderFFPTexturing.cpp b/Components/RTShaderSystem/src/OgreShaderFFPTexturing.cpp
+index 2093b4da38..558be4ceea 100644
+--- a/Components/RTShaderSystem/src/OgreShaderFFPTexturing.cpp
++++ b/Components/RTShaderSystem/src/OgreShaderFFPTexturing.cpp
+@@ -654,8 +654,12 @@ void FFPTexturing::addPSArgumentInvocations(Function* psMain,
+ curFuncInvocation->pushOperand(ParameterFactory::createConstParam(Vector4(alphaValue)), Operand::OPS_IN);
+ }
+ else
+- {
+- curFuncInvocation->pushOperand(ParameterFactory::createConstParam(Vector4(colourValue.ptr())), Operand::OPS_IN);
++ {
++ curFuncInvocation->pushOperand(ParameterFactory::createConstParam(Vector4((Real)colourValue.r,
++ (Real)colourValue.g,
++ (Real)colourValue.b,
++ (Real)colourValue.a)),
++ Operand::OPS_IN);
+ }
+
+ curFuncInvocation->pushOperand(arg, Operand::OPS_OUT);
diff --git a/dev-games/ogre/files/1.10.4-02_remove_media_path_to_bindir.patch b/dev-games/ogre/files/ogre-1.10.11-media_path.patch
index c5b2ac8..4d2547a 100644
--- a/dev-games/ogre/files/1.10.4-02_remove_media_path_to_bindir.patch
+++ b/dev-games/ogre/files/ogre-1.10.11-media_path.patch
@@ -1,6 +1,6 @@
--- a/CMake/InstallResources.cmake 2014-10-29 12:43:49.000000000 +0100
+++ b/CMake/InstallResources.cmake 2014-10-29 12:46:10.017611431 +0100
-@@ -178,10 +178,11 @@
+@@ -165,10 +165,11 @@
# CREATE CONFIG FILES - BUILD DIR VERSIONS
if (NOT (APPLE_IOS OR WINDOWS_STORE OR WINDOWS_PHONE))
diff --git a/dev-games/ogre/files/1.10.4-01_remove_resource_path_to_bindir.patch b/dev-games/ogre/files/ogre-1.10.11-resource_path.patch
index a638987..9c39dfc 100644
--- a/dev-games/ogre/files/1.10.4-01_remove_resource_path_to_bindir.patch
+++ b/dev-games/ogre/files/ogre-1.10.11-resource_path.patch
@@ -1,6 +1,6 @@
--- a/CMake/InstallResources.cmake 2013-12-01 18:28:12.000000000 +0100
+++ b/CMake/InstallResources.cmake 2014-10-29 12:38:29.963602465 +0100
-@@ -202,10 +202,11 @@
+@@ -189,10 +189,11 @@
set(OGRE_SAMPLES_DIR_REL "")
set(OGRE_SAMPLES_DIR_DBG "")
elseif (UNIX)
diff --git a/dev-games/ogre/files/ogre-1.10.11-samples.patch b/dev-games/ogre/files/ogre-1.10.11-samples.patch
new file mode 100644
index 0000000..80b989e
--- /dev/null
+++ b/dev-games/ogre/files/ogre-1.10.11-samples.patch
@@ -0,0 +1,13 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -536,7 +536,9 @@
+ endif ()
+
+ # Setup samples
+-add_subdirectory(Samples)
++if (OGRE_BUILD_SAMPLES)
++ add_subdirectory(Samples)
++endif ()
+
+ #Add android JNI binding
+ if(ANDROID)
diff --git a/dev-games/ogre/metadata.xml b/dev-games/ogre/metadata.xml
index fe6b332..42d8eb1 100644
--- a/dev-games/ogre/metadata.xml
+++ b/dev-games/ogre/metadata.xml
@@ -1,25 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd />
-<maintainer>
- <email>yamakuzure@gmx.net</email>
- <description>Only through my private overlay - STRICTLY EXPERIMENTAL!</description>
-</maintainer>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <longdescription>
+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 games and demos utilising 3D hardware. The class library abstracts all
+the details of using the underlying system libraries like Direct3D and OpenGL and
+provides an interface based on world objects and other intuitive classes.
+
+Productivity features
+
+ * Simple, easy to use OO interface designed to minimise the effort required to render 3D scenes, and to be independent of 3D implementation e.g. Direct3D/OpenGL/Glide etc.
+ * Extensible example framework makes getting your application running is quick and simple
+ * Common requirements like render state management, hierarchical culling, dealing with transparency are done for you automatically saving you valuable time
+ * Clean, uncluttered design and full documentation of all engine classes
+
+Platform and 3D API support
+
+ * Direct3D and OpenGL support
+ * Windows (all major versions), Linux and Mac OSX support
+ * Builds on Visual C++ 6 (with STLport), Visual C++.Net (with STLport), Visual C++.Net 2003
+ * Builds on gcc 3+ on Linux / Mac OSX
+
+Material / Shader support
+
+ * Load textures from PNG, JPEG or TGA files, MipMaps generated automatically, resizes maps to align with hardware requirements
+ * Procedural texture coordinate generation (e.g. environment mapping) and modification (scrolls, warps, rotations)
+ * Unbounded number of texture layers with many texture blending effects, animated textures
+ * Multitexturing hardware used to best effect automatically, combined with automatic fallback to mulitpass rendering
+ * Object transparency and other scene-level blending effects
+ * All defineable through text scripts to allow you to set up and tweak advanced materials without recompiling
+
+Meshes
+
+ * Flexible mesh data formats accepted
+ * Export from Milkshape3D direct to OGRE .mesh and .skeleton format
+ * Skeletal animation (including blending of multiple animations)
+ * Biquadric Bezier patches for curved surfaces
+ * Progressive meshes
+
+Scene Features
+
+ * Highly customisable, flexible scene management, not tied to any single scene type. Use predefined classes for scene organisation if they suit or plug in your own subclass to gain full control over the scene organisation
+ * Generic SceneManager hierarchically culls by bounding volumes
+ * Example plugin (BspSceneManager) specialises to allow fast indoor renders, loading Quake3 levels inc. shader script parsing support
+ * Hierarchical scene graph; nodes allow objects to be attached to each other and follow each others movements, articulated structures etc
+ * Scene querying features
+
+Special Effects
+
+ * Particle Systems, including easily extensible emitters and affectors (customisable through plugins). Systems can be defined in text scripts for easy tweaking. Automatic use of particle pooling for maximum performance
+ * Support for skyboxes, skyplanes and skydomes, very easy to use
+ * Billboarding for sprite graphics
+ * Transparent objects automatically managed (rendering order and depth buffer settings all set up for you)
+
+Misc features
+
+ * Common resource infrastructure for memory management and loading from archives (ZIP, PK3)
+ * Flexible plugin architecture allows engine to be extended without recompilation
+ * 'Controllers' allow you to easily organise derived values between objects e.g. changing the colour of a ship based on shields left
+ * Debugging memory manager for identifying memory leaks
+ * ReferenceAppLayer provides an example of how to combine OGRE with other libraries, for example ODE for collision and physics
+ * XMLConverter to convert efficient runtime binary formats to/from XML for interchange or editing
+
+Exporters
+
+ * 3D Studio Max (meshes and animation)
+ * Milkshape 3D (meshes and animation)
+ * Blender3D (meshes)
+ * Wings3D (meshes)
+ * VRML97 (meshes)
+ * Maya (meshes)
+ </longdescription>
<use>
<flag name="boost">enable boost support</flag>
<flag name="cg">NVIDIA toolkit plugin</flag>
<flag name="double-precision">more precise calculations at the expense of speed</flag>
<flag name="freeimage">support images via freeimage</flag>
- <flag name="gl3plus">build OpenGL 3+ RenderSystem (EXPERIMENTAL)</flag>
- <flag name="gles1">build OpenGL ES 1.x RenderSystem</flag>
+ <flag name="gl3plus">Build OpenGL 3+ RenderSystem (EXPERIMENTAL)</flag>
<flag name="gles2">build OpenGL ES 2.x RenderSystem</flag>
- <flag name="gles3">add ES 3.0 support in the OpenGL ES 2.x RenderSystem (EXPERIMENTAL)</flag>
+ <flag name="gles3">Enable OpenGL ES 3.x Features</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="source">Install the examples sources</flag>
<flag name="tools">build+install helper tools</flag>
<flag name="zip">support zip archives</flag>
</use>
+ <upstream>
+ <remote-id type="bitbucket">sinbad/ogre</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/dev-games/ogre/ogre-1.10.11.ebuild b/dev-games/ogre/ogre-1.10.11.ebuild
new file mode 100644
index 0000000..1c39412
--- /dev/null
+++ b/dev-games/ogre/ogre-1.10.11.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils cmake-utils vcs-snapshot
+
+DESCRIPTION="Object-oriented Graphics Rendering Engine"
+HOMEPAGE="http://www.ogre3d.org/"
+SRC_URI="https://github.com/OGRECave/${PN}/archive/v${PV}.zip -> ${P}.zip"
+
+LICENSE="MIT public-domain"
+SLOT="0/1.10.0"
+KEYWORDS=""
+
+IUSE="cg doc double-precision examples +freeimage gl3plus gles2 gles3 ois +opengl profile tools"
+
+REQUIRED_USE="examples? ( ois )
+ gles3? ( gles2 )
+ gl3plus? ( opengl )"
+
+RESTRICT="test" #139905
+
+RDEPEND="
+ cg? ( media-gfx/nvidia-cg-toolkit )
+ dev-libs/boost
+ dev-libs/zziplib
+ freeimage? ( media-libs/freeimage )
+ gl3plus? ( >=media-libs/mesa-9.2.5 )
+ gles2? ( >=media-libs/mesa-9.0.0[gles2] )
+ gles3? ( >=media-libs/mesa-10.0.0[gles2] )
+ media-libs/freetype:2
+ ois? ( dev-games/ois )
+ tools? ( dev-libs/tinyxml[stl] )
+ virtual/glu
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXrandr
+ x11-libs/libXt"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ virtual/pkgconfig
+ x11-proto/xf86vidmodeproto"
+PATCHES=(
+ "${FILESDIR}/${P}-samples.patch"
+ "${FILESDIR}/${P}-resource_path.patch"
+ "${FILESDIR}/${P}-media_path.patch"
+ "${FILESDIR}/e1a54c79137d30b332abb645f05759900844b68a.patch"
+)
+
+src_prepare() {
+ 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 Release.*::' \
+ CMake/Utils/OgreConfigTargets.cmake || die
+
+ # make sure we're not using the included tinyxml
+ # Update for 1.10.11: Unfortunately the build system does not
+ # search for a system wide tinyxml at this moment. However,
+ # TinyXML is meant to be built into and not linked to a using
+ # project anyway.
+ # rm -f Tools/XMLConverter/{include,src}/tiny*.*
+
+ # Fix some path issues
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DOGRE_BUILD_COMPONENT_JAVA=NO
+ -DOGRE_BUILD_COMPONENT_PYTHON=NO
+ -DOGRE_BUILD_DEPENDENCIES=NO
+ -DOGRE_BUILD_PLUGIN_CG=$(usex cg)
+ -DOGRE_BUILD_SAMPLES=$(usex examples)
+ -DOGRE_BUILD_TESTS=FALSE
+ -DOGRE_BUILD_TOOLS=$(usex tools)
+ -DOGRE_CONFIG_DOUBLE=$(usex double-precision)
+ -DOGRE_CONFIG_ENABLE_FREEIMAGE=$(usex freeimage)
+ -DOGRE_CONFIG_THREADS=3
+ -DOGRE_CONFIG_THREAD_PROVIDER=std
+ -DOGRE_FULL_RPATH=NO
+ -DOGRE_INSTALL_DOCS=$(usex doc)
+ -DOGRE_INSTALL_SAMPLES=$(usex examples)
+ -DOGRE_INSTALL_SAMPLES_SOURCE=$(usex examples)
+ -DOGRE_NODE_STORAGE_LEGACY=NO
+ -DOGRE_PROFILING=$(usex profile)
+ -DOGRE_RESOURCEMANAGER_STRICT=strict
+ -DOGRE_USE_STD11=YES
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ CONFIGDIR=/etc/OGRE
+ SHAREDIR=/usr/share/OGRE
+
+ # plugins and resources are the main configuration
+ insinto "${CONFIGDIR}"
+ doins "${CMAKE_BUILD_DIR}"/bin/plugins.cfg
+ doins "${CMAKE_BUILD_DIR}"/bin/resources.cfg
+ dosym "${CONFIGDIR}"/plugins.cfg "${SHAREDIR}"/plugins.cfg
+ dosym "${CONFIGDIR}"/resources.cfg "${SHAREDIR}"/resources.cfg
+
+ # These are only for the sample browser
+ insinto "${SHAREDIR}"
+ doins "${CMAKE_BUILD_DIR}"/bin/quakemap.cfg
+ doins "${CMAKE_BUILD_DIR}"/bin/samples.cfg
+}
diff --git a/dev-games/ogre/ogre-1.10.4-r1.ebuild b/dev-games/ogre/ogre-1.10.4-r1.ebuild
deleted file mode 100644
index d8f2297..0000000
--- a/dev-games/ogre/ogre-1.10.4-r1.ebuild
+++ /dev/null
@@ -1,146 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=6
-
-inherit eutils cmake-utils vcs-snapshot versionator
-
-MY_PV=$(get_version_component_range 1-3)
-
-DESCRIPTION="Object-oriented Graphics Rendering Engine"
-HOMEPAGE="http://www.ogre3d.org/"
-SRC_URI="https://bitbucket.org/sinbad/ogre/get/v${PV//./-}.tar.bz2 -> ${P}.tar.bz2"
-
-LICENSE="MIT public-domain"
-SLOT="0/1.10.0"
-KEYWORDS="~amd64 ~x86"
-
-IUSE="\
- +boost cg doc double-precision examples +freeimage gl3plus gles2 \
- gles3 ois +opengl poco profile source tbb threads tools +zip"
-
-REQUIRED_USE="
- gl3plus? ( !gles2 !gles3 opengl )
- gles2? ( !gl3plus )
- gles3? ( !gl3plus gles2 )
- poco? ( !tbb threads )
- tbb? ( !poco threads )
- threads? ( || ( boost poco tbb ) )
-"
-
-RESTRICT="test" #139905
-
-RDEPEND="
- dev-libs/tinyxml
- 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 )
- gles2? ( media-libs/mesa[gles2] )
- gl3plus? ( || (
- media-libs/mesa[dri3]
- x11-drivers/nvidia-drivers
- x11-drivers/xf86-video-amdgpu
- ) )
- ois? ( dev-games/ois )
- opengl? ( virtual/opengl )
- poco? ( dev-libs/poco )
- tbb? ( dev-cpp/tbb )
- zip? ( sys-libs/zlib dev-libs/zziplib )"
-
-DEPEND="${RDEPEND}
- x11-proto/xf86vidmodeproto
- virtual/pkgconfig
- doc? ( app-doc/doxygen )"
-
-PATCHES=(
- "${FILESDIR}"/1.10.4-01_remove_resource_path_to_bindir.patch
- "${FILESDIR}"/1.10.4-02_remove_media_path_to_bindir.patch
-)
-
-src_prepare() {
-
- default
-
- 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 Release.*::' \
- CMake/Utils/OgreConfigTargets.cmake || die
-
-}
-
-src_configure() {
- local mycmakeargs=(
- -DOGRE_FULL_RPATH=NO
- -DOGRE_BUILD_PLUGIN_CG="$(usex cg)"
- -DOGRE_INSTALL_DOCS="$(usex doc)"
- -DOGRE_CONFIG_DOUBLE="$(usex double-precision)"
- -DOGRE_INSTALL_SAMPLES="$(usex examples)"
- -DOGRE_CONFIG_ENABLE_FREEIMAGE="$(usex freeimage)"
- -DOGRE_BUILD_DEPENDENCIES=FALSE
- -DOGRE_BUILD_RENDERSYSTEM_GL="$(usex opengl)"
- -DOGRE_BUILD_RENDERSYSTEM_GL3PLUS="$(usex gl3plus)"
- -DOGRE_BUILD_RENDERSYSTEM_GLES2="$(usex gles2)"
- -DOGRE_CONFIG_ENABLE_GLES3_SUPPORT="$(usex gles3)"
- -DOGRE_GLSUPPORT_USE_EGL=FALSE
- -DOGRE_PROFILING="$(usex profile)"
- -DOGRE_BUILD_SAMPLES="$(usex examples)"
- -DOGRE_INSTALL_SAMPLES_SOURCE="$(usex source)"
- -DOGRE_BUILD_TESTS=FALSE
- -DOGRE_CONFIG_THREADS=$(usex threads 2 0)
- -DOGRE_BUILD_TOOLS="$(usex tools)"
- -DOGRE_CONFIG_ENABLE_ZIP="$(usex 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
-}
-
-src_install() {
- cmake-utils_src_install
-
- CONFIGDIR=/etc/OGRE
- SHAREDIR=/usr/share/OGRE
- TESTDIR=/usr/local/share/OGRE
-
- # plugins and resources are the main configuration
- insinto ${CONFIGDIR}
- doins "${CMAKE_BUILD_DIR}"/bin/plugins.cfg
- doins "${CMAKE_BUILD_DIR}"/bin/resources.cfg
- dosym ${CONFIGDIR}/plugins.cfg ${SHAREDIR}/plugins.cfg
- dosym ${CONFIGDIR}/resources.cfg ${SHAREDIR}/resources.cfg
-
- # The testdir needs to be created
- mkdir -p "${D}/${TESTDIR}"
-
- # Use video group, as OGRE is a rendering engine you need to be in the
- # video group to use anyway. (Ogre3D is not a game engine, actually I
- # think dev-games is the wrong category anyway.)
- chown :video "${D}/${TESTDIR}"
- chmod g+rwX "${D}/${TESTDIR}"
-
- # These are only for the sample browser
- insinto ${SHAREDIR}
- doins "${CMAKE_BUILD_DIR}"/bin/quakemap.cfg
- doins "${CMAKE_BUILD_DIR}"/bin/samples.cfg
-
- # tests.cfg is not needed
-}