Use SNES core by default in retroarch

This commit is contained in:
Jeremy Soller 2022-12-16 14:38:54 -07:00
parent 79a34ff948
commit c4fd2e16d5
No known key found for this signature in database
GPG Key ID: 87F211AF2BE4C2FE
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,24 @@
[source]
git = "https://github.com/jackpot51/libretro-super.git"
[build]
template = "custom"
dependencies = [
"zlib",
]
script = """
CORES=(
snes9x
)
pushd "${COOKBOOK_SOURCE}"
./libretro-fetch.sh "${CORES[@]}"
popd
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
export platform=Redox
export STATIC_LINKING=1
./libretro-build.sh "${CORES[@]}"
./libretro-install.sh "${COOKBOOK_STAGE}/share/libretro"
"""

View File

@ -5,6 +5,7 @@ git = "https://github.com/jackpot51/retroarch.git"
template = "custom"
dependencies = [
"liborbital",
"libretro-super",
"llvm",
"mesa",
"openssl",
@ -18,17 +19,25 @@ popd
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
# For now, we will statically link with the snes9x libretro
mkdir -pv "${COOKBOOK_SYSROOT}/lib"
cp -v "${COOKBOOK_SYSROOT}/share/libretro/snes9x_libretro.a" "${COOKBOOK_SYSROOT}/lib/libretro.a"
COOKBOOK_CONFIGURE_FLAGS=(
--host="${TARGET}"
--prefix="/"
--disable-builtinzlib # conflicts with zlib
--disable-discord # does not link
--disable-dylib
--disable-dynamic
--disable-netplaydiscovery # missing ifaddrs.h
--disable-thread_storage # crash in pthread_setspecific called by sthread_tls_set
--disable-threads # prevents hang
--enable-opengl
--enable-sdl2
--enable-ssl
--enable-zlib
--with-libretro="-lretro -lstdc++ -lz"
)
cookbook_configure
"""