public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: games-emulation/yuzu/
Date: Fri, 21 Jan 2022 09:14:46 +0000 (UTC)	[thread overview]
Message-ID: <1642735820.7a70fb27ee6b5aca3099bd810b96178cbfb064b2.flow@gentoo> (raw)

commit:     7a70fb27ee6b5aca3099bd810b96178cbfb064b2
Author:     Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
AuthorDate: Fri Jan 21 03:30:20 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Fri Jan 21 03:30:20 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7a70fb27

games-emulation/yuzu: unbundle mbedtls, update SDL2, skip qtconcurrent fix, review comments

Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>

 games-emulation/yuzu/yuzu-9999.ebuild | 25 +++++++++++++++----------
 1 file changed, 15 insertions(+), 10 deletions(-)

diff --git a/games-emulation/yuzu/yuzu-9999.ebuild b/games-emulation/yuzu/yuzu-9999.ebuild
index c194b8c19..e4a73c5ad 100644
--- a/games-emulation/yuzu/yuzu-9999.ebuild
+++ b/games-emulation/yuzu/yuzu-9999.ebuild
@@ -8,12 +8,10 @@ inherit cmake git-r3 toolchain-funcs xdg
 DESCRIPTION="An emulator for Nintendo Switch"
 HOMEPAGE="https://yuzu-emu.org"
 EGIT_REPO_URI="https://github.com/yuzu-emu/yuzu-mainline"
-EGIT_SUBMODULES=( '-*' 'dynarmic' 'soundtouch' 'sirit' 'mbedtls' 'xbyak' 'externals/cpp-httplib' )
+EGIT_SUBMODULES=( '-*' 'dynarmic' 'soundtouch' 'sirit' 'xbyak' 'externals/cpp-httplib' )
 # Soundtouch cannot be unbundled -> custom version
-# Dynarmic is heavily tweaked to emulate switch cpu non sense to unbundle
+# Dynarmic is intended to be tailored on purpose, not to be generic
 # TODO wait 'xbyak' for bump in tree, require 5.96
-# TODO many submodules produce static libraries which forces to unset BUILD_SHARED_LIBS
-#      this may be better to generate shared libraries and install them under /usr/$(get_libdir)/yuzu
 
 LICENSE="|| ( Apache-2.0 GPL-2+ ) 0BSD BSD GPL-2+ ISC MIT
 	!system-vulkan? ( Apache-2.0 )"
@@ -30,6 +28,7 @@ RDEPEND="
 	>=media-libs/opus-1.3.1
 	>=media-video/ffmpeg-4.3:=
 	>=sys-libs/zlib-1.2
+	net-libs/mbedtls[cmac]
 	virtual/libusb:1
 	cubeb? ( media-libs/cubeb )
 	qt5? (
@@ -38,7 +37,7 @@ RDEPEND="
 		>=dev-qt/qtwidgets-5.15:5
 	)
 	sdl? (
-		>=media-libs/libsdl2-2.0.16
+		>=media-libs/libsdl2-2.0.18
 		>=dev-libs/inih-52
 	)
 "
@@ -62,8 +61,6 @@ pkg_setup() {
 		[[ "$(gcc-major-version)" -lt 11 ]] && \
 			die "You need gcc version 11 or clang to compile this package"
 	fi
-	grep -q 'ThreadEngineStarter<void>' /usr/include/qt5/QtConcurrent/qtconcurrentthreadengine.h \
-		|| die "add user patch for dev-qt/qtconcurrent: https://github.com/qt/qtbase/commit/659f7a06e91c04b239e3f4c0bcfccbe3581af1c3.diff"
 }
 
 src_unpack() {
@@ -101,15 +98,21 @@ src_prepare() {
 		sed -i -e 's:../../externals/Vulkan-Headers/include:/usr/include/vulkan/:' src/video_core/CMakeLists.txt src/yuzu/CMakeLists.txt src/yuzu_cmd/CMakeLists.txt || die
 	fi
 
+	# Unbundle mbedtls: undefined reference to `mbedtls_cipher_cmac'
+	sed -i -e '/mbedtls/d' externals/CMakeLists.txt || die
+	sed -i -e 's/mbedtls/& mbedcrypto mbedx509/' \
+		-e '1ifind_path(MBEDTLS_INCLUDE_DIR NAMES mbedtls/ssl.h)' \
+		-e '1ifind_library(MBEDTLS_LIB NAMES mbedtls)' \
+		-e '1ifind_library(MBEDX509_LIB NAMES mbedx509)' \
+		-e '1ifind_library(MBEDCRYPTO_LIB NAMES mbedcrypto)' \
+		src/core/CMakeLists.txt
+
 	# Workaround: GenerateSCMRev fails
 	sed -i -e "s/@GIT_BRANCH@/${EGIT_BRANCH:-master}/" \
 		-e "s/@GIT_REV@/$(git rev-parse --short HEAD)/" \
 		-e "s/@GIT_DESC@/$(git describe --always --long)/" \
 		src/common/scm_rev.cpp.in || die
 
-	# Lower sdl requirement
-	sed -i -e '/SDL2/s/18/16/' CMakeLists.txt || die
-
 	# Use system SPIRV headers
 	sed -i -e '/SPIRV/d' externals/sirit/CMakeLists.txt || die
 
@@ -130,6 +133,7 @@ src_prepare() {
 
 src_configure() {
 	local -a mycmakeargs=(
+		# Libraries are private and rely on circular dependency resolution.
 		-DBUILD_SHARED_LIBS=OFF
 		-DDYNARMIC_NO_BUNDLED_ROBIN_MAP=ON
 		-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=$(usex compatibility-list)
@@ -139,6 +143,7 @@ src_configure() {
 		-DENABLE_SDL2=$(usex sdl)
 		-DENABLE_WEB_SERVICE=$(usex webservice)
 		-DUSE_DISCORD_PRESENCE=$(usex discord)
+		-DYUZU_USE_BUNDLED_OPUS=OFF
 		-DYUZU_USE_EXTERNAL_SDL2=OFF
 		-DYUZU_USE_QT_WEB_ENGINE=$(usex webengine)
 	)


             reply	other threads:[~2022-01-21  9:14 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-21  9:14 Florian Schmaus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-08  7:22 [gentoo-commits] repo/proj/guru:master commit in: games-emulation/yuzu/ Viorel Munteanu
2024-01-04 13:07 David Roman
2024-01-04 13:07 David Roman
2023-09-28 10:01 David Roman
2023-09-03 12:27 Haelwenn Monnier
2023-07-13  9:42 David Roman
2023-07-04  4:53 Viorel Munteanu
2023-07-04  4:53 Viorel Munteanu
2023-06-26 22:01 Haelwenn Monnier
2023-06-15 19:12 Haelwenn Monnier
2023-02-14 12:02 Florian Schmaus
2023-02-14 12:02 Florian Schmaus
2023-02-13 11:28 Andrew Ammerlaan
2023-02-13 11:28 Andrew Ammerlaan
2023-02-06  8:21 Viorel Munteanu
2023-02-06  8:21 Viorel Munteanu
2022-12-20 17:23 Haelwenn Monnier
2022-10-17 11:26 Haelwenn Monnier
2022-09-09 20:02 Ronny Gutbrod
2022-09-08 10:24 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2022-09-08 10:24 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2022-08-11 13:45 Andrew Ammerlaan
2022-08-07  9:13 Haelwenn Monnier
2022-08-07  9:13 Haelwenn Monnier
2021-11-08 13:02 Andrew Ammerlaan
2021-08-07 17:48 Florian Schmaus
2021-08-07 17:47 Florian Schmaus
2021-07-13  9:09 Andrew Ammerlaan
2021-06-26 10:53 Haelwenn Monnier
2021-06-06  8:14 Jian Lin
2021-05-25 23:07 Haelwenn Monnier
2021-05-03 16:57 Andrew Ammerlaan
2021-04-30  7:45 Andrew Ammerlaan
2021-04-30  7:45 Andrew Ammerlaan
2021-04-30  7:45 Andrew Ammerlaan
2021-04-29  8:23 Michał Górny
2021-04-29  8:23 Michał Górny
2021-04-29  8:23 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1642735820.7a70fb27ee6b5aca3099bd810b96178cbfb064b2.flow@gentoo \
    --to=flow@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox