Skip to content

Commit

Permalink
emulators/yuzu-qt5: fix Compatibility == Not Tested
Browse files Browse the repository at this point in the history
yuzu embeds game compatibility list during build. It cannot be updated
on demand unlike rpcs3. So, cache the list in local-distfiles.
  • Loading branch information
jbeich committed Dec 31, 2021
1 parent fb41f40 commit 8042b64
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion emulators/yuzu-qt5/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PORTREVISION= 0
PORTREVISION= 1
PKGNAMESUFFIX= -qt5

MASTERDIR= ${.CURDIR}/../yuzu
Expand Down
8 changes: 8 additions & 0 deletions emulators/yuzu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions emulators/yuzu/distinfo
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8042b64

Please sign in to comment.