Skip to content
Snippets Groups Projects
Verified Commit c4fd2e16 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Use SNES core by default in retroarch

parent 79a34ff9
No related branches found
No related tags found
No related merge requests found
[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" ...@@ -5,6 +5,7 @@ git = "https://github.com/jackpot51/retroarch.git"
template = "custom" template = "custom"
dependencies = [ dependencies = [
"liborbital", "liborbital",
"libretro-super",
"llvm", "llvm",
"mesa", "mesa",
"openssl", "openssl",
...@@ -18,17 +19,25 @@ popd ...@@ -18,17 +19,25 @@ popd
rsync -av --delete "${COOKBOOK_SOURCE}/" ./ 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=( COOKBOOK_CONFIGURE_FLAGS=(
--host="${TARGET}" --host="${TARGET}"
--prefix="/" --prefix="/"
--disable-builtinzlib # conflicts with zlib --disable-builtinzlib # conflicts with zlib
--disable-discord # does not link --disable-discord # does not link
--disable-dylib
--disable-dynamic
--disable-netplaydiscovery # missing ifaddrs.h --disable-netplaydiscovery # missing ifaddrs.h
--disable-thread_storage # crash in pthread_setspecific called by sthread_tls_set --disable-thread_storage # crash in pthread_setspecific called by sthread_tls_set
--disable-threads # prevents hang
--enable-opengl --enable-opengl
--enable-sdl2 --enable-sdl2
--enable-ssl --enable-ssl
--enable-zlib --enable-zlib
--with-libretro="-lretro -lstdc++ -lz"
) )
cookbook_configure cookbook_configure
""" """
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment