mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-25 14:24:18 +08:00
Use SNES core by default in retroarch
This commit is contained in:
parent
79a34ff948
commit
c4fd2e16d5
24
recipes/libretro-super/recipe.toml
Normal file
24
recipes/libretro-super/recipe.toml
Normal 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"
|
||||
"""
|
||||
@ -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
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user