aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2021-12-18 06:31:09 +0000
committerJan Beich <jbeich@FreeBSD.org>2021-12-31 20:40:08 +0000
commit725c54a5a087e7b77eaaae14d1d2e70e5975b7fd (patch)
treef8bacc286f6ad68aec2531a7c4697b4926ca7e18
parent716c30c1d2ee4a0dc4c787566da51cc296e77f42 (diff)
downloadports-725c54a5a087e7b77eaaae14d1d2e70e5975b7fd.tar.gz
ports-725c54a5a087e7b77eaaae14d1d2e70e5975b7fd.zip
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)
-rw-r--r--emulators/citra-qt5/Makefile2
-rw-r--r--emulators/citra/Makefile8
-rw-r--r--emulators/citra/distinfo2
3 files changed, 11 insertions, 1 deletions
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 <bsd.port.mk>
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