aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2021-12-31 19:52:03 +0000
committerJan Beich <jbeich@FreeBSD.org>2021-12-31 20:17:02 +0000
commit507fbd9eb88bd68a16853dd284faa92f7d46d311 (patch)
tree4125a5394f27dfa5cba2832713e26e3c728484cd
parent4f5ce01d2682ec073459cd978481323b1d3c8994 (diff)
downloadports-507fbd9eb88bd68a16853dd284faa92f7d46d311.tar.gz
ports-507fbd9eb88bd68a16853dd284faa92f7d46d311.zip
emulators/yuzu-qt5: fix Compatibility == Not Tested
yuzu embeds game compatibility list during build. It cannot be updated on demand unlike rpcs3. So, cache the list in local-distfiles. (cherry picked from commit 8042b641840f40072866f92328877baa65836b39)
-rw-r--r--emulators/yuzu-qt5/Makefile2
-rw-r--r--emulators/yuzu/Makefile8
-rw-r--r--emulators/yuzu/distinfo2
3 files changed, 11 insertions, 1 deletions
diff --git a/emulators/yuzu-qt5/Makefile b/emulators/yuzu-qt5/Makefile
index 30c667b9c82a..e8c5a305c736 100644
--- a/emulators/yuzu-qt5/Makefile
+++ b/emulators/yuzu-qt5/Makefile
@@ -1,4 +1,4 @@
-PORTREVISION= 0
+PORTREVISION= 1
PKGNAMESUFFIX= -qt5
MASTERDIR= ${.CURDIR}/../yuzu
diff --git a/emulators/yuzu/Makefile b/emulators/yuzu/Makefile
index 6a6b1586e8a0..60d2f8c45ad6 100644
--- a/emulators/yuzu/Makefile
+++ b/emulators/yuzu/Makefile
@@ -2,6 +2,10 @@ PORTNAME= yuzu
PORTVERSION= s20211228
PORTREVISION?= 0
CATEGORIES= emulators
+MASTER_SITES= https://api.yuzu-emu.org/gamedb/?dummy=/:gamedb \
+ LOCAL/jbeich:gamedb
+DISTFILES= ${PORTNAME}/compatibility_list.json:gamedb
+EXTRACT_ONLY= ${DISTFILES:N*\:gamedb:C/\:.*//}
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= 6904f055db88.patch:-p1 # https://github.com/yuzu-emu/yuzu/pull/6598 mainline-merge
@@ -107,6 +111,10 @@ post-patch:
-e 's/@GIT_DESC@/${GH_TAGNAME}/' \
${WRKSRC}/src/common/scm_rev.cpp.in
+post-configure:
+ @${CP} ${DISTFILES:M*\:gamedb:C/\:.*//:S,^,${_DISTDIR},} \
+ ${BUILD_WRKSRC}/dist/compatibility_list/
+
post-patch-VAAPI-off:
@${REINPLACE_CMD} -i .nova '/pkg_check.*libva/d' \
${WRKSRC}/CMakeLists.txt
diff --git a/emulators/yuzu/distinfo b/emulators/yuzu/distinfo
index d75944644222..e1bf18861dc1 100644
--- a/emulators/yuzu/distinfo
+++ b/emulators/yuzu/distinfo
@@ -1,4 +1,6 @@
TIMESTAMP = 1640737537
+SHA256 (yuzu/compatibility_list.json) = 0e601d6ad2ebc5b6ec9dd84bbafd0b93f24e5a1d727507dcb03e33b94a8ed8e6
+SIZE (yuzu/compatibility_list.json) = 1255231
SHA256 (yuzu-emu-yuzu-s20211228-279c7bcc1_GH0.tar.gz) = 98d32aef80cb808e682a7af1ddd075b9f6ce4f6c18fb88f4541a10b3ee774b37
SIZE (yuzu-emu-yuzu-s20211228-279c7bcc1_GH0.tar.gz) = 4470528
SHA256 (yuzu-emu-mbedtls-v2.16.9-115-g8c88150ca_GH0.tar.gz) = 8cd6d075b4da0ad5fb995eb37390e2e6088be8d41ab1cdfc7e7e4256bd991450