From c8a77dfe4d3d307c1d5dd2650b7297447d8b609d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 12 Jan 2019 16:58:08 +0000 Subject: gentoo resync : 12.01.2019 --- games-emulation/Manifest.gz | Bin 10020 -> 10021 bytes games-emulation/dosbox/Manifest | 5 +- .../dosbox/dosbox-0.74_p20160629-r2.ebuild | 74 -------------------- .../dosbox/dosbox-0.74_p20160629-r3.ebuild | 75 +++++++++++++++++++++ games-emulation/dosbox/dosbox-9999.ebuild | 4 +- .../dosbox/files/dosbox-0.74.2_events.patch | 37 ++++++++++ games-emulation/snes9x/Manifest | 3 +- .../snes9x-1.58-without-screenshot_build_fix.patch | 31 +++++++++ games-emulation/snes9x/snes9x-1.58.ebuild | 3 +- 9 files changed, 152 insertions(+), 80 deletions(-) delete mode 100644 games-emulation/dosbox/dosbox-0.74_p20160629-r2.ebuild create mode 100644 games-emulation/dosbox/dosbox-0.74_p20160629-r3.ebuild create mode 100644 games-emulation/dosbox/files/dosbox-0.74.2_events.patch create mode 100644 games-emulation/snes9x/files/snes9x-1.58-without-screenshot_build_fix.patch (limited to 'games-emulation') diff --git a/games-emulation/Manifest.gz b/games-emulation/Manifest.gz index 0a011ed7b2fb..c0e94efa925e 100644 Binary files a/games-emulation/Manifest.gz and b/games-emulation/Manifest.gz differ diff --git a/games-emulation/dosbox/Manifest b/games-emulation/dosbox/Manifest index c02778f1614d..0b0cd0a974aa 100644 --- a/games-emulation/dosbox/Manifest +++ b/games-emulation/dosbox/Manifest @@ -1,8 +1,9 @@ AUX dosbox-0.74-gcc46.patch 274 BLAKE2B 6375a8c0752eed6481cfc987ac3b7c7f699d745498e619862223dcbf660eef21f7619ef5b8e2034d20ad09716714988875e30d1959fe29393fd96559a2d710df SHA512 3175ba75be568d24286501844073bebbd2ae2e770ca6bdd9d409b290ca7b9f98a8406b5b92b89a9965eeda8045f2ac9634aacf8eb01917cbf02087996de53177 +AUX dosbox-0.74.2_events.patch 1274 BLAKE2B f0041d8be1c1dbbed5595cb90f618ec6cb5c8e5098da838f2c2892596fc6ae2db40d0b9f99dc19a01c837983516101568c37476bf18868a6225f3a4327fe01bd SHA512 d947d8eb168198598e413011bd6b68dc4cf2ea4d4c9b2fa0028c98276a2245c02709f0830eaacee43c712b921d0879372569766829e12e9cf1a4040e11448bf4 DIST dosbox-code-0-3989-dosbox-trunk.zip 1327592 BLAKE2B 7a9eccd381c1ce7a08d6e650d94de9e82aa5fb1b63abd23b0f42d10d95df4ca2ba4b2c319f3375e030c1578f032ee7bde528f9c4bbc27b665733f7d035865376 SHA512 625eacc1a1190d87d56713f7af54e6a7886e7666ba9f7f0b1d553c96a2eb02ec7810ac2da73d014d5ea3b69f2a7658bdd445532abe030e7f6ef85a3c20bdd3c7 DIST dosbox_glide-3722fc563b737d2d7933df6a771651c2154e6f7b.diff 96346 BLAKE2B c22d8897b3767b3351aec4d7bd64d201c32e2191c0520478f33973b0b36652e9770f571ea32fee6d30a4de35cae1c4d223d56af070b3f3916f6827ab47ec0585 SHA512 d2be6ee8bd1f13058c76ccae595b67f15ab87e0e36dab0d938ebbd7fc5d379f6f054d30c32ef4723b9fcdbbcea7bf0e1aa2c8b1aab1737f1d0e4d2a2df0f7714 DIST dosbox_glide-841e1071597b64ead14dd08c25a03206b2d1d1b6.diff 96801 BLAKE2B d24d1f4262129899d807c275b1ae2d6c09056a126441665f37359302428f30576f399c4778b55f4eaec674e714d85243f576bfa3064887c5801daddc9e507aad SHA512 4cbe0ede9c4242aa346ca6c609b7a4d8e4e1d204d79d93ff741d58d3ca14e43a2e49cd696bd4bd54c13e62d1080320ee233963bac26f25bb0b4fada86e813ca2 -EBUILD dosbox-0.74_p20160629-r2.ebuild 1919 BLAKE2B f5602bbcea7b32d71584aa1efaef2b0a9e2d305467329ee4fcf8a9ec2e83f4fc885cd12c19abd9c5d4c9ac5a511074fa8286d04c5dd4077e6601eef0a94c79b3 SHA512 2f854b566e89795f2126d687b5d9597a8142ef5d328a4dd87a8fa65529b3b5855ac0a38ff1f114f137f329a52db34a17b19f703e64131cf062a4fdbf57397382 +EBUILD dosbox-0.74_p20160629-r3.ebuild 1953 BLAKE2B c7cb3ac6debda1c32081b954eb751347dca7016d5fefc2402cc79bb163625dc632a790287cc031695e1ac8c0613895b8ca4a66c009b0215a5545e63e96dadff0 SHA512 cbf1578c442cdc2d8526425f39164832dba64ac232730945e09ac5f2835dcbd755b3ce9a8d496ed433573c2445e8d21a69cf583947e1068929d03332a3fc3388 EBUILD dosbox-0.74_p20160629.ebuild 1076 BLAKE2B e0ca5a03e6817622ef09305464a4a98661fe97d94ffe0ddb021073af2d1fe4bb31ae3fd967e4fc03c08848e2abb2a6465364bcbee1a09f0a415b0077144a9724 SHA512 ba8f55ede135d0e8a024d72b8db79db0816f845452b54e71cc7ad3460e0b1152bad67f0800b5c8a0a506a26959a606f8f57159b37b0a4dc465fd95897a083529 -EBUILD dosbox-9999.ebuild 2015 BLAKE2B d874dfcce054cfe4bf10de764e1a4aad40bf90a74532d6f7e6d97d233871aa53779a601ce2487bd625686ff4a8123b1294d3005091add6e7b70bf832d5593202 SHA512 3352352a8cc3d623184066a5ccbca680defa7e2103986266092be93e4f91cbaf15dd7125112b97a28cf719b27b88b5862e8e7649df289a1315b40a2589a239c1 +EBUILD dosbox-9999.ebuild 2008 BLAKE2B 4fd2809355ff62f58a0d2313e5722c2e32260a3e6ff284c4629293dd1ad4fdd441e04a39fa5b4472ea16037b4a388e833232d4f7e08289810879ac92bce95b59 SHA512 3c820cebf87b34d2c7b05e9d15c87619a7b5c537f79faa95c27e1103642d32b47b682f64281ba73963acc6727cc42dbfc4505f2c1623d7bb76caf7b842dba7f3 MISC metadata.xml 742 BLAKE2B 1b36ebc57b143b7fb214632f79c3f51f812ac96de39e6f8886efd5c13cf1ee86d905c2cef3d46e58171ee00cc8515852bfb177726aaab196415e47b876d28a12 SHA512 0c9ad19d1512236023a349545c8bb8790388ac49ef62b30d03a81f84407aae2b9b199f7041a513af5b34a61bc5a439d663be2cdb3cd59a7e23830f78633285b5 diff --git a/games-emulation/dosbox/dosbox-0.74_p20160629-r2.ebuild b/games-emulation/dosbox/dosbox-0.74_p20160629-r2.ebuild deleted file mode 100644 index f6a503b6b2a4..000000000000 --- a/games-emulation/dosbox/dosbox-0.74_p20160629-r2.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2018 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools desktop flag-o-matic - -PATCH=3989 -GLIDE_PATCH=3722fc563b737d2d7933df6a771651c2154e6f7b - -DESCRIPTION="DOS emulator" -HOMEPAGE="http://dosbox.sourceforge.net/" -SRC_URI="mirror://gentoo/dosbox-code-0-${PATCH}-dosbox-trunk.zip - glide? ( https://raw.githubusercontent.com/voyageur/openglide/${GLIDE_PATCH}/platform/dosbox/dosbox_glide.diff -> dosbox_glide-${GLIDE_PATCH}.diff )" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~arm ~ppc64 ~x86" -IUSE="alsa +core-inline debug glide hardened opengl X" - -RDEPEND="alsa? ( media-libs/alsa-lib ) - glide? ( media-libs/openglide ) - opengl? ( virtual/glu virtual/opengl ) - debug? ( sys-libs/ncurses:0 ) - X? ( x11-libs/libX11 ) - media-libs/libpng:0= - media-libs/libsdl[joystick,opengl?,video,X?] - media-libs/sdl-net - media-libs/sdl-sound - sys-libs/zlib" -DEPEND="${RDEPEND} - app-arch/unzip" - -S=${WORKDIR}/${PN}-code-0-${PATCH}-dosbox-trunk - -PATCHES=( - "${FILESDIR}"/${PN}-0.74-gcc46.patch -) - -src_prepare() { - use glide && eapply "${DISTDIR}"/dosbox_glide-${GLIDE_PATCH}.diff - default - eautoreconf -} - -src_configure() { - use glide && append-cppflags -I"${EPREFIX}"/usr/include/openglide - - ac_cv_lib_X11_main=$(usex X yes no) \ - econf \ - $(use_enable alsa alsa-midi) \ - $(use_enable core-inline) \ - $(use_enable !hardened dynamic-core) \ - $(use_enable !hardened dynamic-x86) \ - $(use_enable debug) \ - $(use_enable opengl) -} - -src_install() { - default - make_desktop_entry dosbox DOSBox /usr/share/pixmaps/dosbox.ico - doicon src/dosbox.ico -} - -pkg_postinst() { - if use glide; then - elog "You have enabled unofficial Glide emulation. To use this, symlink" - elog "or copy ${EPREFIX}/usr/share/openglide/glide2x-dosbox.ovl to your game's" - elog "directory and add the following to your DOSBox configuration." - elog "" - elog "[glide]" - elog "glide=true" - fi -} diff --git a/games-emulation/dosbox/dosbox-0.74_p20160629-r3.ebuild b/games-emulation/dosbox/dosbox-0.74_p20160629-r3.ebuild new file mode 100644 index 000000000000..140ff29f6f0c --- /dev/null +++ b/games-emulation/dosbox/dosbox-0.74_p20160629-r3.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools desktop flag-o-matic + +PATCH=3989 +GLIDE_PATCH=3722fc563b737d2d7933df6a771651c2154e6f7b + +DESCRIPTION="DOS emulator" +HOMEPAGE="https://www.dosbox.com/" +SRC_URI="mirror://gentoo/dosbox-code-0-${PATCH}-dosbox-trunk.zip + glide? ( https://raw.githubusercontent.com/voyageur/openglide/${GLIDE_PATCH}/platform/dosbox/dosbox_glide.diff -> dosbox_glide-${GLIDE_PATCH}.diff )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc64 ~x86" +IUSE="alsa +core-inline debug glide hardened opengl X" + +RDEPEND="alsa? ( media-libs/alsa-lib ) + glide? ( media-libs/openglide ) + opengl? ( virtual/glu virtual/opengl ) + debug? ( sys-libs/ncurses:0 ) + X? ( x11-libs/libX11 ) + media-libs/libpng:0= + media-libs/libsdl[joystick,opengl?,video,X?] + media-libs/sdl-net + media-libs/sdl-sound + sys-libs/zlib" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/${PN}-code-0-${PATCH}-dosbox-trunk + +PATCHES=( + "${FILESDIR}/${PN}-0.74-gcc46.patch" + "${FILESDIR}/${PN}-0.74.2_events.patch" +) + +src_prepare() { + use glide && eapply "${DISTDIR}"/dosbox_glide-${GLIDE_PATCH}.diff + default + eautoreconf +} + +src_configure() { + use glide && append-cppflags -I"${EPREFIX}"/usr/include/openglide + + ac_cv_lib_X11_main=$(usex X yes no) \ + econf \ + $(use_enable alsa alsa-midi) \ + $(use_enable core-inline) \ + $(use_enable !hardened dynamic-core) \ + $(use_enable !hardened dynamic-x86) \ + $(use_enable debug) \ + $(use_enable opengl) +} + +src_install() { + default + make_desktop_entry dosbox DOSBox /usr/share/pixmaps/dosbox.ico + doicon src/dosbox.ico +} + +pkg_postinst() { + if use glide; then + elog "You have enabled unofficial Glide emulation. To use this, symlink" + elog "or copy ${EPREFIX}/usr/share/openglide/glide2x-dosbox.ovl to your game's" + elog "directory and add the following to your DOSBox configuration." + elog "" + elog "[glide]" + elog "glide=true" + fi +} diff --git a/games-emulation/dosbox/dosbox-9999.ebuild b/games-emulation/dosbox/dosbox-9999.ebuild index 421603aa2fd0..8c4711e5620c 100644 --- a/games-emulation/dosbox/dosbox-9999.ebuild +++ b/games-emulation/dosbox/dosbox-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -17,7 +17,7 @@ else fi DESCRIPTION="DOS emulator" -HOMEPAGE="http://dosbox.sourceforge.net/" +HOMEPAGE="https://www.dosbox.com/" LICENSE="GPL-2" SLOT="0" diff --git a/games-emulation/dosbox/files/dosbox-0.74.2_events.patch b/games-emulation/dosbox/files/dosbox-0.74.2_events.patch new file mode 100644 index 000000000000..fee09a65a4ce --- /dev/null +++ b/games-emulation/dosbox/files/dosbox-0.74.2_events.patch @@ -0,0 +1,37 @@ +Index: src/gui/sdlmain.cpp +=================================================================== +--- a/src/gui/sdlmain.cpp (revision 4177) ++++ b/src/gui/sdlmain.cpp (working copy) +@@ -1426,6 +1426,12 @@ + #define DB_POLLSKIP 1 + #endif + ++#if defined(LINUX) ++#define SDL_XORG_FIX 1 ++#else ++#define SDL_XORG_FIX 0 ++#endif ++ + void GFX_Events() { + //Don't poll too often. This can be heavy on the OS, especially Macs. + //In idle mode 3000-4000 polls are done per second without this check. +@@ -1449,6 +1455,19 @@ + } + #endif + while (SDL_PollEvent(&event)) { ++#if SDL_XORG_FIX ++ // Special code for broken SDL with Xorg 1.20.1, where pairs of inputfocus gain and loss events are generated ++ // when locking the mouse in windowed mode. ++ if (event.type == SDL_ACTIVEEVENT && event.active.state == SDL_APPINPUTFOCUS && event.active.gain == 0) { ++ SDL_Event test; //Check if the next event would undo this one. ++ if (SDL_PeepEvents(&test,1,SDL_PEEKEVENT,SDL_ACTIVEEVENTMASK) == 1 && test.active.state == SDL_APPINPUTFOCUS && test.active.gain == 1) { ++ // Skip both events. ++ SDL_PeepEvents(&test,1,SDL_GETEVENT,SDL_ACTIVEEVENTMASK); ++ continue; ++ } ++ } ++#endif ++ + switch (event.type) { + case SDL_ACTIVEEVENT: + if (event.active.state & SDL_APPINPUTFOCUS) { diff --git a/games-emulation/snes9x/Manifest b/games-emulation/snes9x/Manifest index 988ff3b9fed4..4acd3bf283fb 100644 --- a/games-emulation/snes9x/Manifest +++ b/games-emulation/snes9x/Manifest @@ -1,8 +1,9 @@ AUX snes9x-1.53-cross-compile.patch 892 BLAKE2B 9fb806ad16d48d5f07f1ab84feb5f7eafa52a1157eb25675650f08c8fbab8a42318d3277efbdd45f03250df2e9187c76df43312f7ffb2f226423e757b5f6e91c SHA512 4867b9a3e3f2a65684157b26e4b0b63971d37ad5abb16125567e89bc4116482488416ca51d30f639ef63886b05431c56b75978fe073a4755c48988f5ea9eaee5 AUX snes9x-1.56-build-system.patch 1633 BLAKE2B 4a0ae3a90a15e29aea8d937f874aed9aa8b29c25eb03a90c9a0bf2b50f8c6271fcc43c7d61c2898e5d99128c0ab663d31de0e3498a5e16ba865d9c5572f12e6e SHA512 3ddc7272dab74ba3125409dbbf427160d08330cfc84c7f3393fbb68884f6129849efe042943899fbf3dca65ac326e15579722e757c3e30ebd4b452b784f1bf59 AUX snes9x-1.58-build-system.patch 1654 BLAKE2B e2264b61035a8a06b55a710fe9c5d2c689fccd9869af115706edbb28c8ab0a468482c1848e2fa81ee91e7708f0edcbb9c140d0d911442f570b837a48296982eb SHA512 8b898a96ff316d50e97f8d0a89842b57b22612c8e6e49b0ad4bfd203e462f48fd24647c568e602fdaeb99d6a8cc3674994659aea8d35bcce4071e0e7cac7a8f1 +AUX snes9x-1.58-without-screenshot_build_fix.patch 846 BLAKE2B a8afca89a9d5a85df688610e2e136f1e47c1558f3be1a02585f47c075587993b68fbc29de987b7e791517a4584aa9373c4985dbdaed979e0688ae6cb3e5c9d58 SHA512 4cb91935d39766c091fdc30a5eb7b01eb60e29ea365da75968b5302d1f44be6992f46c04ba91af412edc787ddd0738ac8455d7127fbfe79ba7782abc423bab32 DIST snes9x-1.57.tar.gz 2959157 BLAKE2B 6307976247eb3a3bcb506028d75d9054ea853db5c629870a89832fd93ee2fe256799b9191922c67fcd8ef1ed2344d16326212001661c5038a88f290346b9f35c SHA512 d17ec45eeae8f57c618a51243ac54bc3a2a3f09632e4e50c51781cf8557362dbfa7856d9d4ecdebeea344041c2686e2256f6bcd2dcc71660fcf336cf887dcb1c DIST snes9x-1.58.tar.gz 2830667 BLAKE2B 66446e56a172b318f7cefecc59d927270377f725df0ca89888e1c50eb3f5475729ffc9da86ead5e50f106ab0781ad644ae3b3ed5719724db9b78b687135ead04 SHA512 51f8e92258db58e55f7b0b6c4537a916358891bb5ee35bd984d1970d2fedbdb2f8b3a4f560e0302d3011e521a1072c8a0d69723e8b151f61d33802c02f392d7d EBUILD snes9x-1.57.ebuild 2860 BLAKE2B d829620d8308791ea4c31dcc07c061baef25ea7203ab8a536db841a5b5a8213e98b939d990ec0ee071c83e12942ea2c4ef8dba36519f25b04cc7eb4de457c92a SHA512 b01974ee1d46b4e929890a81f847632ec73a364218da4e03a9c4030345e513ef8a3644c2d2e6d822a6ac7928aefb4147314aa6fdf38d1a570025752c574e3318 -EBUILD snes9x-1.58.ebuild 2749 BLAKE2B b3fd6d9771bce1debfb35fb7c4a4a43ebe98634c583879a8e8b9c4351142f748141a1f1cf34fecdbbb3f108545649400429fa0b34c0d2ff3fdb74160f3adc9ad SHA512 515d1718224ae25c259aa8d765d228851ba7cf2793d13e862581980116db8c4a2f4518f7479a30c71f2bdd83cbb56317d5c076ae33329d001f74d635c0b96650 +EBUILD snes9x-1.58.ebuild 2804 BLAKE2B d30b3e06951e3889fcecd1bca0cac88b76e71ae3bba163accc08a0e9f6a1b3899684fd9b26ec39b703d9cb63065431c1e8d69500570aa4068079195039f39471 SHA512 057b2dca88e954bb497a181d4cd1f8ed729b210e8847807083c89f33ee4f5a5eef5f4d9fe073ae0d835bdcc0dd3dfd50cb2eb23b680364fd818af03f43c67320 MISC metadata.xml 489 BLAKE2B 3cb6bc463e0eb5ca5203722cc2320eba2bc2e000fbd42e1386fcef807df3aa6e853bbff49fb6b323ae012b44b6add2c354530df0ebc56d232aa89188297426cc SHA512 805a8089e2e324dcf14ca5d25b168fdd79dc72113710b820904982ce9b2c49e2876095cd461ed52f4905041c14b25626f4540db7e1b38e47a9d55bbac98ebbfc diff --git a/games-emulation/snes9x/files/snes9x-1.58-without-screenshot_build_fix.patch b/games-emulation/snes9x/files/snes9x-1.58-without-screenshot_build_fix.patch new file mode 100644 index 000000000000..7af1e9e2b902 --- /dev/null +++ b/games-emulation/snes9x/files/snes9x-1.58-without-screenshot_build_fix.patch @@ -0,0 +1,31 @@ +From 51909e0cb44ee8de346f3edfb2a6c4a8bb97ea1d Mon Sep 17 00:00:00 2001 +From: Brandon Wright +Date: Fri, 4 Jan 2019 10:52:11 -0600 +Subject: [PATCH] Fix PNG usage without preprocessor check. + +--- + shaders/shader_helpers.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/shaders/shader_helpers.cpp b/shaders/shader_helpers.cpp +index b84e6291..a589d39b 100644 +--- a/shaders/shader_helpers.cpp ++++ b/shaders/shader_helpers.cpp +@@ -93,6 +93,7 @@ bool loadPngImage(const char* name, + bool& outHasAlpha, + GLubyte** outData) + { ++#ifdef HAVE_LIBPNG + png_structp png_ptr; + png_infop info_ptr; + unsigned int sig_read = 0; +@@ -211,6 +212,9 @@ bool loadPngImage(const char* name, + + /* That's it */ + return true; ++#else ++ return false; ++#endif + } + + bool loadTGA(const char* filename, STGA& tgaFile) diff --git a/games-emulation/snes9x/snes9x-1.58.ebuild b/games-emulation/snes9x/snes9x-1.58.ebuild index 911de9a90fb0..9fd943cac808 100644 --- a/games-emulation/snes9x/snes9x-1.58.ebuild +++ b/games-emulation/snes9x/snes9x-1.58.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -47,6 +47,7 @@ S="${WORKDIR}/${P}/unix" PATCHES=( "${FILESDIR}"/${PN}-1.53-cross-compile.patch "${FILESDIR}"/${PN}-1.58-build-system.patch + "${FILESDIR}"/${P}-without-screenshot_build_fix.patch ) src_prepare() { -- cgit v1.2.3