diff options
Diffstat (limited to 'games-emulation/dolphin')
-rw-r--r-- | games-emulation/dolphin/Manifest | 3 | ||||
-rw-r--r-- | games-emulation/dolphin/dolphin-5.0.ebuild | 64 | ||||
-rw-r--r-- | games-emulation/dolphin/files/dolphin-5.0-CHAR_WIDTH-collision.patch | 49 |
3 files changed, 74 insertions, 42 deletions
diff --git a/games-emulation/dolphin/Manifest b/games-emulation/dolphin/Manifest index 90157d1ff118..4e1842786fbd 100644 --- a/games-emulation/dolphin/Manifest +++ b/games-emulation/dolphin/Manifest @@ -1,4 +1,5 @@ +AUX dolphin-5.0-CHAR_WIDTH-collision.patch 2043 BLAKE2B d29f1f9ff360d79105d7020174bfc5063ad18c544d17056dca055174d8d0c837671f5d04f95de98e140d8634651f869e1a0d9e79b834f0f039ce59900c0696b0 SHA512 47c25a3fd5e6c47e34fe23d5faa71ea316c708fa2bbcbc5136a415fc25a0b207c4d18bfedb2d7c4e2a71394581d1e41fd7d4cca3544d34e3f4a6a84fee360314 DIST dolphin-5.0.zip 41802909 BLAKE2B 57fb7741e86b8b5194c9ccaf99e60be0202429209ce98d08aec4ed1d6f47fb347d9149509de7ac1e4bb28435cba35e357b87cf5d29efe2867706dbb3b903c886 SHA512 36c4f371e066537331a9a8ec4a17befa278465cdebe258e1cbf1157752ba69bff9c1b8a6e8698bbb650aa257bd48b6b42ee9f61357904b09fd01738af8223d3a -EBUILD dolphin-5.0.ebuild 4663 BLAKE2B c2378082421db3271fbd350eb2162bd8f07b8aec19edc487080eba9fb77b3e0316ae7a0ab84b2df0d78b0e7afa9d1b7d602e9bab8a69cc58a7f7194d0cce746b SHA512 7ad78f21fc2bb0b9e1fe5a26f0568f068729da61ea2d531fb8f92b18ee4bdd0572b42a41baeac300f62a731ce41259d878390f3c9bb6ba6ff62c0ca90b05a74e +EBUILD dolphin-5.0.ebuild 4448 BLAKE2B 4dcdfc0bb5c6ca3fbb60a18c16d8f35bc9833e677a9bfbb015ea7176e362b1be15d57d45b5cae478739872b4bac0743236789807b50d3d22c7b64f95aa659a74 SHA512 c233e2117543315b920fa79fa73c3dcf56b0f7fea102be1464c1830c4308c9de3e8751b747fbb4423e4adc5c18bef64df2845f725661941e42152c749edb7d9e EBUILD dolphin-9999.ebuild 4788 BLAKE2B 32c316edeeeb8a9c17f8dd610d12f00e4c7c26d7fa4eee5e63e78d22ca0a76a7666ea924de0c4ff7282446516d33032e4f183afc95887f3d206247285092301c SHA512 45bcc0bfbe7b1db17713f94a89be5df7146b720457ce4fe1f881ac981b4757c5e0125f9079b3fa10d4f313443919c469c790bfb095acbd107078fc2d6933f988 MISC metadata.xml 836 BLAKE2B 786a1a9f4e7d76c0111bd9755f784a0bba5607465e2693986c6e2f37e0a32f9ceea84c902464ea47b66f84c183660d5767f569ae933c6b8774d47a15de4c6f30 SHA512 7bdcb2ba2f3a1fa247080a08da495274bea1f61bec1a88e824ebd44fb7e21e74e7ef52855c1c6fba07f12b278df19c0014ba98a5b6ec50f62c08b0ee31e5fc6b diff --git a/games-emulation/dolphin/dolphin-5.0.ebuild b/games-emulation/dolphin/dolphin-5.0.ebuild index 66b0fe9c7dab..190053251053 100644 --- a/games-emulation/dolphin/dolphin-5.0.ebuild +++ b/games-emulation/dolphin/dolphin-5.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -7,7 +7,7 @@ PLOCALES="ar ca cs da_DK de el en es fa fr hr hu it ja ko ms_MY nb nl pl pt pt_B PLOCALE_BACKUP="en" WX_GTK_VER="3.0" -inherit cmake-utils eutils l10n pax-utils toolchain-funcs versionator wxwidgets +inherit cmake-utils desktop l10n pax-utils toolchain-funcs versionator wxwidgets SRC_URI="https://github.com/${PN}-emu/${PN}/archive/${PV}.zip -> ${P}.zip" KEYWORDS="amd64" @@ -17,15 +17,15 @@ HOMEPAGE="https://www.dolphin-emu.org/" LICENSE="GPL-2" SLOT="0" -IUSE="alsa ao bluetooth doc egl +evdev ffmpeg llvm log lto openal +pch portaudio profile pulseaudio qt5 sdl upnp +wxwidgets" +IUSE="alsa ao bluetooth doc egl +evdev ffmpeg libav llvm log lto openal +pch portaudio profile pulseaudio qt5 sdl upnp +wxwidgets" -RDEPEND=">=media-libs/libsfml-2.1 +RDEPEND=" + >=media-libs/libsfml-2.1 >net-libs/enet-1.3.7 >=net-libs/mbedtls-2.1.1 dev-libs/lzo - media-libs/libpng:= - sys-libs/glibc - sys-libs/readline:= + media-libs/libpng:0= + sys-libs/readline:0= sys-libs/zlib x11-libs/libXext x11-libs/libXi @@ -37,14 +37,17 @@ RDEPEND=">=media-libs/libsfml-2.1 bluetooth? ( net-wireless/bluez ) egl? ( media-libs/mesa[egl] ) evdev? ( - dev-libs/libevdev - virtual/udev + dev-libs/libevdev + virtual/udev + ) + ffmpeg? ( + libav? ( media-video/libav:= ) + !libav? ( media-video/ffmpeg:= ) ) - ffmpeg? ( virtual/ffmpeg ) llvm? ( sys-devel/llvm ) openal? ( - media-libs/openal - media-libs/libsoundtouch + media-libs/openal + media-libs/libsoundtouch ) portaudio? ( media-libs/portaudio ) profile? ( dev-util/oprofile ) @@ -57,35 +60,20 @@ RDEPEND=">=media-libs/libsfml-2.1 sdl? ( media-libs/libsdl2[haptic,joystick] ) upnp? ( >=net-libs/miniupnpc-1.7 ) wxwidgets? ( - dev-libs/glib:2 - x11-libs/gtk+:2 - x11-libs/wxGTK:${WX_GTK_VER}[opengl,X] - ) - " + dev-libs/glib:2 + x11-libs/gtk+:2 + x11-libs/wxGTK:${WX_GTK_VER}[opengl,X] + )" DEPEND="${RDEPEND} - >=dev-util/cmake-2.8.8 - >=sys-devel/gcc-4.9.0 app-arch/zip media-libs/freetype sys-devel/gettext - virtual/pkgconfig - " - -pkg_pretend() { - - local ver=4.9.0 - local msg="${PN} needs at least GCC ${ver} set to compile." - - if [[ ${MERGE_TYPE} != binary ]]; then - if ! version_is_at_least ${ver} $(gcc-fullversion); then - eerror ${msg} - die ${msg} - fi - fi + virtual/pkgconfig" -} +PATCHES=( "${FILESDIR}"/${P}-CHAR_WIDTH-collision.patch ) src_prepare() { + cmake-utils_src_prepare # Remove automatic dependencies to prevent building without flags enabled. if use !alsa; then @@ -139,13 +127,12 @@ src_prepare() { } src_configure() { - if use wxwidgets; then need-wxwidgets unicode fi local mycmakeargs=( - "-DUSE_SHARED_ENET=ON" + -DUSE_SHARED_ENET=ON $( cmake-utils_use ffmpeg ENCODE_FRAMEDUMPS ) $( cmake-utils_use log FASTLOG ) $( cmake-utils_use profile OPROFILING ) @@ -162,12 +149,7 @@ src_configure() { cmake-utils_src_configure } -src_compile() { - - cmake-utils_src_compile -} src_install() { - cmake-utils_src_install dodoc Readme.md diff --git a/games-emulation/dolphin/files/dolphin-5.0-CHAR_WIDTH-collision.patch b/games-emulation/dolphin/files/dolphin-5.0-CHAR_WIDTH-collision.patch new file mode 100644 index 000000000000..d6e4c7a2dc0e --- /dev/null +++ b/games-emulation/dolphin/files/dolphin-5.0-CHAR_WIDTH-collision.patch @@ -0,0 +1,49 @@ +Avoid clash with TS 18661-1:2014 macros +https://bugs.gentoo.org/637986 + +--- a/Source/Core/VideoBackends/OGL/RasterFont.cpp ++++ b/Source/Core/VideoBackends/OGL/RasterFont.cpp +@@ -15,7 +15,7 @@ + namespace OGL + { + +-static const int CHAR_WIDTH = 8; ++static const int DOLPHIN_CHAR_WIDTH = 8; + static const int CHAR_HEIGHT = 13; + static const int CHAR_OFFSET = 32; + static const int CHAR_COUNT = 95; +@@ -146,20 +146,20 @@ + glGenTextures(1, &texture); + glActiveTexture(GL_TEXTURE8); + glBindTexture(GL_TEXTURE_2D, texture); +- std::vector<u32> texture_data(CHAR_WIDTH * CHAR_COUNT * CHAR_HEIGHT); ++ std::vector<u32> texture_data(DOLPHIN_CHAR_WIDTH * CHAR_COUNT * CHAR_HEIGHT); + for (int y = 0; y < CHAR_HEIGHT; y++) + { + for (int c = 0; c < CHAR_COUNT; c++) + { +- for (int x = 0; x < CHAR_WIDTH; x++) ++ for (int x = 0; x < DOLPHIN_CHAR_WIDTH; x++) + { +- bool pixel = (0 != (rasters[c][y] & (1 << (CHAR_WIDTH - x - 1)))); +- texture_data[CHAR_WIDTH * CHAR_COUNT * y + CHAR_WIDTH * c + x] = pixel ? -1 : 0; ++ bool pixel = (0 != (rasters[c][y] & (1 << (DOLPHIN_CHAR_WIDTH - x - 1)))); ++ texture_data[DOLPHIN_CHAR_WIDTH * CHAR_COUNT * y + DOLPHIN_CHAR_WIDTH * c + x] = pixel ? -1 : 0; + } + } + } + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 0); +- glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, CHAR_WIDTH * CHAR_COUNT, CHAR_HEIGHT, 0, GL_RGBA, GL_UNSIGNED_BYTE, texture_data.data()); ++ glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, DOLPHIN_CHAR_WIDTH * CHAR_COUNT, CHAR_HEIGHT, 0, GL_RGBA, GL_UNSIGNED_BYTE, texture_data.data()); + + // generate shader + ProgramShaderCache::CompileShader(s_shader, s_vertexShaderSrc, s_fragmentShaderSrc); +@@ -196,7 +196,7 @@ + std::vector<GLfloat> vertices(text.length() * 6 * 4); + + int usage = 0; +- GLfloat delta_x = GLfloat(2 * CHAR_WIDTH) / GLfloat(bbWidth); ++ GLfloat delta_x = GLfloat(2 * DOLPHIN_CHAR_WIDTH) / GLfloat(bbWidth); + GLfloat delta_y = GLfloat(2 * CHAR_HEIGHT) / GLfloat(bbHeight); + GLfloat border_x = 2.0f / GLfloat(bbWidth); + GLfloat border_y = 4.0f / GLfloat(bbHeight); |