diff options
author | Julian Ospald <hasufell@gentoo.org> | 2014-11-05 19:37:37 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2014-11-05 19:37:37 +0000 |
commit | f80cb7bd58a7ff9d80c1d13badc47cba51916b23 (patch) | |
tree | 7f10fa6286df915eb7af60f3f82d9ede8f7fc984 /dev-games | |
parent | Adjust libtool dep for new libltdl package. (diff) | |
download | gentoo-2-f80cb7bd58a7ff9d80c1d13badc47cba51916b23.tar.gz gentoo-2-f80cb7bd58a7ff9d80c1d13badc47cba51916b23.tar.bz2 gentoo-2-f80cb7bd58a7ff9d80c1d13badc47cba51916b23.zip |
fix bug #506058, thanks to Sven Eden
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
Diffstat (limited to 'dev-games')
-rw-r--r-- | dev-games/ogre/ChangeLog | 9 | ||||
-rw-r--r-- | dev-games/ogre/files/ogre-1.9.0-remove_media_path_to_bindir.patch | 13 | ||||
-rw-r--r-- | dev-games/ogre/files/ogre-1.9.0-remove_resource_path_to_bindir.patch | 14 | ||||
-rw-r--r-- | dev-games/ogre/metadata.xml | 2 | ||||
-rw-r--r-- | dev-games/ogre/ogre-1.9.0-r1.ebuild | 124 |
5 files changed, 161 insertions, 1 deletions
diff --git a/dev-games/ogre/ChangeLog b/dev-games/ogre/ChangeLog index b2e2a71ee850..2b34d8e3b6c8 100644 --- a/dev-games/ogre/ChangeLog +++ b/dev-games/ogre/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-games/ogre # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-games/ogre/ChangeLog,v 1.97 2014/03/08 23:22:37 hasufell Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-games/ogre/ChangeLog,v 1.98 2014/11/05 19:37:37 hasufell Exp $ + +*ogre-1.9.0-r1 (05 Nov 2014) + + 05 Nov 2014; Julian Ospald <hasufell@gentoo.org> +ogre-1.9.0-r1.ebuild, + +files/ogre-1.9.0-remove_media_path_to_bindir.patch, + +files/ogre-1.9.0-remove_resource_path_to_bindir.patch, metadata.xml: + fix bug #506058, thanks to Sven Eden 08 Mar 2014; Julian Ospald <hasufell@gentoo.org> ogre-1.8.1.ebuild, ogre-1.9.0.ebuild: diff --git a/dev-games/ogre/files/ogre-1.9.0-remove_media_path_to_bindir.patch b/dev-games/ogre/files/ogre-1.9.0-remove_media_path_to_bindir.patch new file mode 100644 index 000000000000..9af7685c7d77 --- /dev/null +++ b/dev-games/ogre/files/ogre-1.9.0-remove_media_path_to_bindir.patch @@ -0,0 +1,13 @@ +--- 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,6 @@ + + # CREATE CONFIG FILES - BUILD DIR VERSIONS + if (NOT OGRE_BUILD_PLATFORM_APPLE_IOS) +- set(OGRE_MEDIA_DIR_REL "${OGRE_SOURCE_DIR}/Samples/Media") +- set(OGRE_MEDIA_DIR_DBG "${OGRE_SOURCE_DIR}/Samples/Media") +- set(OGRE_TEST_MEDIA_DIR_REL "${OGRE_SOURCE_DIR}/Tests/Media") +- set(OGRE_TEST_MEDIA_DIR_DBG "${OGRE_SOURCE_DIR}/Tests/Media") + else () + # iOS needs to use relative paths in the config files + set(OGRE_MEDIA_DIR_REL "${OGRE_MEDIA_PATH}") diff --git a/dev-games/ogre/files/ogre-1.9.0-remove_resource_path_to_bindir.patch b/dev-games/ogre/files/ogre-1.9.0-remove_resource_path_to_bindir.patch new file mode 100644 index 000000000000..d73762859081 --- /dev/null +++ b/dev-games/ogre/files/ogre-1.9.0-remove_resource_path_to_bindir.patch @@ -0,0 +1,14 @@ +--- a/CMake/InstallResources.cmake 2013-12-01 18:28:12.000000000 +0100 ++++ b/CMake/InstallResources.cmake 2014-10-29 12:38:29.963602465 +0100 +@@ -201,11 +201,6 @@ + set(OGRE_PLUGIN_DIR_DBG "") + set(OGRE_SAMPLES_DIR_REL "") + set(OGRE_SAMPLES_DIR_DBG "") +-elseif (UNIX) +- set(OGRE_PLUGIN_DIR_REL "${OGRE_BINARY_DIR}/lib") +- set(OGRE_PLUGIN_DIR_DBG "${OGRE_BINARY_DIR}/lib") +- set(OGRE_SAMPLES_DIR_REL "${OGRE_BINARY_DIR}/lib") +- set(OGRE_SAMPLES_DIR_DBG "${OGRE_BINARY_DIR}/lib") + endif () + + if (MSVC AND NOT NMAKE) diff --git a/dev-games/ogre/metadata.xml b/dev-games/ogre/metadata.xml index 11af873f20b3..c9f8ae738ba8 100644 --- a/dev-games/ogre/metadata.xml +++ b/dev-games/ogre/metadata.xml @@ -78,7 +78,9 @@ Exporters <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="gles2">build OpenGL ES 2.x RenderSystem</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> diff --git a/dev-games/ogre/ogre-1.9.0-r1.ebuild b/dev-games/ogre/ogre-1.9.0-r1.ebuild new file mode 100644 index 000000000000..260348d71d98 --- /dev/null +++ b/dev-games/ogre/ogre-1.9.0-r1.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-games/ogre/ogre-1.9.0-r1.ebuild,v 1.1 2014/11/05 19:37:37 hasufell Exp $ + +EAPI=5 +CMAKE_REMOVE_MODULES="yes" +CMAKE_REMOVE_MODULES_LIST="FindFreetype" + +inherit eutils cmake-utils vcs-snapshot + +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.9.0" +KEYWORDS="~amd64 ~x86" + +# gles1 currently broken wrt bug #418201 +# gles1 does not even build wrt bug #506058 +IUSE="+boost cg doc double-precision examples +freeimage gl3plus gles2 gles3 ois +opengl poco profile tbb threads tools +zip" + +REQUIRED_USE="threads? ( ^^ ( boost poco tbb ) ) + poco? ( threads ) + tbb? ( threads ) + ?? ( gl3plus ( || ( gles2 gles3 ) ) ) + gles3? ( gles2 ) + gl3plus? ( opengl )" + +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-9.0.0[gles2] ) + gles3? ( >=media-libs/mesa-10.0.0[gles2] ) + gl3plus? ( >=media-libs/mesa-9.2.5 ) + 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 + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +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 + + # Fix some path issues + epatch "${FILESDIR}/${P}-remove_resource_path_to_bindir.patch" \ + "${FILESDIR}/${P}-remove_media_path_to_bindir.patch" +} + +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 gl3plus OGRE_BUILD_RENDERSYSTEM_GL3PLUS) + -DOGRE_BUILD_RENDERSYSTEM_GLES=FALSE + $(cmake-utils_use gles2 OGRE_BUILD_RENDERSYSTEM_GLES2) + $(cmake-utils_use gles3 OGRE_CONFIG_ENABLE_GLES3_SUPPORT) + $(cmake-utils_use profile OGRE_PROFILING) + $(cmake-utils_use examples OGRE_BUILD_SAMPLES) + $(cmake-utils_use examples OGRE_INSTALL_SAMPLES_SOURCE) + -DOGRE_BUILD_TESTS=FALSE + $(usex threads "-DOGRE_CONFIG_THREADS=2" "-DOGRE_CONFIG_THREADS=0") + $(cmake-utils_use tools OGRE_BUILD_TOOLS) + $(cmake-utils_use zip OGRE_CONFIG_ENABLE_ZIP) + ) + + if use threads ; then + local f + for f in boost poco tbb ; 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 + + # 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 +} |