From 725c54a5a087e7b77eaaae14d1d2e70e5975b7fd Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sat, 18 Dec 2021 06:31:09 +0000 Subject: emulators/citra-qt5: fix Compatibility == Not Tested citra-qt 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 66e2037c4970eb8b9a2d6bbb37cb0bae84074672) --- emulators/citra-qt5/Makefile | 2 +- emulators/citra/Makefile | 8 ++++++++ emulators/citra/distinfo | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/emulators/citra-qt5/Makefile b/emulators/citra-qt5/Makefile index 7acb8727f8c8..c3ac5ab82c9c 100644 --- a/emulators/citra-qt5/Makefile +++ b/emulators/citra-qt5/Makefile @@ -1,4 +1,4 @@ -PORTREVISION= 0 +PORTREVISION= 1 PKGNAMESUFFIX= -qt5 MASTERDIR= ${.CURDIR}/../citra diff --git a/emulators/citra/Makefile b/emulators/citra/Makefile index 81640316c2dd..4982654322aa 100644 --- a/emulators/citra/Makefile +++ b/emulators/citra/Makefile @@ -2,6 +2,10 @@ PORTNAME= citra PORTVERSION= s20211218 PORTREVISION?= 0 CATEGORIES= emulators +MASTER_SITES= https://api.citra-emu.org/gamedb/?dummy=/:gamedb \ + LOCAL/jbeich:gamedb +DISTFILES= ${PORTNAME}/compatibility_list.json:gamedb +EXTRACT_ONLY= ${DISTFILES:N*\:gamedb:C/\:.*//} MAINTAINER= jbeich@FreeBSD.org COMMENT= Nintendo 3DS emulator/debugger @@ -89,4 +93,8 @@ 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/ + .include diff --git a/emulators/citra/distinfo b/emulators/citra/distinfo index f8681ab6d19c..7a9001a34a5b 100644 --- a/emulators/citra/distinfo +++ b/emulators/citra/distinfo @@ -1,4 +1,6 @@ TIMESTAMP = 1639809069 +SHA256 (citra/compatibility_list.json) = 42586174a9fa78723eb0cf9a8c42fa9969c1b1007f70b09909a49d41418e52a2 +SIZE (citra/compatibility_list.json) = 327574 SHA256 (citra-emu-citra-s20211218-0126ecb3e_GH0.tar.gz) = 17f0a311d23ed81bdced0e2bdcfe617d2257e9a9f8cf442d2421e56d4b30f052 SIZE (citra-emu-citra-s20211218-0126ecb3e_GH0.tar.gz) = 5326925 SHA256 (citra-emu-ext-boost-36603a1_GH0.tar.gz) = a1885cf0f7b1c790f8a83e963fec591bad1232e6b824e64d8db136920ec1b67d -- cgit v1.2.3