commit:     e13b084ed72fb33cd4b7896d5afe5b84b9f2ce46
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Sat Nov 22 06:12:26 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 22 11:47:55 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e13b084e

dev-games/ogre: add 14.4.1

Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44718
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-games/ogre/Manifest           |   1 +
 dev-games/ogre/ogre-14.4.1.ebuild | 182 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 183 insertions(+)

diff --git a/dev-games/ogre/Manifest b/dev-games/ogre/Manifest
index b0cca507dcc9..b5427d15c77e 100644
--- a/dev-games/ogre/Manifest
+++ b/dev-games/ogre/Manifest
@@ -2,3 +2,4 @@ DIST imgui-1.91.2.tar.gz 1751558 BLAKE2B 
f5c9b7641424b87564963c878f7ee745a33b4ae
 DIST imgui-1.91.9b.tar.gz 1846599 BLAKE2B 
4e12b099b186ee082da18baeb7b5a0418abba73a3f9d3bf79a720258acc6ed2052e8cea867321235fb5df30536a41b4e467dc55365cd5af781032713a179b8c4
 SHA512 
5d0b7fd9949242ef818531df298ad206bbd0d1e152cd06e6cd6eaab12a63ef836468d316e96cb3c4b368e29e5079d4f9f5ae204fc901a39d8ff6462d9133a5fa
 DIST ogre-14.3.4.tar.gz 94000790 BLAKE2B 
dd87af3a18cd4da459104ccdf06f0f035f3dbb68524845e9d778c2186be66272ac4fa5d70188f1960fbe001519c5706d5a9fff1f7e8800ec19424ac5b25abf56
 SHA512 
92d384daa5221850d89e3367a26a04db093736699664cfdfc3e0539f2bc64ebdfacaa5f24c5229f3a44d1e0e7e9b796d8686c42e7e7133b38fc61947642cbf55
 DIST ogre-14.4.0.tar.gz 94148698 BLAKE2B 
9560629dc0da54e64bd29ced307a63ecb41203f772ed7adef69c19742ab0c4b45e6bb890969da66d51a2ac219df2d51e492143af2f7c4d925ae2a1cddc74faf6
 SHA512 
2752d2c585aa92c53f8c223d3e06964bea98240ac9536b3d4a943a7459e29b96f62e16a9e71ea72aac0744f180a96748aa7cd4eac91f7d72d11333846b18f33a
+DIST ogre-14.4.1.tar.gz 94149361 BLAKE2B 
ece4e0b122b7313f9cc0afffdbbf483f9c6f51349fe33ff5bb9c105c6c24c3e7f990020332bb226e210121b6c17887a5707fcc126dce1739f87d17e8d585c08a
 SHA512 
fbacb7c94beb1ba16b9f2185556c83086be3fb89196566e91bdb7a7655adda8139f1344aaa267d5fce7d83798f20e2f8fa31a9ad823bcbd1c3090c9c13d51183

diff --git a/dev-games/ogre/ogre-14.4.1.ebuild 
b/dev-games/ogre/ogre-14.4.1.ebuild
new file mode 100644
index 000000000000..ff10227c1907
--- /dev/null
+++ b/dev-games/ogre/ogre-14.4.1.ebuild
@@ -0,0 +1,182 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic virtualx
+
+# Components/Overlay/CMakeLists.txt
+IMGUI_PV="1.91.9b"
+
+DESCRIPTION="Object-oriented Graphics Rendering Engine"
+HOMEPAGE="https://www.ogre3d.org/";
+SRC_URI="
+       https://github.com/OGRECave/ogre/archive/refs/tags/v${PV}.tar.gz
+               -> ${P}.tar.gz
+       https://github.com/ocornut/imgui/archive/v${IMGUI_PV}.tar.gz
+               -> imgui-${IMGUI_PV}.tar.gz
+"
+
+LICENSE="MIT public-domain"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64 ~arm ~x86"
+
+IUSE="assimp bullet cg doc +dotscene egl-only freeimage +gl3plus gles2 glslang 
opengl qt6 samples test tiny tools sdl vulkan wayland"
+REQUIRED_USE="
+       || ( gl3plus gles2 opengl tiny vulkan )
+       egl-only? ( || ( gl3plus gles2 opengl ) )
+       test? ( samples )
+       vulkan? ( glslang )
+       wayland? ( egl-only )
+"
+# vulkan broken, proper handling required for wayland
+RESTRICT="
+       !test? ( test )
+       vulkan? ( test )
+       wayland? ( test )
+"
+
+# freetype and zlib are automagic
+# vulkan-loader is dlopen'd
+RDEPEND="
+       media-libs/freetype:2
+       virtual/zlib:=
+       assimp? ( media-libs/assimp:= )
+       bullet? ( sci-physics/bullet:= )
+       cg? ( media-gfx/nvidia-cg-toolkit )
+       dotscene? ( dev-libs/pugixml )
+       freeimage? ( media-libs/freeimage )
+       gl3plus? ( virtual/opengl )
+       glslang? ( dev-util/glslang:= )
+       gles2? ( virtual/opengl )
+       opengl? ( virtual/opengl )
+       qt6? ( dev-qt/qtbase:6[gui] )
+       sdl? ( media-libs/libsdl2 )
+       tools? ( dev-libs/pugixml )
+       vulkan? ( media-libs/vulkan-loader )
+       wayland? ( dev-libs/wayland )
+       !wayland? (
+               x11-libs/libX11
+               x11-libs/libXaw
+               x11-libs/libXt
+               gl3plus? ( x11-libs/libXrandr )
+               gles2? ( x11-libs/libXrandr )
+               opengl? ( x11-libs/libXrandr )
+       )
+"
+DEPEND="${RDEPEND}
+       test? ( dev-cpp/gtest )
+       vulkan? ( dev-util/vulkan-headers )
+"
+BDEPEND="
+       virtual/pkgconfig
+       doc? ( app-text/doxygen[dot] )
+"
+
+src_prepare() {
+       cmake_src_prepare
+
+       # Users should set this via their CFLAGS (like -march)
+       sed -e '/check_cxx_compiler_flag(-msse OGRE_GCC_HAS_SSE)/d' \
+               -i CMakeLists.txt || die
+
+       # Force Qt6
+       sed -e '/find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Gui QUIET 
CONFIG)/ { s/Qt5// }' \
+               -i CMake/Dependencies.cmake || die
+
+       # Lets not install test binaries
+       sed -e '/ogre_install_target(Test_Ogre "" FALSE)/d' \
+               -i Tests/CMakeLists.txt || die
+}
+
+src_configure() {
+       # odr violations
+       filter-lto
+
+       local mycmakeargs=(
+               # 
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb809aeadee57ffa24591e60cfb41aecd4823090
+               -DOGRE_ENABLE_PRECOMPILED_HEADERS=OFF
+
+               -DOGRE_BUILD_COMPONENT_BITES=ON
+               -DOGRE_BUILD_COMPONENT_BULLET=$(usex bullet)
+               -DOGRE_BUILD_COMPONENT_CSHARP=OFF
+               -DOGRE_BUILD_COMPONENT_JAVA=OFF
+               -DOGRE_BUILD_COMPONENT_MESHLODGENERATOR=ON
+               -DOGRE_BUILD_COMPONENT_OVERLAY=ON
+               -DOGRE_BUILD_COMPONENT_OVERLAY_IMGUI=ON
+               -DOGRE_BUILD_COMPONENT_PAGING=ON
+               -DOGRE_BUILD_COMPONENT_PROPERTY=ON
+               -DOGRE_BUILD_COMPONENT_PYTHON=OFF
+               -DOGRE_BUILD_COMPONENT_RTSHADERSYSTEM=ON
+               -DOGRE_BUILD_COMPONENT_TERRAIN=ON
+               -DOGRE_BUILD_COMPONENT_VOLUME=ON
+
+               -DOGRE_BUILD_PLUGIN_ASSIMP=$(usex assimp)
+               -DOGRE_BUILD_PLUGIN_BSP=ON
+               -DOGRE_BUILD_PLUGIN_CG=$(usex cg) # "deprecated"
+               -DOGRE_BUILD_PLUGIN_DOT_SCENE=$(usex dotscene)
+               -DOGRE_BUILD_PLUGIN_EXRCODEC=OFF # "deprecated" and doesn't work
+               -DOGRE_BUILD_PLUGIN_FREEIMAGE=$(usex freeimage) # "deprecated"
+               -DOGRE_BUILD_PLUGIN_GLSLANG=$(usex glslang)
+               -DOGRE_BUILD_PLUGIN_OCTREE=ON
+               -DOGRE_BUILD_PLUGIN_PCZ=ON
+               -DOGRE_BUILD_PLUGIN_PFX=ON
+               -DOGRE_BUILD_PLUGIN_RSIMAGE=OFF # rust
+               -DOGRE_BUILD_PLUGIN_STBI=ON # vendored stb headers
+
+               -DOGRE_BUILD_RENDERSYSTEM_GL=$(usex opengl)
+               -DOGRE_BUILD_RENDERSYSTEM_GL3PLUS=$(usex gl3plus)
+               -DOGRE_BUILD_RENDERSYSTEM_GLES2=$(usex gles2)
+               # "BETA". Tests will not pass with this
+               -DOGRE_BUILD_RENDERSYSTEM_VULKAN=$(usex vulkan)
+               -DOGRE_BUILD_RENDERSYSTEM_TINY=$(usex tiny)
+
+               -DOGRE_BUILD_SAMPLES=$(usex samples)
+               -DOGRE_INSTALL_SAMPLES=$(usex samples)
+               -DOGRE_BUILD_TOOLS=$(usex tools)
+               -DOGRE_INSTALL_TOOLS=$(usex tools)
+               -DOGRE_BUILD_XSIEXPORTER=OFF # softimage
+               -DOGRE_BUILD_TESTS=$(usex test)
+
+               -DOGRE_BUILD_DEPENDENCIES=OFF
+               -DIMGUI_DIR="${WORKDIR}/imgui-${IMGUI_PV}"
+
+               -DOGRE_CFG_INSTALL_PATH="/etc/OGRE"
+               -DOGRE_MEDIA_PATH="share/OGRE/Media"
+
+               -DOGRE_DOCS_PATH="share/docs/${PF}"
+               -DOGRE_INSTALL_DOCS=$(usex doc)
+
+               $(cmake_use_find_package qt6 QT)
+               $(cmake_use_find_package sdl SDL2)
+       )
+
+       if use gl3plus || use gles2 || use opengl ; then
+               mycmakeargs+=(
+                       # TODO: wayland support needs more work.
+                       # tests don't run with tinywl and it doesnt work at 
runtime
+                       -DOGRE_USE_WAYLAND=$(usex wayland)
+                       -DOGRE_GLSUPPORT_USE_EGL=$(usex egl-only)
+               )
+       fi
+
+       cmake_src_configure
+}
+
+src_compile() {
+       cmake_src_compile
+       use doc && cmake_build OgreDoc
+}
+
+src_test() {
+       virtx cmake_src_test
+}
+
+pkg_postinst() {
+       if use samples; then
+               elog "If you experience crashes when starting 
/usr/bin/SampleBrowser,"
+               elog "remove the cache directory at:"
+               elog "  '~/.cache/OGRE Sample Browser'"
+               elog "first, before filing a bug report."
+       fi
+}

Reply via email to