diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-09 16:40:34 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-09 16:40:34 +0100 |
commit | 9257212a8841f37588d5b5a94a7930db4585a106 (patch) | |
tree | 8ee63d1ea86eee544e495fadca1e7f0a5280b816 /games-emulation | |
parent | b426a5cef3f0ebe3389686a1c145a834d3a1e120 (diff) |
gentoo auto-resync : 09:09:2022 - 16:40:34
Diffstat (limited to 'games-emulation')
-rw-r--r-- | games-emulation/Manifest.gz | bin | 9538 -> 9543 bytes | |||
-rw-r--r-- | games-emulation/mupen64plus-core/Manifest | 3 | ||||
-rw-r--r-- | games-emulation/mupen64plus-core/files/mupen64plus-core-2.5.9-pitch.patch | 29 | ||||
-rw-r--r-- | games-emulation/mupen64plus-core/mupen64plus-core-2.5.9-r3.ebuild (renamed from games-emulation/mupen64plus-core/mupen64plus-core-2.5.9-r2.ebuild) | 47 |
4 files changed, 59 insertions, 20 deletions
diff --git a/games-emulation/Manifest.gz b/games-emulation/Manifest.gz Binary files differindex b64741ad2522..cc831aa57eb9 100644 --- a/games-emulation/Manifest.gz +++ b/games-emulation/Manifest.gz diff --git a/games-emulation/mupen64plus-core/Manifest b/games-emulation/mupen64plus-core/Manifest index 6de1d57abf9c..12d8ba116a49 100644 --- a/games-emulation/mupen64plus-core/Manifest +++ b/games-emulation/mupen64plus-core/Manifest @@ -1,4 +1,5 @@ AUX mupen64plus-core-2.5.9-fix-gcc10-fno-common.patch 520 BLAKE2B 1a72237a46105840d90e25a551e5ffab3f35f8df9f975da6f65c135847aac71fbf2e7fb9899c05720cb29b31ea85a15d86167c95993b93d763fea585ae0a4bff SHA512 95860397c764a6a21faaab45e13f68aa6b5da15ff1b96a430a263aaac918495b27a923c639166a9f124c0e3f3d2af6a3947aed34c3a590abc2e3033ef8460bd9 +AUX mupen64plus-core-2.5.9-pitch.patch 1257 BLAKE2B bc0852417539f391fa73aff7b63dfee7bfb8f99a7b7e06b90163f39093878f361701354ff5901e8366f8f99236d6a50dde2ddaaf9aec7e48cbc27dc414f8e0af SHA512 e84bce7d9b017eda8818444c99037f6c6ee069329d944658f6f500564e45bf080818f8dd05975f20a0ef835d7934c7ea8c92f4183668fba7120d0343f2cc5678 DIST mupen64plus-core-src-2.5.9.tar.gz 1618486 BLAKE2B 6d43789873c6866dc7d268e4a2cc1febc4a8ce6615a51e4dabfc3d3715aaaa6bf8d7c157ddccd45ae3b57852388c591b86d1cf401c7d78962ec6780272ef912d SHA512 8087211eb3301e356e1529c1702c965aca5e9191a5a3efe604f2e2f7470da44c8c3be506ba1f0aa96b209baa8faf011ca153566540e96c278fe63a330b791f20 -EBUILD mupen64plus-core-2.5.9-r2.ebuild 2694 BLAKE2B 6b6b47227511577a7873b053b3d7854b0d1473b63ee78ba201d00a30b82107fe69dd1b05d354916531c5e248c804251a99a33c66cd16a34e516d3d6ab0c4b00c SHA512 1afc8b7f1a25e50a3ecf6f8ecd6e9dfe41d305bc44d51b347b0a330938313c6679c1f591aa544b5bde28eedf30eabe5ac3a0ddcfd9be48d78f1774cb45d56780 +EBUILD mupen64plus-core-2.5.9-r3.ebuild 2710 BLAKE2B 393e63b93c64abf01f4be1d399e6793a8d7b640e995c1a0f123e3415c57b51a5ea2f8caf8f3f7140ae20bbf153a2ce8fcde3558ea1d7a175b02d823c25b81a70 SHA512 1580e1f1cfaeb69504307785ee2e37bb7f770665a9dd78694c054a72569d5f89799b2578e494958624c3209e01e1f86311ce91596d1cccee2f39104cf7edbdd2 MISC metadata.xml 987 BLAKE2B d2c505ca12b65934e5debaa4f52876cc4a3903cf3ce084dacaf9be307a41c3ab1f6a1fb165377fe37b31065e6a901fd8432f92814eba4c4bdd43ad30da3a7467 SHA512 e0aa4b6c8f2b60c7c8aac793995b17de3892df48e3b4a8bd3ff8a938fc64a3bc7e4dcd4a659dce94dba1debc2beb71971187fed03ff0c723c4ba7b0a57d34db4 diff --git a/games-emulation/mupen64plus-core/files/mupen64plus-core-2.5.9-pitch.patch b/games-emulation/mupen64plus-core/files/mupen64plus-core-2.5.9-pitch.patch new file mode 100644 index 000000000000..449e4252dae2 --- /dev/null +++ b/games-emulation/mupen64plus-core/files/mupen64plus-core-2.5.9-pitch.patch @@ -0,0 +1,29 @@ +From 8fac78d8cb54da960ca85a49547dcc4fb952457d Mon Sep 17 00:00:00 2001 +From: VarNepvius <14352929+VarNepvius@users.noreply.github.com> +Date: Tue, 6 Sep 2022 20:31:03 +0200 +Subject: [PATCH] Fix wrong pitch argument in call to SDL_CreateRGBSurfaceFrom. + +--- + src/api/vidext_sdl2_compat.h | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/src/api/vidext_sdl2_compat.h b/src/api/vidext_sdl2_compat.h +index 06d778dd9..071a64402 100644 +--- a/src/api/vidext_sdl2_compat.h ++++ b/src/api/vidext_sdl2_compat.h +@@ -474,8 +474,14 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags) + if (SDL_GL_MakeCurrent(SDL_VideoWindow, SDL_VideoContext) < 0) { + return NULL; + } ++ ++ /* Pitch: size of of line in bytes */ ++ /* Add 7 to bpp before division, to ensure correct rounding towards infinity ++ * in cases where bits per pixel do not cleanly divide by 8 (such as 15) ++ */ ++ int pitch = (bpp + 7) / 8 * width; + SDL_VideoSurface = +- SDL_CreateRGBSurfaceFrom(NULL, width, height, bpp, 0, 0, 0, 0, 0); ++ SDL_CreateRGBSurfaceFrom(NULL, width, height, bpp, pitch, 0, 0, 0, 0); + if (!SDL_VideoSurface) { + return NULL; + } diff --git a/games-emulation/mupen64plus-core/mupen64plus-core-2.5.9-r2.ebuild b/games-emulation/mupen64plus-core/mupen64plus-core-2.5.9-r3.ebuild index 459fd3cd6239..38e80fb81924 100644 --- a/games-emulation/mupen64plus-core/mupen64plus-core-2.5.9-r2.ebuild +++ b/games-emulation/mupen64plus-core/mupen64plus-core-2.5.9-r3.ebuild @@ -1,41 +1,50 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -MY_P=${PN}-src-${PV} inherit toolchain-funcs +MY_P=${PN}-src-${PV} DESCRIPTION="A fork of Mupen64 Nintendo 64 emulator, core library" HOMEPAGE="https://www.mupen64plus.org/" -SRC_URI="https://github.com/mupen64plus/${PN}/releases/download/${PV}/${MY_P}.tar.gz" +SRC_URI=" + https://github.com/mupen64plus/${PN}/releases/download/${PV}/${MY_P}.tar.gz +" +S=${WORKDIR}/${MY_P} LICENSE="GPL-2+" SLOT="0/2-sdl2" KEYWORDS="~amd64 ~x86" IUSE="debugger gles2-only lirc new-dynarec opencv +osd cpu_flags_x86_sse" +REQUIRED_USE="gles2-only? ( !osd )" -RDEPEND="media-libs/libpng:0= - media-libs/libsdl2:0=[joystick,opengl,video] - sys-libs/zlib:0=[minizip] - gles2-only? ( media-libs/libsdl2:0[gles2] ) - lirc? ( app-misc/lirc:0 ) +DEPEND=" + media-libs/libpng:= + media-libs/libsdl2[joystick,opengl,video] + sys-libs/zlib[minizip] + gles2-only? ( media-libs/libsdl2[gles2] ) + lirc? ( app-misc/lirc ) opencv? ( media-libs/opencv:= ) osd? ( media-fonts/dejavu - media-libs/freetype:2= - virtual/opengl:0= - virtual/glu:0= - )" -DEPEND="${RDEPEND}" + media-libs/freetype:2 + virtual/opengl + virtual/glu + ) +" +RDEPEND=" + ${DEPEND} +" BDEPEND=" cpu_flags_x86_sse? ( dev-lang/nasm ) - virtual/pkgconfig" - -REQUIRED_USE="gles2-only? ( !osd )" -S=${WORKDIR}/${MY_P} + virtual/pkgconfig +" -PATCHES=( "${FILESDIR}"/${PN}-2.5.9-fix-gcc10-fno-common.patch ) +PATCHES=( + "${FILESDIR}"/${P}-fix-gcc10-fno-common.patch + "${FILESDIR}"/${P}-pitch.patch +) src_prepare() { default |