From fc2f1018fc323ef2c6572734a9b130427cba76a6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 3 Nov 2021 06:47:15 +0000 Subject: gentoo resync : 03.11.2021 --- dev-games/ogre/Manifest | 4 +- dev-games/ogre/ogre-1.12.9-r1.ebuild | 208 +++++++++++++++++++++++++++++++++++ dev-games/ogre/ogre-1.12.9.ebuild | 208 ----------------------------------- dev-games/ogre/ogre-2.1-r1.ebuild | 196 +++++++++++++++++++++++++++++++++ dev-games/ogre/ogre-2.1.ebuild | 196 --------------------------------- 5 files changed, 406 insertions(+), 406 deletions(-) create mode 100644 dev-games/ogre/ogre-1.12.9-r1.ebuild delete mode 100644 dev-games/ogre/ogre-1.12.9.ebuild create mode 100644 dev-games/ogre/ogre-2.1-r1.ebuild delete mode 100644 dev-games/ogre/ogre-2.1.ebuild (limited to 'dev-games/ogre') diff --git a/dev-games/ogre/Manifest b/dev-games/ogre/Manifest index 4bc3a9a9a0a3..3e77c80aad5f 100644 --- a/dev-games/ogre/Manifest +++ b/dev-games/ogre/Manifest @@ -20,7 +20,7 @@ DIST imgui-1.77.tar.gz 1269147 BLAKE2B be0db9b77903664db0fadf1672ec23983dc89292f DIST ogre-1.12.9.tar.gz 125955067 BLAKE2B 5676690d2d9db8c4c903b7bf3e7660ddf5c0675eb11e1b34f08a5a50739d6212e986c7b500173ad5edab4835d96c705f86cc0fd37e1ff1e64a161ab1ce8968df SHA512 a80525a4924a430ccac3f01f93a5f36b4b9d2f7671ef0629d7dd21d3651ea7a698d5cc520eb814c6ee4c0ee7efcd3f6a8f16688773300a25537636bb61eba286 DIST ogre-1.9.0.tar.bz2 128098305 BLAKE2B 6e67a5b60a6606a910e099f1c7ba736eb525f079f3aba5cfb362329b9130059d303fc9df6f7b8611c0ba75e1e207fa018e543e93c9f5ce39a6621e4c72ed4a83 SHA512 b1ea93d80ac0978a7c228460a6714f8d17797450efd5af6765c9fa4402e9060a8ef3a700d2757593a3016fdc32276722c8f4a5d9889a3e2eb424f16162a52bde DIST ogre-2.1.tar.gz 157457252 BLAKE2B 97e83cb93a07de5bd5f4fd778604e6146105e70045a6019f0fcdd7f96fe20f6ad495e19988dcd5e4c4073a0bcdeb5ce2afb06fae6945363c397a882672c80520 SHA512 9802e3bf20ddb09453524d1ddafa7a2083dfd0e609563f478fe31b087dd06d463f69800b9c6485cb3db92d98f282ef67ace3e272c1ef531e982ea9f719617fb5 -EBUILD ogre-1.12.9.ebuild 5879 BLAKE2B 40ca82f07bade00a108b257ca17e04e14b96f1455e7145a67a93258c06e7f649c786503a4c2a6cd7362f576f33e33ce41088d17d87e27bfc936963ec41d08c08 SHA512 2ebd8d777ff2145fbd6987835dbd57be177aca764cf213c04d3547ecc069fa00eeda5ea1bd7bec20d22a6d0bd42140340c800427ed2b78a4aba39449a7aab1b9 +EBUILD ogre-1.12.9-r1.ebuild 5882 BLAKE2B 75d665bedf08195ce640b68db92363724aabc9c4e7bc2864e8adb44a97381342e1413a968dd076533989dc9eef2f2566c68f14ddd7bfb94d57f1fae557c59e17 SHA512 f63f23e66c0e05b6f11f8d4600ba2faeaf297425f32773fc3eb2911337501a6274abc19601fca4d6f5f23fa6575df48afabdfb902adeb0ac376c31a41c07c446 EBUILD ogre-1.9.0-r3.ebuild 3589 BLAKE2B 9d9ca980e9a0c45864f18dd69a0921ed53453a49d929f6218ccad48ab4d1d3f645f4aa16325026defac3de57c67c870725b1f98abbe4affacf5a3a780b4d3ea6 SHA512 119226ede434ac28f98b5506ea1c12364e79077f2d036455c53cdebab2618914f488fe0de308e71a2eb3b98b97a431bd6fb438c63bd9ca73de573c983717ee65 -EBUILD ogre-2.1.ebuild 5949 BLAKE2B 26522e0c5d3ca1e01a9a533a1fb21d8ca21632abb3d05f26993a32a6c60aba27af8626cb88d537e968981f18429aaa3d2a400447baf4ddaafb962297ca269298 SHA512 50fd86fdc82b252c7ef9fab7c8c2bf99319d838efe4e8e124719658122a4c35213e723ec2d89dba0a8ae06c706867806caf4ae5e11920844a81bbc5323457769 +EBUILD ogre-2.1-r1.ebuild 5952 BLAKE2B 5b1b2f0fd60be1ad34dd5879b5960ec5d09a4c0934181e50a1a59622c344f1a21c42387b0338c32466117799c26a6701b2c8725dba4a8d95e0edcbf703bbe33b SHA512 b911bbcc7bdea34b50e29fdf48c760a81f5569a9ea2a8b33a2c32c394036cd5db6ddb8f7d60307c92fdb66444f6c8b22e448668861ba8d6f7e2cf79274c572fc MISC metadata.xml 6850 BLAKE2B 09b018c447f618b91d62c1ae8c9ccd04de4dd51af951101d4a7cda7a9b9f43e6bd446a33140956213d088f8f0dbdffddbdcc33c52867780a2a2fd204c36c2d5f SHA512 e8421706eba7db126edf91040062edd5d2cee9c1d19bf1525b50f8d1d33044e8d35191810b8c3426a06b00e088c6ba724110aab10305f7f0dfc347b467b34e05 diff --git a/dev-games/ogre/ogre-1.12.9-r1.ebuild b/dev-games/ogre/ogre-1.12.9-r1.ebuild new file mode 100644 index 000000000000..0c297f1f519d --- /dev/null +++ b/dev-games/ogre/ogre-1.12.9-r1.ebuild @@ -0,0 +1,208 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_REMOVE_MODULES_LIST="FindFreetype FindDoxygen FindZLIB" +inherit cmake + +IMGUI_PN="imgui" +IMGUI_PV="1.77" +IMGUI_P="${IMGUI_PN}-${IMGUI_PV}" + +DESCRIPTION="Object-oriented Graphics Rendering Engine" +HOMEPAGE="https://www.ogre3d.org/" +SRC_URI="https://github.com/OGRECave/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/ocornut/${IMGUI_PN}/archive/v${IMGUI_PV}.tar.gz -> ${IMGUI_P}.tar.gz" + +LICENSE="MIT public-domain" +SLOT="0/1.12" +KEYWORDS="~amd64 ~arm ~x86" + +IUSE="assimp +cache cg debug deprecated doc double-precision egl examples +freeimage + json openexr +opengl pch profile resman-pedantic tools" + +# Note: gles2 USE flag taken out for now. It seems like the Ogre Devs now rely +# on HLSL2GLSL (https://github.com/aras-p/hlsl2glslfork) unconditionally +# for GLES2. So unless we have an ebuild for that, gles2/3 are off the +# table. +# ~~sed 2020-04-26 (yamakuzure@gmx.net) +# +# Note: Without gles2 USE flag, the opengl USE flag is next to useless. But +# there are packages which enforce it, so it has to stay. +# +# USE="gles2" +# REQUIRED_USE=" +# || ( gles2 opengl ) +# " +REQUIRED_USE=" + examples? ( opengl ) +" + +RESTRICT="test" #139905 + +RDEPEND=" + dev-games/ois + dev-libs/pugixml + dev-libs/zziplib + media-libs/freetype:2 + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXrandr + x11-libs/libXt + assimp? ( media-libs/assimp ) + cg? ( media-gfx/nvidia-cg-toolkit ) + egl? ( media-libs/mesa[egl(+)] ) + freeimage? ( media-libs/freeimage ) + json? ( dev-libs/rapidjson ) + openexr? ( media-libs/openexr:= ) + opengl? ( + virtual/glu + virtual/opengl + ) + tools? ( dev-libs/tinyxml[stl] ) +" +# gles2? ( media-libs/mesa[gles2] ) +DEPEND=" + ${RDEPEND} + x11-base/xorg-proto +" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen ) +" + +PATCHES=( + "${FILESDIR}"/${P}-media_path.patch + "${FILESDIR}"/${P}-resource_path.patch + "${FILESDIR}"/${P}-fix_Simple_demo.patch + "${FILESDIR}"/${P}-gentoolize_imgui_inclusion.patch + "${FILESDIR}"/${P}-fix_config_window_height.patch + "${FILESDIR}"/${PN}-1.10.12-use_system_tinyxml.patch +) + +src_unpack() { + unpack ${P}.tar.gz || die "Unpacking ${P}.zip failed" + + # Ogre 1.12.9 includes imgui, but as a submodule, it is not included + # in the release. The build system tries to download it, that may + # fail and so we are doing it ourselves. + cd "${S}" || die "Unpack incomplete" + unpack ${IMGUI_P}.tar.gz || die "Unpacking ${IMGUI_P}.zip failed" +} + +src_prepare() { + local broken_png=( + Icon@2x-72.png + Default-Portrait~ipad.png + Default-Portrait@2x~ipad.png + Default-Landscape@2x~ipad.png + ) + + sed -i \ + -e "s:share/doc/OGRE:share/doc/${PF}:" \ + Docs/CMakeLists.txt || die + # In this series, the CMAKE_BUILD_TARGET is hard-wired to the + # installation. And only Debug, MinSizeRel and RelWithDebInfo + # are supported. + sed -i \ + -e "s/$(usex debug Debug Release)/Gentoo/g" \ + CMake/InstallResources.cmake \ + CMake/Utils/OgreConfigTargets.cmake \ + || die + + # Fix broken png files + einfo "Fixing broken png files." + pushd "${S}"/Samples/Common/misc 1>/dev/null 2>&1 + for png in "${broken_png[@]}"; do + pngfix -q --out=out.png ${png} + mv -f out.png "${png}" || die + done + popd 1>/dev/null 2>&1 + einfo "done ..." + + # Fix some path issues + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_SKIP_INSTALL_RPATH=yes + -DOGRE_BUILD_COMPONENT_BITES=yes + -DOGRE_BUILD_COMPONENT_CSHARP=no + -DOGRE_BUILD_COMPONENT_HLMS=$(usex deprecated) + -DOGRE_BUILD_COMPONENT_JAVA=no + -DOGRE_BUILD_COMPONENT_OVERLAY=yes + -DOGRE_BUILD_COMPONENT_OVERLAY_IMGUI=yes + -DOGRE_BUILD_COMPONENT_PAGING=yes + -DOGRE_BUILD_COMPONENT_PROPERTY=yes + -DOGRE_BUILD_COMPONENT_PYTHON=no + -DOGRE_BUILD_COMPONENT_RTSHADERSYSTEM=yes + -DOGRE_BUILD_COMPONENT_TERRAIN=yes + -DOGRE_BUILD_COMPONENT_VOLUME=yes + -DOGRE_BUILD_DEPENDENCIES=no + -DOGRE_BUILD_PLUGIN_CG=$(usex cg) + -DOGRE_BUILD_PLUGIN_FREEIMAGE=$(usex freeimage) + -DOGRE_BUILD_PLUGIN_EXRCODEC=$(usex openexr) + -DOGRE_BUILD_RENDERSYSTEM_GL=$(usex opengl) + -DOGRE_BUILD_RENDERSYSTEM_GL3PLUS=$(usex opengl) + -DOGRE_BUILD_RENDERSYSTEM_GLES2=no + -DOGRE_BUILD_SAMPLES=$(usex examples) + -DOGRE_BUILD_TESTS=no + -DOGRE_BUILD_TOOLS=$(usex tools) + -DOGRE_CONFIG_DOUBLE=$(usex double-precision) + -DOGRE_CONFIG_ENABLE_GL_STATE_CACHE_SUPPORT=$(usex cache) + -DOGRE_CONFIG_ENABLE_GLES2_CG_SUPPORT=no + -DOGRE_CONFIG_ENABLE_GLES3_SUPPORT=no + -DOGRE_CONFIG_THREADS=3 + -DOGRE_CONFIG_THREAD_PROVIDER=std + -DOGRE_ENABLE_PRECOMPILED_HEADERS=$(usex pch) + -DOGRE_INSTALL_DOCS=$(usex doc) + -DOGRE_INSTALL_SAMPLES=$(usex examples) + -DOGRE_INSTALL_SAMPLES_SOURCE=$(usex examples) + -DOGRE_NODELESS_POSITIONING=$(usex deprecated) + -DOGRE_PROFILING=$(usex profile) + -DOGRE_RESOURCEMANAGER_STRICT=$(usex resman-pedantic 1 2) + ) +# -DOGRE_BUILD_RENDERSYSTEM_GLES2=$(usex gles2) +# -DOGRE_CONFIG_ENABLE_GLES2_CG_SUPPORT=$(usex gles2 $(usex cg) no) +# -DOGRE_CONFIG_ENABLE_GLES3_SUPPORT=$(usex gles2) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use doc ; then + eninja -C "${BUILD_DIR}" OgreDoc + fi +} + +src_install() { + cmake_src_install + + CONFIGDIR=/etc/OGRE + SHAREDIR=/usr/share/OGRE + + # plugins and resources are the main configuration + insinto "${CONFIGDIR}" + doins "${BUILD_DIR}"/bin/plugins.cfg + doins "${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 + if use examples ; then + insinto "${SHAREDIR}" + doins "${BUILD_DIR}"/bin/samples.cfg + doins "${BUILD_DIR}"/bin/tests.cfg + fi +} + +pkg_postinst() { + 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." +} diff --git a/dev-games/ogre/ogre-1.12.9.ebuild b/dev-games/ogre/ogre-1.12.9.ebuild deleted file mode 100644 index 74d3cd557a69..000000000000 --- a/dev-games/ogre/ogre-1.12.9.ebuild +++ /dev/null @@ -1,208 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -CMAKE_REMOVE_MODULES_LIST="FindFreetype FindDoxygen FindZLIB" -inherit cmake - -IMGUI_PN="imgui" -IMGUI_PV="1.77" -IMGUI_P="${IMGUI_PN}-${IMGUI_PV}" - -DESCRIPTION="Object-oriented Graphics Rendering Engine" -HOMEPAGE="https://www.ogre3d.org/" -SRC_URI="https://github.com/OGRECave/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz - https://github.com/ocornut/${IMGUI_PN}/archive/v${IMGUI_PV}.tar.gz -> ${IMGUI_P}.tar.gz" - -LICENSE="MIT public-domain" -SLOT="0/1.12" -KEYWORDS="~amd64 ~arm ~x86" - -IUSE="assimp +cache cg debug deprecated doc double-precision egl examples +freeimage - json openexr +opengl pch profile resman-pedantic tools" - -# Note: gles2 USE flag taken out for now. It seems like the Ogre Devs now rely -# on HLSL2GLSL (https://github.com/aras-p/hlsl2glslfork) unconditionally -# for GLES2. So unless we have an ebuild for that, gles2/3 are off the -# table. -# ~~sed 2020-04-26 (yamakuzure@gmx.net) -# -# Note: Without gles2 USE flag, the opengl USE flag is next to useless. But -# there are packages which enforce it, so it has to stay. -# -# USE="gles2" -# REQUIRED_USE=" -# || ( gles2 opengl ) -# " -REQUIRED_USE=" - examples? ( opengl ) -" - -RESTRICT="test" #139905 - -RDEPEND=" - dev-games/ois - dev-libs/pugixml - dev-libs/zziplib - media-libs/freetype:2 - x11-libs/libX11 - x11-libs/libXaw - x11-libs/libXrandr - x11-libs/libXt - assimp? ( media-libs/assimp ) - cg? ( media-gfx/nvidia-cg-toolkit ) - egl? ( media-libs/mesa[egl] ) - freeimage? ( media-libs/freeimage ) - json? ( dev-libs/rapidjson ) - openexr? ( media-libs/openexr:= ) - opengl? ( - virtual/glu - virtual/opengl - ) - tools? ( dev-libs/tinyxml[stl] ) -" -# gles2? ( media-libs/mesa[gles2] ) -DEPEND=" - ${RDEPEND} - x11-base/xorg-proto -" -BDEPEND=" - virtual/pkgconfig - doc? ( app-doc/doxygen ) -" - -PATCHES=( - "${FILESDIR}"/${P}-media_path.patch - "${FILESDIR}"/${P}-resource_path.patch - "${FILESDIR}"/${P}-fix_Simple_demo.patch - "${FILESDIR}"/${P}-gentoolize_imgui_inclusion.patch - "${FILESDIR}"/${P}-fix_config_window_height.patch - "${FILESDIR}"/${PN}-1.10.12-use_system_tinyxml.patch -) - -src_unpack() { - unpack ${P}.tar.gz || die "Unpacking ${P}.zip failed" - - # Ogre 1.12.9 includes imgui, but as a submodule, it is not included - # in the release. The build system tries to download it, that may - # fail and so we are doing it ourselves. - cd "${S}" || die "Unpack incomplete" - unpack ${IMGUI_P}.tar.gz || die "Unpacking ${IMGUI_P}.zip failed" -} - -src_prepare() { - local broken_png=( - Icon@2x-72.png - Default-Portrait~ipad.png - Default-Portrait@2x~ipad.png - Default-Landscape@2x~ipad.png - ) - - sed -i \ - -e "s:share/doc/OGRE:share/doc/${PF}:" \ - Docs/CMakeLists.txt || die - # In this series, the CMAKE_BUILD_TARGET is hard-wired to the - # installation. And only Debug, MinSizeRel and RelWithDebInfo - # are supported. - sed -i \ - -e "s/$(usex debug Debug Release)/Gentoo/g" \ - CMake/InstallResources.cmake \ - CMake/Utils/OgreConfigTargets.cmake \ - || die - - # Fix broken png files - einfo "Fixing broken png files." - pushd "${S}"/Samples/Common/misc 1>/dev/null 2>&1 - for png in "${broken_png[@]}"; do - pngfix -q --out=out.png ${png} - mv -f out.png "${png}" || die - done - popd 1>/dev/null 2>&1 - einfo "done ..." - - # Fix some path issues - cmake_src_prepare -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_SKIP_INSTALL_RPATH=yes - -DOGRE_BUILD_COMPONENT_BITES=yes - -DOGRE_BUILD_COMPONENT_CSHARP=no - -DOGRE_BUILD_COMPONENT_HLMS=$(usex deprecated) - -DOGRE_BUILD_COMPONENT_JAVA=no - -DOGRE_BUILD_COMPONENT_OVERLAY=yes - -DOGRE_BUILD_COMPONENT_OVERLAY_IMGUI=yes - -DOGRE_BUILD_COMPONENT_PAGING=yes - -DOGRE_BUILD_COMPONENT_PROPERTY=yes - -DOGRE_BUILD_COMPONENT_PYTHON=no - -DOGRE_BUILD_COMPONENT_RTSHADERSYSTEM=yes - -DOGRE_BUILD_COMPONENT_TERRAIN=yes - -DOGRE_BUILD_COMPONENT_VOLUME=yes - -DOGRE_BUILD_DEPENDENCIES=no - -DOGRE_BUILD_PLUGIN_CG=$(usex cg) - -DOGRE_BUILD_PLUGIN_FREEIMAGE=$(usex freeimage) - -DOGRE_BUILD_PLUGIN_EXRCODEC=$(usex openexr) - -DOGRE_BUILD_RENDERSYSTEM_GL=$(usex opengl) - -DOGRE_BUILD_RENDERSYSTEM_GL3PLUS=$(usex opengl) - -DOGRE_BUILD_RENDERSYSTEM_GLES2=no - -DOGRE_BUILD_SAMPLES=$(usex examples) - -DOGRE_BUILD_TESTS=no - -DOGRE_BUILD_TOOLS=$(usex tools) - -DOGRE_CONFIG_DOUBLE=$(usex double-precision) - -DOGRE_CONFIG_ENABLE_GL_STATE_CACHE_SUPPORT=$(usex cache) - -DOGRE_CONFIG_ENABLE_GLES2_CG_SUPPORT=no - -DOGRE_CONFIG_ENABLE_GLES3_SUPPORT=no - -DOGRE_CONFIG_THREADS=3 - -DOGRE_CONFIG_THREAD_PROVIDER=std - -DOGRE_ENABLE_PRECOMPILED_HEADERS=$(usex pch) - -DOGRE_INSTALL_DOCS=$(usex doc) - -DOGRE_INSTALL_SAMPLES=$(usex examples) - -DOGRE_INSTALL_SAMPLES_SOURCE=$(usex examples) - -DOGRE_NODELESS_POSITIONING=$(usex deprecated) - -DOGRE_PROFILING=$(usex profile) - -DOGRE_RESOURCEMANAGER_STRICT=$(usex resman-pedantic 1 2) - ) -# -DOGRE_BUILD_RENDERSYSTEM_GLES2=$(usex gles2) -# -DOGRE_CONFIG_ENABLE_GLES2_CG_SUPPORT=$(usex gles2 $(usex cg) no) -# -DOGRE_CONFIG_ENABLE_GLES3_SUPPORT=$(usex gles2) - - cmake_src_configure -} - -src_compile() { - cmake_src_compile - - if use doc ; then - eninja -C "${BUILD_DIR}" OgreDoc - fi -} - -src_install() { - cmake_src_install - - CONFIGDIR=/etc/OGRE - SHAREDIR=/usr/share/OGRE - - # plugins and resources are the main configuration - insinto "${CONFIGDIR}" - doins "${BUILD_DIR}"/bin/plugins.cfg - doins "${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 - if use examples ; then - insinto "${SHAREDIR}" - doins "${BUILD_DIR}"/bin/samples.cfg - doins "${BUILD_DIR}"/bin/tests.cfg - fi -} - -pkg_postinst() { - 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." -} diff --git a/dev-games/ogre/ogre-2.1-r1.ebuild b/dev-games/ogre/ogre-2.1-r1.ebuild new file mode 100644 index 000000000000..2bf0d553581a --- /dev/null +++ b/dev-games/ogre/ogre-2.1-r1.ebuild @@ -0,0 +1,196 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_REMOVE_MODULES_LIST="FindFreetype FindDoxygen FindZLIB" + +inherit cmake flag-o-matic + +MY_PN="${PN}-next" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Object-oriented Graphics Rendering Engine" +HOMEPAGE="https://www.ogre3d.org/" +SRC_URI="https://github.com/OGRECave/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT public-domain" +SLOT="0/2.1" +KEYWORDS="~amd64" + +IUSE="+cache debug doc double-precision egl examples fine-granularity +freeimage json + legacy-animations +opengl profile tools" + +# USE flags that do not work, as their options aren't ported, yet. +# cg +# gles2 +# mobile + +RESTRICT="test" #139905 + +RDEPEND=" + dev-games/ois + dev-libs/zziplib + media-libs/freetype:2 + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXrandr + x11-libs/libXt + egl? ( media-libs/mesa[egl(+)] ) + freeimage? ( media-libs/freeimage ) + json? ( dev-libs/rapidjson ) + opengl? ( + virtual/glu + virtual/opengl + ) + tools? ( dev-libs/tinyxml[stl] ) +" +# Dependencies for USE flags that do not work, yet. +# cg? ( media-gfx/nvidia-cg-toolkit ) +# gles2? ( media-libs/mesa[gles2] ) + +DEPEND=" + ${RDEPEND} + x11-base/xorg-proto +" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen ) +" + +PATCHES=( + "${FILESDIR}/${PN}-2.1-samples.patch" + "${FILESDIR}/${PN}-2.1-resource_path.patch" + "${FILESDIR}/${PN}-2.1-media_path.patch" + "${FILESDIR}/${PN}-2.1-enhance_config_loading.patch" + "${FILESDIR}/${PN}-2.1-fix_opengl_search.patch" + "${FILESDIR}/${PN}-2.1-fix_compilation_issues.patch" + "${FILESDIR}/${PN}-2.1-fix_warnings.patch" + "${FILESDIR}/${PN}-2.1-d1c1116.patch" +) + +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -i \ + -e "s:share/OGRE/docs:share/doc/${PF}:" \ + Docs/CMakeLists.txt || die + + # In this series, the CMAKE_BUILD_TARGET is hard-wired to the + # installation. And only Release, Debug, MinSizeRel and RelWithDebInfo + # are supported. + sed -i \ + -e "s/$(usex debug Debug Release)/Gentoo/g" \ + CMake/InstallResources.cmake \ + CMake/Utils/OgreConfigTargets.cmake \ + || die + + # Fix some path issues + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DOGRE_BUILD_COMPONENT_HLMS_PBS=yes + -DOGRE_BUILD_COMPONENT_HLMS_PBS_MOBILE=no + -DOGRE_BUILD_COMPONENT_HLMS_UNLIT=yes + -DOGRE_BUILD_COMPONENT_HLMS_UNLIT_MOBILE=no + -DOGRE_BUILD_COMPONENT_PLANAR_REFLECTIONS=yes + -DOGRE_BUILD_COMPONENT_SCENE_FORMAT=yes + -DOGRE_BUILD_PLATFORM_NACL=no + -DOGRE_BUILD_RENDERSYSTEM_GL3PLUS=$(usex opengl) + -DOGRE_BUILD_RENDERSYSTEM_GLES2=no + -DOGRE_BUILD_SAMPLES2=$(usex examples) + -DOGRE_BUILD_TESTS=$(usex debug) + -DOGRE_BUILD_TOOLS=$(usex tools) + -DOGRE_CONFIG_ALLOCATOR=$(usex debug 5 1) + -DOGRE_CONFIG_ENABLE_FINE_LIGHT_MASK_GRANULARITY=$(usex fine-granularity) + -DOGRE_CONFIG_ENABLE_FREEIMAGE=$(usex freeimage) + -DOGRE_CONFIG_ENABLE_GL_STATE_CACHE_SUPPORT=$(usex cache) + -DOGRE_CONFIG_ENABLE_JSON=$(usex json) + -DOGRE_CONFIG_MEMTRACK_DEBUG=$(usex debug) + -DOGRE_CONFIG_MEMTRACK_RELEASE=no + -DOGRE_CONFIG_THREADS=0 + -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_LEGACY_ANIMATIONS=$(usex legacy-animations) + -DOGRE_PROFILING_PROVIDER=$(usex profile none internal) + -DOGRE_USE_BOOST=no + -DOGRE_CONFIG_DOUBLE=$(usex double-precision) + -DOGRE_SIMD_NEON=$(usex double-precision no yes) + -DOGRE_SIMD_SSE2=$(usex double-precision no yes) + ) + + # GLES2 is not supported, yet + # -DOGRE_BUILD_COMPONENT_HLMS_PBS=$( usex mobile no yes) + # -DOGRE_BUILD_COMPONENT_HLMS_PBS_MOBILE=$( usex mobile) + # -DOGRE_BUILD_COMPONENT_HLMS_UNLIT=$( usex mobile no yes) + # -DOGRE_BUILD_COMPONENT_HLMS_UNLIT_MOBILE=$(usex mobile) + # -DOGRE_BUILD_RENDERSYSTEM_GLES2=$(usex gles2) + + # The CgFxScriptLoader doesn't seem to be completely ported, yet. + # USE flag disabled. + mycmakeargs+=( + -DOGRE_BUILD_PLUGIN_CG=no + ) + + # These components are off by default, as they might not be ported, yet. + # When advancing to a newer commit, try whether any of the disabled + # components can be activated now. + mycmakeargs+=( + -DOGRE_BUILD_COMPONENT_PAGING=no + -DOGRE_BUILD_COMPONENT_PROPERTY=no + -DOGRE_BUILD_COMPONENT_RTSHADERSYSTEM=no + -DOGRE_BUILD_RTSHADERSYSTEM_CORE_SHADERS=no + -DOGRE_BUILD_RTSHADERSYSTEM_EXT_SHADERS=no + -DOGRE_BUILD_COMPONENT_TERRAIN=no + -DOGRE_BUILD_COMPONENT_VOLUME=no + ) + + # In Release builds the system moans about unknown flags. Lets help! + if use debug; then + append-flags -DOGRE_DEBUG_MODE=1 -DDEBUG=1 -D_DEBUG=1 + else + append-flags -DOGRE_DEBUG_MODE=0 + fi + + # Take out the warning about deprecated copy, as Ogre emits thousands of + # those. But using a deprecated way of doing things isn't an error and + # mainly of interest for developers. + # (The warning is part of -Wextra and only effects C++ compilation.) + append-cxxflags $(test-flags-CXX -Wno-deprecated-copy) + + # The same with the old ways of using memset(0...) on objects. It is + # no longer assumed to be a good idea, but a warning about it isn't + # of any value to the user. (And it happens many times in Ogre.) + append-cxxflags $(test-flags-CXX -Wno-class-memaccess) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + CONFIGDIR=/etc/OGRE + SHAREDIR=/usr/share/OGRE + + # plugins and resources are the main configuration + insinto "${CONFIGDIR}" + doins "${BUILD_DIR}"/bin/plugins.cfg + doins "${BUILD_DIR}"/bin/plugins_tools.cfg + doins "${BUILD_DIR}"/bin/resources.cfg + doins "${BUILD_DIR}"/bin/resources2.cfg + dosym "${CONFIGDIR}"/plugins.cfg "${SHAREDIR}"/plugins.cfg + dosym "${CONFIGDIR}"/plugins_tools.cfg "${SHAREDIR}"/plugins_tools.cfg + dosym "${CONFIGDIR}"/resources.cfg "${SHAREDIR}"/resources.cfg + dosym "${CONFIGDIR}"/resources2.cfg "${SHAREDIR}"/resources2.cfg + + # These are only for the Samples + if use examples ; then + insinto "${SHAREDIR}" + doins "${BUILD_DIR}"/bin/samples.cfg + fi +} diff --git a/dev-games/ogre/ogre-2.1.ebuild b/dev-games/ogre/ogre-2.1.ebuild deleted file mode 100644 index 6b173719ca73..000000000000 --- a/dev-games/ogre/ogre-2.1.ebuild +++ /dev/null @@ -1,196 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -CMAKE_REMOVE_MODULES_LIST="FindFreetype FindDoxygen FindZLIB" - -inherit cmake flag-o-matic - -MY_PN="${PN}-next" -MY_P="${MY_PN}-${PV}" - -DESCRIPTION="Object-oriented Graphics Rendering Engine" -HOMEPAGE="https://www.ogre3d.org/" -SRC_URI="https://github.com/OGRECave/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT public-domain" -SLOT="0/2.1" -KEYWORDS="~amd64" - -IUSE="+cache debug doc double-precision egl examples fine-granularity +freeimage json - legacy-animations +opengl profile tools" - -# USE flags that do not work, as their options aren't ported, yet. -# cg -# gles2 -# mobile - -RESTRICT="test" #139905 - -RDEPEND=" - dev-games/ois - dev-libs/zziplib - media-libs/freetype:2 - x11-libs/libX11 - x11-libs/libXaw - x11-libs/libXrandr - x11-libs/libXt - egl? ( media-libs/mesa[egl] ) - freeimage? ( media-libs/freeimage ) - json? ( dev-libs/rapidjson ) - opengl? ( - virtual/glu - virtual/opengl - ) - tools? ( dev-libs/tinyxml[stl] ) -" -# Dependencies for USE flags that do not work, yet. -# cg? ( media-gfx/nvidia-cg-toolkit ) -# gles2? ( media-libs/mesa[gles2] ) - -DEPEND=" - ${RDEPEND} - x11-base/xorg-proto -" -BDEPEND=" - virtual/pkgconfig - doc? ( app-doc/doxygen ) -" - -PATCHES=( - "${FILESDIR}/${PN}-2.1-samples.patch" - "${FILESDIR}/${PN}-2.1-resource_path.patch" - "${FILESDIR}/${PN}-2.1-media_path.patch" - "${FILESDIR}/${PN}-2.1-enhance_config_loading.patch" - "${FILESDIR}/${PN}-2.1-fix_opengl_search.patch" - "${FILESDIR}/${PN}-2.1-fix_compilation_issues.patch" - "${FILESDIR}/${PN}-2.1-fix_warnings.patch" - "${FILESDIR}/${PN}-2.1-d1c1116.patch" -) - -S=${WORKDIR}/${MY_P} - -src_prepare() { - sed -i \ - -e "s:share/OGRE/docs:share/doc/${PF}:" \ - Docs/CMakeLists.txt || die - - # In this series, the CMAKE_BUILD_TARGET is hard-wired to the - # installation. And only Release, Debug, MinSizeRel and RelWithDebInfo - # are supported. - sed -i \ - -e "s/$(usex debug Debug Release)/Gentoo/g" \ - CMake/InstallResources.cmake \ - CMake/Utils/OgreConfigTargets.cmake \ - || die - - # Fix some path issues - cmake_src_prepare -} - -src_configure() { - local mycmakeargs=( - -DOGRE_BUILD_COMPONENT_HLMS_PBS=yes - -DOGRE_BUILD_COMPONENT_HLMS_PBS_MOBILE=no - -DOGRE_BUILD_COMPONENT_HLMS_UNLIT=yes - -DOGRE_BUILD_COMPONENT_HLMS_UNLIT_MOBILE=no - -DOGRE_BUILD_COMPONENT_PLANAR_REFLECTIONS=yes - -DOGRE_BUILD_COMPONENT_SCENE_FORMAT=yes - -DOGRE_BUILD_PLATFORM_NACL=no - -DOGRE_BUILD_RENDERSYSTEM_GL3PLUS=$(usex opengl) - -DOGRE_BUILD_RENDERSYSTEM_GLES2=no - -DOGRE_BUILD_SAMPLES2=$(usex examples) - -DOGRE_BUILD_TESTS=$(usex debug) - -DOGRE_BUILD_TOOLS=$(usex tools) - -DOGRE_CONFIG_ALLOCATOR=$(usex debug 5 1) - -DOGRE_CONFIG_ENABLE_FINE_LIGHT_MASK_GRANULARITY=$(usex fine-granularity) - -DOGRE_CONFIG_ENABLE_FREEIMAGE=$(usex freeimage) - -DOGRE_CONFIG_ENABLE_GL_STATE_CACHE_SUPPORT=$(usex cache) - -DOGRE_CONFIG_ENABLE_JSON=$(usex json) - -DOGRE_CONFIG_MEMTRACK_DEBUG=$(usex debug) - -DOGRE_CONFIG_MEMTRACK_RELEASE=no - -DOGRE_CONFIG_THREADS=0 - -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_LEGACY_ANIMATIONS=$(usex legacy-animations) - -DOGRE_PROFILING_PROVIDER=$(usex profile none internal) - -DOGRE_USE_BOOST=no - -DOGRE_CONFIG_DOUBLE=$(usex double-precision) - -DOGRE_SIMD_NEON=$(usex double-precision no yes) - -DOGRE_SIMD_SSE2=$(usex double-precision no yes) - ) - - # GLES2 is not supported, yet - # -DOGRE_BUILD_COMPONENT_HLMS_PBS=$( usex mobile no yes) - # -DOGRE_BUILD_COMPONENT_HLMS_PBS_MOBILE=$( usex mobile) - # -DOGRE_BUILD_COMPONENT_HLMS_UNLIT=$( usex mobile no yes) - # -DOGRE_BUILD_COMPONENT_HLMS_UNLIT_MOBILE=$(usex mobile) - # -DOGRE_BUILD_RENDERSYSTEM_GLES2=$(usex gles2) - - # The CgFxScriptLoader doesn't seem to be completely ported, yet. - # USE flag disabled. - mycmakeargs+=( - -DOGRE_BUILD_PLUGIN_CG=no - ) - - # These components are off by default, as they might not be ported, yet. - # When advancing to a newer commit, try whether any of the disabled - # components can be activated now. - mycmakeargs+=( - -DOGRE_BUILD_COMPONENT_PAGING=no - -DOGRE_BUILD_COMPONENT_PROPERTY=no - -DOGRE_BUILD_COMPONENT_RTSHADERSYSTEM=no - -DOGRE_BUILD_RTSHADERSYSTEM_CORE_SHADERS=no - -DOGRE_BUILD_RTSHADERSYSTEM_EXT_SHADERS=no - -DOGRE_BUILD_COMPONENT_TERRAIN=no - -DOGRE_BUILD_COMPONENT_VOLUME=no - ) - - # In Release builds the system moans about unknown flags. Lets help! - if use debug; then - append-flags -DOGRE_DEBUG_MODE=1 -DDEBUG=1 -D_DEBUG=1 - else - append-flags -DOGRE_DEBUG_MODE=0 - fi - - # Take out the warning about deprecated copy, as Ogre emits thousands of - # those. But using a deprecated way of doing things isn't an error and - # mainly of interest for developers. - # (The warning is part of -Wextra and only effects C++ compilation.) - append-cxxflags $(test-flags-CXX -Wno-deprecated-copy) - - # The same with the old ways of using memset(0...) on objects. It is - # no longer assumed to be a good idea, but a warning about it isn't - # of any value to the user. (And it happens many times in Ogre.) - append-cxxflags $(test-flags-CXX -Wno-class-memaccess) - - cmake_src_configure -} - -src_install() { - cmake_src_install - - CONFIGDIR=/etc/OGRE - SHAREDIR=/usr/share/OGRE - - # plugins and resources are the main configuration - insinto "${CONFIGDIR}" - doins "${BUILD_DIR}"/bin/plugins.cfg - doins "${BUILD_DIR}"/bin/plugins_tools.cfg - doins "${BUILD_DIR}"/bin/resources.cfg - doins "${BUILD_DIR}"/bin/resources2.cfg - dosym "${CONFIGDIR}"/plugins.cfg "${SHAREDIR}"/plugins.cfg - dosym "${CONFIGDIR}"/plugins_tools.cfg "${SHAREDIR}"/plugins_tools.cfg - dosym "${CONFIGDIR}"/resources.cfg "${SHAREDIR}"/resources.cfg - dosym "${CONFIGDIR}"/resources2.cfg "${SHAREDIR}"/resources2.cfg - - # These are only for the Samples - if use examples ; then - insinto "${SHAREDIR}" - doins "${BUILD_DIR}"/bin/samples.cfg - fi -} -- cgit v1.2.3