commit: 9dd3716ef4f6c105db3eb5c6eb0cc8040638d56b Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> AuthorDate: Thu Sep 5 12:14:50 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Oct 4 08:27:04 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dd3716e
dev-games/irrlicht-headers: add 1.8.5 Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at> Signed-off-by: Sam James <sam <AT> gentoo.org> dev-games/irrlicht-headers/Manifest | 1 + .../irrlicht-headers/irrlicht-headers-1.8.5.ebuild | 41 +++++++++++ dev-games/irrlicht/Manifest | 1 + dev-games/irrlicht/irrlicht-1.8.4-r3.ebuild | 84 ++++++++++++++++++++++ 4 files changed, 127 insertions(+) diff --git a/dev-games/irrlicht-headers/Manifest b/dev-games/irrlicht-headers/Manifest index 94979316ecc7..ab76d98df0bf 100644 --- a/dev-games/irrlicht-headers/Manifest +++ b/dev-games/irrlicht-headers/Manifest @@ -1,2 +1,3 @@ DIST irrlicht-1.8.4-patchset.tar.bz2 4813 BLAKE2B acad0f0dcc2ff5778608d0620063e7c70935838447f4bd1b241e08fb24f69531c29d96e95de394a3018e239fd7865bc3b50dc9ed5d54dd171b7b51df6c740b4d SHA512 5035cdf42fd26449d03e849ca248f6abcfcea1b0e9827683f00be2545ce90e3979e41c94fd487cfb1c67450e2e973f872d11d233c5a5b654700cec2ccb7f5602 DIST irrlicht-1.8.4.zip 27927144 BLAKE2B 2c2d7e1306b169e537258152f88b11578d8a33c0ebe58e7ee48242048b70b9ba01069fcf272e44e18f7afbd1e6ec89d6bd86289d203929388e6b96871c048a98 SHA512 de69ddd2c6bc80a1b27b9a620e3697b1baa552f24c7d624076d471f3aecd9b15f71dce3b640811e6ece20f49b57688d428e3503936a7926b3e3b0cc696af98d1 +DIST irrlicht-1.8.5.zip 21827696 BLAKE2B 25f2a6479d8c60b3e99c2f6d80181f82ba983f9aeca2bed31f63dcb5a0aa62a82753f733e5b516a5eacdb5b4119b0bb6385ced9144471a46e99e6ebd0d3b0126 SHA512 d11c7a056bfb8c9737ed583c5bc5794223bc59fb4620411b63bc4d1eedc41db2ed1cab5cb7a37fee42a7f38c0e0645f5fc53fd329fff0f2aa78e0df6804c47c9 diff --git a/dev-games/irrlicht-headers/irrlicht-headers-1.8.5.ebuild b/dev-games/irrlicht-headers/irrlicht-headers-1.8.5.ebuild new file mode 100644 index 000000000000..841369b95a2c --- /dev/null +++ b/dev-games/irrlicht-headers/irrlicht-headers-1.8.5.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edos2unix + +MY_PN="irrlicht" +MY_P="${MY_PN}-${PV}" +DESCRIPTION="Irrlicht 3D engine headers" +HOMEPAGE="https://irrlicht.sourceforge.io/" +SRC_URI="https://downloads.sourceforge.net/irrlicht/${MY_P}.zip + https://dev.gentoo.org/~mgorny/dist/${MY_PN}-1.8.4-patchset.tar.bz2" +S="${WORKDIR}/${MY_P}/source/${MY_PN^}" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" + +BDEPEND="app-arch/unzip" + +PATCHES=( + "${WORKDIR}"/${MY_PN}-1.8.4-patchset/${MY_PN}-1.8.4-config.patch +) + +src_prepare() { + cd "${WORKDIR}"/${MY_P} || die + edos2unix include/IrrCompileConfig.h + default +} + +src_configure() { :; } + +src_compile() { :; } + +src_install() { + cd "${WORKDIR}"/${MY_P} || die + + insinto /usr/include/${MY_PN} + doins include/* +} diff --git a/dev-games/irrlicht/Manifest b/dev-games/irrlicht/Manifest index 94979316ecc7..ab76d98df0bf 100644 --- a/dev-games/irrlicht/Manifest +++ b/dev-games/irrlicht/Manifest @@ -1,2 +1,3 @@ DIST irrlicht-1.8.4-patchset.tar.bz2 4813 BLAKE2B acad0f0dcc2ff5778608d0620063e7c70935838447f4bd1b241e08fb24f69531c29d96e95de394a3018e239fd7865bc3b50dc9ed5d54dd171b7b51df6c740b4d SHA512 5035cdf42fd26449d03e849ca248f6abcfcea1b0e9827683f00be2545ce90e3979e41c94fd487cfb1c67450e2e973f872d11d233c5a5b654700cec2ccb7f5602 DIST irrlicht-1.8.4.zip 27927144 BLAKE2B 2c2d7e1306b169e537258152f88b11578d8a33c0ebe58e7ee48242048b70b9ba01069fcf272e44e18f7afbd1e6ec89d6bd86289d203929388e6b96871c048a98 SHA512 de69ddd2c6bc80a1b27b9a620e3697b1baa552f24c7d624076d471f3aecd9b15f71dce3b640811e6ece20f49b57688d428e3503936a7926b3e3b0cc696af98d1 +DIST irrlicht-1.8.5.zip 21827696 BLAKE2B 25f2a6479d8c60b3e99c2f6d80181f82ba983f9aeca2bed31f63dcb5a0aa62a82753f733e5b516a5eacdb5b4119b0bb6385ced9144471a46e99e6ebd0d3b0126 SHA512 d11c7a056bfb8c9737ed583c5bc5794223bc59fb4620411b63bc4d1eedc41db2ed1cab5cb7a37fee42a7f38c0e0645f5fc53fd329fff0f2aa78e0df6804c47c9 diff --git a/dev-games/irrlicht/irrlicht-1.8.4-r3.ebuild b/dev-games/irrlicht/irrlicht-1.8.4-r3.ebuild new file mode 100644 index 000000000000..060afc745162 --- /dev/null +++ b/dev-games/irrlicht/irrlicht-1.8.4-r3.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="open source high performance realtime 3D engine written in C++" +HOMEPAGE="https://irrlicht.sourceforge.io/" +SRC_URI=" + https://downloads.sourceforge.net/irrlicht/${P}.zip + https://dev.gentoo.org/~mgorny/dist/${P}-patchset.tar.bz2" +S="${WORKDIR}/${P}/source/${PN^}" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" +IUSE="debug doc" + +RDEPEND=" + app-arch/bzip2 + ~dev-games/irrlicht-headers-${PV} + media-libs/libpng:= + sys-libs/zlib:= + media-libs/libjpeg-turbo:= + virtual/opengl + x11-libs/libX11 + x11-libs/libXxf86vm" +DEPEND="${RDEPEND} + x11-base/xorg-proto" +BDEPEND="app-arch/unzip" + +PATCHES=( + "${WORKDIR}"/${P}-patchset/${P}-gentoo.patch + "${WORKDIR}"/${P}-patchset/${P}-demoMake.patch + "${WORKDIR}"/${P}-patchset/${P}-mesa-10.x.patch + "${WORKDIR}"/${P}-patchset/${P}-jpeg-9a.patch + "${FILESDIR}"/${P}-remove-sys-sysctl.h.patch + "${FILESDIR}"/${P}-drop-register.patch +) + +DOCS=( changes.txt readme.txt ) + +src_prepare() { + cd "${WORKDIR}"/${P} || die + + # Use system-provided Irrlicht headers + rm -r include || die + ln -s "${ESYSROOT}/usr/include/irrlicht" include || die + + # Fix relative path to media directory + sed -i \ + -e 's:\.\./\.\./media:../media:g' \ + $(grep -rl '\.\./\.\./media' examples) \ + || die 'sed failed' + + # Fix line endings so ${P}-remove-sys-sysctl.h.patch applies + sed -i \ + -e 's/\r$//' \ + source/Irrlicht/COSOperator.cpp \ + || die 'sed failed' + + default +} + +src_compile() { + tc-export CXX CC AR + emake NDEBUG=$(usev !debug 1) sharedlib +} + +src_install() { + cd "${WORKDIR}"/${P} || die + + dolib.so lib/Linux/libIrrlicht.so* + + # create library symlinks + dosym libIrrlicht.so.${PV} /usr/$(get_libdir)/libIrrlicht.so.1.8 + dosym libIrrlicht.so.${PV} /usr/$(get_libdir)/libIrrlicht.so + + einstalldocs + + # don't do these with einstalldocs because they shouldn't be compressed + use doc && dodoc -r examples media +}