libretro.swanstation: init at unstable-2021-11-21

Sadly the original repository (stenzek/duckstation) is missing the
necessary files to build a libretro core, so we need to use the fork
instead.
This commit is contained in:
Thiago Kenji Okada 2021-11-21 23:14:17 -03:00
parent 33478a118c
commit 994719881a
3 changed files with 66 additions and 43 deletions

View file

@ -50,6 +50,7 @@ let
mkLibRetroCore =
{ core
, description
# Check https://github.com/libretro/libretro-super for license information
, license
, src ? null
, broken ? false
@ -116,14 +117,6 @@ in
makeFlags = [ "GIT_VERSION=" ];
};
beetle-snes = mkLibRetroCore {
core = "mednafen-snes";
src = getCoreSrc "beetle-snes";
description = "Port of Mednafen's SNES core to libretro";
license = lib.licenses.gpl2Only;
makefile = "Makefile";
};
beetle-gba = mkLibRetroCore {
core = "mednafen-gba";
src = getCoreSrc "beetle-gba";
@ -204,6 +197,14 @@ in
meta.platforms = [ "x86_64-linux" "aarch64-linux" ];
};
beetle-snes = mkLibRetroCore {
core = "mednafen-snes";
src = getCoreSrc "beetle-snes";
description = "Port of Mednafen's SNES core to libretro";
license = lib.licenses.gpl2Only;
makefile = "Makefile";
};
beetle-supergrafx = mkLibRetroCore {
core = "mednafen-supergrafx";
src = getCoreSrc "beetle-supergrafx";
@ -212,14 +213,6 @@ in
makefile = "Makefile";
};
beetle-wswan = mkLibRetroCore {
core = "mednafen-wswan";
src = getCoreSrc "beetle-wswan";
description = "Port of Mednafen's WonderSwan core to libretro";
license = lib.licenses.gpl2Only;
makefile = "Makefile";
};
beetle-vb = mkLibRetroCore {
core = "mednafen-vb";
src = getCoreSrc "beetle-vb";
@ -228,6 +221,14 @@ in
makefile = "Makefile";
};
beetle-wswan = mkLibRetroCore {
core = "mednafen-wswan";
src = getCoreSrc "beetle-wswan";
description = "Port of Mednafen's WonderSwan core to libretro";
license = lib.licenses.gpl2Only;
makefile = "Makefile";
};
bluemsx = mkLibRetroCore {
core = "bluemsx";
description = "Port of BlueMSX to libretro";
@ -724,6 +725,20 @@ in
makefile = "Makefile";
};
swanstation = mkLibRetroCore {
core = "swanstation";
version = "unstable-2021-11-21";
description = "Port of SwanStation (a fork of DuckStation) to libretro";
license = lib.licenses.gpl3Only;
extraNativeBuildInputs = [ cmake ];
makefile = "Makefile";
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DBUILD_LIBRETRO_CORE=ON"
];
postPatch = "mkdir -p src/duckstation-libretro";
};
tgbdual = mkLibRetroCore {
core = "tgbdual";
description = "Port of TGBDual to libretro";
@ -757,12 +772,6 @@ in
postBuild = "cd lib";
};
vba-next = mkLibRetroCore {
core = "vba-next";
description = "VBA-M libretro port with modifications for speed";
license = lib.licenses.gpl2Only;
};
vba-m = mkLibRetroCore {
core = "vbam";
src = getCoreSrc "vba-m";
@ -772,6 +781,12 @@ in
preBuild = "cd src/libretro";
};
vba-next = mkLibRetroCore {
core = "vba-next";
description = "VBA-M libretro port with modifications for speed";
license = lib.licenses.gpl2Only;
};
vecx = mkLibRetroCore {
core = "vecx";
description = "Port of Vecx to libretro";

View file

@ -6,13 +6,6 @@
"sha256": "LJpRegJVR2+sS1UmTTpVest0rMrNDBMXmj/jRFVglWI=",
"fetchSubmodules": false
},
"beetle-snes": {
"owner": "libretro",
"repo": "beetle-bsnes-libretro",
"rev": "bc867656d7438aaffc6818b3b92350587bc78a47",
"sha256": "TyUCRGK+uyXowDjXW9/4m+zL8Vh/3GGsX1eznrTCbAg=",
"fetchSubmodules": false
},
"beetle-gba": {
"owner": "libretro",
"repo": "beetle-gba-libretro",
@ -62,6 +55,13 @@
"sha256": "lKlNNAHK1ynFXY++Ya0m1Ax5YTZkd44eQjzuOLXfWa8=",
"fetchSubmodules": false
},
"beetle-snes": {
"owner": "libretro",
"repo": "beetle-bsnes-libretro",
"rev": "bc867656d7438aaffc6818b3b92350587bc78a47",
"sha256": "TyUCRGK+uyXowDjXW9/4m+zL8Vh/3GGsX1eznrTCbAg=",
"fetchSubmodules": false
},
"beetle-supergrafx": {
"owner": "libretro",
"repo": "beetle-supergrafx-libretro",
@ -69,13 +69,6 @@
"sha256": "kGyl5XJMFUALPAEZf4IynY6bmXWfqy0o65eO8zS0RTE=",
"fetchSubmodules": false
},
"beetle-wswan": {
"owner": "libretro",
"repo": "beetle-wswan-libretro",
"rev": "0c7faaf7f70b72ebb68e310530cd46a69e680d40",
"sha256": "UQyICcZe1DVotSFt0QVnGop+JG5NJwTBcGSZaFW0P0U=",
"fetchSubmodules": false
},
"beetle-vb": {
"owner": "libretro",
"repo": "beetle-vb-libretro",
@ -83,6 +76,13 @@
"sha256": "KguKbRK0uXE+brpF8HdRwi8Gt76AMa4wkh1MFvNCbN4=",
"fetchSubmodules": false
},
"beetle-wswan": {
"owner": "libretro",
"repo": "beetle-wswan-libretro",
"rev": "0c7faaf7f70b72ebb68e310530cd46a69e680d40",
"sha256": "UQyICcZe1DVotSFt0QVnGop+JG5NJwTBcGSZaFW0P0U=",
"fetchSubmodules": false
},
"bluemsx": {
"owner": "libretro",
"repo": "bluemsx-libretro",
@ -454,6 +454,13 @@
"sha256": "s7LQ47sAPTyk4COONk4qnebxCq78zGLIjh3Y2+1fIak=",
"fetchSubmodules": false
},
"swanstation": {
"owner": "libretro",
"repo": "swanstation",
"rev": "cc3946b2b3bd10282bc46078c245db09f6e68836",
"sha256": "UzdmjUS6+6z4K6VJtMPxOwGXsCtxoh08RWTNHlvy/h8=",
"fetchSubmodules": false
},
"tgbdual": {
"owner": "libretro",
"repo": "tgbdual-libretro",
@ -475,13 +482,6 @@
"sha256": "SXJvWX6Q3BrdajNnT4HIf6H2z7dXXvnXTJXf/TYRw4I=",
"fetchSubmodules": true
},
"vba-next": {
"owner": "libretro",
"repo": "vba-next",
"rev": "b218f48bb27b5d3885fa4076ff325922b5acd817",
"sha256": "idqGMbMA9mZlIh0QAba3BxpPDi/bFJJkUbnxV3xMOCo=",
"fetchSubmodules": false
},
"vba-m": {
"owner": "libretro",
"repo": "vbam-libretro",
@ -489,6 +489,13 @@
"sha256": "vJWjdqJ913NLGL4G15sRPqO/wp9xPsuhUMLUuAbDRKk=",
"fetchSubmodules": false
},
"vba-next": {
"owner": "libretro",
"repo": "vba-next",
"rev": "b218f48bb27b5d3885fa4076ff325922b5acd817",
"sha256": "idqGMbMA9mZlIh0QAba3BxpPDi/bFJJkUbnxV3xMOCo=",
"fetchSubmodules": false
},
"vecx": {
"owner": "libretro",
"repo": "libretro-vecx",

View file

@ -75,6 +75,7 @@ CORES = {
"snes9x2010": {"repo": "snes9x2010"},
"stella": {"repo": "stella", "owner": "stella-emu"},
"stella2014": {"repo": "stella2014-libretro"},
"swanstation": {"repo": "swanstation"},
"tgbdual": {"repo": "tgbdual-libretro"},
"thepowdertoy": {"repo": "ThePowderToy"},
"tic80": {"repo": "tic-80", "fetch_submodules": True},