Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • fabiao/cookbook
  • redox-os/cookbook
  • stratact/cookbook
  • carrot93/cookbook
  • microcolonel/cookbook
  • feliwir/cookbook
  • xTibor/cookbook
  • jD91mZM2/cookbook
  • mpajkowski/cookbook
  • rw_van/cookbook
  • athei/cookbook
  • kblobr/cookbook
  • VitalyAnkh/cookbook
  • sajattack/cookbook
  • sainath14/cookbook
  • ackxolotl/cookbook
  • AdminXVII/cookbook
  • coolreader18/cookbook
  • deepaksirone/cookbook
  • smckay/cookbook
  • 4lDO2/cookbook
  • tomasritter/cookbook
  • alfredoyang/cookbook
  • samuela/cookbook
  • andrewdavidmackenzie/cookbook
  • uuuvn/cookbook
  • josh_williams/cookbook
  • bjorn3/cookbook
  • ids1024/cookbook
  • Chocimier/cookbook
  • bpisch/cookbook
  • willnode/cookbook
  • grnmeira/cookbook
  • andrey.turkin/cookbook
  • cameronbraid/cookbook
  • kamirr/cookbook
  • freewilll/cookbook
  • kivimango/cookbook
  • rukai/cookbook
  • mattmadeofpasta/cookbook
  • jordan_mccallum/cookbook
  • dahc/cookbook
  • Forest0923/cookbook
  • LLeny/cookbook
  • doriancodes/cookbook
  • ashton/cookbook
  • gmacd/cookbook
  • mojo/cookbook
  • wt/cookbook
  • red15/cookbook
  • hasheddan/cookbook
  • dimymark/cookbook
  • andypython/cookbook
  • enygmator/cookbook
  • Ivan/cookbook
  • argslc/cookbook
  • adi-g15/cookbook
  • tfinnegan937/cookbook
  • raffaeleragni/cookbook
  • Lekkit/cookbook
  • bitstr0m/cookbook
  • josh/cookbook
  • zhaozhao/cookbook
  • blueskyson/cookbook
  • Xunjin/cookbook
  • StaringAtEditor/cookbook
  • monk_programmer/cookbook
  • DimitarGj/cookbook
  • njskalski/cookbook
69 results
Show changes
Showing
with 203 additions and 242 deletions
[llvm] [llvm]
static-libstdcpp = true download-ci-llvm = false
static-libstdcpp = false
[build] [build]
host = ["x86_64-unknown-redox"] host = ["x86_64-unknown-redox"]
...@@ -11,6 +12,7 @@ verbose = 1 ...@@ -11,6 +12,7 @@ verbose = 1
[install] [install]
prefix = "install" prefix = "install"
sysconfdir = "etc"
[rust] [rust]
backtrace = false backtrace = false
...@@ -23,5 +25,5 @@ cxx = "x86_64-unknown-redox-g++" ...@@ -23,5 +25,5 @@ cxx = "x86_64-unknown-redox-g++"
ar = "x86_64-unknown-redox-ar" ar = "x86_64-unknown-redox-ar"
linker = "x86_64-unknown-redox-gcc" linker = "x86_64-unknown-redox-gcc"
# Nasty path, please fix # Nasty path, please fix
llvm-config = "../../../bin/x86_64-unknown-redox-llvm-config" llvm-config = "../../../../bin/x86_64-unknown-redox-llvm-config"
crt-static = false crt-static = false
GIT=https://gitlab.redox-os.org/redox-os/rust.git GIT=https://gitlab.redox-os.org/redox-os/rust.git
BRANCH=redox-2022-03-18 BRANCH=redox-2024-05-11
BUILD_DEPENDS=(llvm) BUILD_DEPENDS=(llvm18-shared zlib libgcc)
DEPENDS="gcc cargo" DEPENDS="gcc13 cargo"
PREPARE_COPY=0 PREPARE_COPY=0
function recipe_version { function recipe_version {
...@@ -9,21 +9,10 @@ function recipe_version { ...@@ -9,21 +9,10 @@ function recipe_version {
skip=1 skip=1
} }
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build { function recipe_build {
config="$(realpath ../config.toml)"
source="$(realpath ../source)"
unset AR AS CC CXX LD NM OBJCOPY OBJDUMP RANLIB READELF STRIP unset AR AS CC CXX LD NM OBJCOPY OBJDUMP RANLIB READELF STRIP
python3 "$source/x.py" install --config "$config" --jobs $(nproc) --incremental export MAGIC_EXTRA_RUSTFLAGS="-C link-args=-lz"
skip=1 python3 "${COOKBOOK_SOURCE}/x.py" install --config "${COOKBOOK_RECIPE}/config.toml" --jobs $(nproc) --incremental
}
function recipe_test {
echo "skipping test"
skip=1 skip=1
} }
...@@ -35,6 +24,7 @@ function recipe_clean { ...@@ -35,6 +24,7 @@ function recipe_clean {
function recipe_stage { function recipe_stage {
rsync -av --delete "install/" "$1/" rsync -av --delete "install/" "$1/"
# Cannot use STRIP because it is unset in recipe_build # Cannot use STRIP because it is unset in recipe_build
"${HOST}-strip" -v "$1/bin/"{rustc,rustdoc} #TODO: rustdoc
"${HOST}-strip" -v "$1/bin/rustc"
skip=1 skip=1
} }
[source]
git = "https://github.com/RustPython/RustPython"
branch = "redox-release"
[build]
dependencies = [
"openssl1",
"zlib",
]
template = "custom"
script = """
(cd "${COOKBOOK_SOURCE}" && bash scripts/redox/uncomment-cargo.sh && cargo update)
export BUILDTIME_RUSTPYTHONPATH=/lib/rustpython
export OPENSSL_DIR="${COOKBOOK_SYSROOT}"
export ZLIB_STATIC=1
cookbook_cargo --features ssl
mkdir -p "${COOKBOOK_STAGE}/lib"
rsync -aE \
--exclude 'test/' \
--exclude '__pycache__/' \
--exclude '*.pyc' \
--exclude '/README.md' \
"${COOKBOOK_SOURCE}"/Lib/ "${COOKBOOK_STAGE}/lib/rustpython"
"""
VERSION=3.6
TAR=http://ftp.gnu.org/gnu/diffutils/diffutils-$VERSION.tar.xz
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
export LDFLAGS="-static"
autoreconf
./configure \
--build=${BUILD} \
--host=${HOST} \
--prefix=/ \
gt_cv_locale_fr=false \
gt_cv_locale_fr_utf8=false \
gt_cv_locale_ja=false \
gt_cv_locale_tr_utf8=false \
gt_cv_locale_zh_CN=false
"$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
"$REDOX_MAKE" DESTDIR="$dest" install
${HOST}-strip "$dest"/bin/*
rm -rf "$dest"/{lib,share}
skip=1
}
[source]
git = "https://gitlab.redox-os.org/redox-os/book.git"
[build]
template = "custom"
script = """
dir="${COOKBOOK_STAGE}/usr/share/book"
mkdir -pv "${dir}"
mdbook build --dest-dir "${dir}" "${COOKBOOK_SOURCE}"
"""
VERSION=0.74
TAR=https://sourceforge.net/projects/dosbox/files/dosbox/$VERSION/dosbox-$VERSION.tar.gz/download
BUILD_DEPENDS=(sdl liborbital)
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
sysroot="$(realpath ../sysroot)"
export CFLAGS="-I$sysroot/include/SDL"
export CPPFLAGS="-I$sysroot/include/SDL"
export LDFLAGS="-L$sysroot/lib -static"
./autogen.sh
wget -O config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
./configure \
--build=${BUILD} \
--host=${HOST} \
--prefix='' \
--disable-opengl \
--disable-sdltest \
--with-sdl-prefix="$sysroot"
"$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
"$REDOX_MAKE" DESTDIR="$dest" install
skip=1
}
GIT=https://gitlab.redox-os.org/redox-os/drivers.git
BRANCH=0.4.1
CARGOFLAGS=--all
function recipe_version {
echo "0.1.1"
skip=1
}
function recipe_stage {
mkdir -pv "$1/etc/pcid"
cp -v initfs.toml "$1/etc/pcid/initfs.toml"
cp -v filesystem.toml "$1/etc/pcid/filesystem.toml"
}
[source]
git = "https://gitlab.redox-os.org/redox-os/drivers.git"
[build]
template = "custom"
script = """
BINS=(
acpid
ahcid
nvmed
pcid
vesad
)
case "${TARGET}" in
i686-unknown-redox | x86_64-unknown-redox)
BINS+=(ps2d)
;;
*)
;;
esac
mkdir -pv "${COOKBOOK_STAGE}/bin"
for bin in "${BINS[@]}"
do
"${COOKBOOK_CARGO}" rustc --release \
--manifest-path "${COOKBOOK_SOURCE}/${bin}/Cargo.toml" \
--bin "${bin}" \
-- \
-C opt-level=z \
-C panic=abort
cp -v "target/${TARGET}/release/${bin}" "${COOKBOOK_STAGE}/bin"
done
mkdir -pv "${COOKBOOK_STAGE}/etc/pcid"
cp -v "${COOKBOOK_SOURCE}/initfs.toml" "${COOKBOOK_STAGE}/etc/pcid/initfs.toml"
"""
[source]
git = "https://gitlab.redox-os.org/redox-os/drivers.git"
[build]
template = "custom"
script = """
"${COOKBOOK_CARGO}" build --release \
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
--workspace
mkdir -pv "${COOKBOOK_STAGE}/bin"
find "target/${TARGET}/release" \
-maxdepth 1 \
-executable \
-type f \
-exec cp -v {} "${COOKBOOK_STAGE}/bin/" ';'
mkdir -pv "${COOKBOOK_STAGE}/etc/pcid"
cp -v "${COOKBOOK_SOURCE}/initfs.toml" "${COOKBOOK_STAGE}/etc/pcid/initfs.toml"
mkdir -pv "${COOKBOOK_STAGE}/etc/pcid.d"
find "${COOKBOOK_SOURCE}" -maxdepth 2 -type f -name 'config.toml' | while read conf
do
driver="$(basename "$(dirname "$conf")")"
cp -v "$conf" "${COOKBOOK_STAGE}/etc/pcid.d/$driver.toml"
done
"""
VERSION=20181010-7067
TAR=https://dukeworld.com/eduke32/synthesis/$VERSION/eduke32_src_$VERSION.tar.xz
BUILD_DEPENDS=(sdl sdl_mixer liborbital libiconv libogg libvorbis)
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
sysroot="$(realpath ../sysroot)"
export CFLAGS="-I$sysroot/include -I$sysroot/include/SDL"
export LDFLAGS="-L$sysroot/lib -static"
export SDLCONFIG="$sysroot/bin/sdl-config --prefix=$sysroot"
PLATFORM=REDOX "$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
mkdir -pv "$1/games"
cp ./eduke32 "$1/games/eduke32"
cp ./mapster32 "$1/games/mapster32"
skip=1
}
recipes/emulators/dosbox/icon.png

115 KiB

name=DOSBox
category=Games
binary=/bin/dosbox
icon=/ui/icons/apps/dosbox.png
[source]
tar = "https://sourceforge.net/projects/dosbox/files/dosbox/0.74-3/dosbox-0.74-3.tar.gz/download"
blake3 = "8bc50ffdba20579fb3080a0dca32cb939c8a3c19259aed026482c6ac069b0007"
patches = ["01_redox.patch"]
script = """
./autogen.sh
wget -O config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
"""
[build]
dependencies = [
"liborbital",
"sdl1",
]
template = "custom"
script = """
export CFLAGS="-I${COOKBOOK_SYSROOT}/include/SDL"
export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include/SDL"
export LDFLAGS="-L${COOKBOOK_SYSROOT}/lib -static"
COOKBOOK_CONFIGURE_FLAGS+=(
--disable-opengl
--disable-sdltest
--with-sdl-prefix="${COOKBOOK_SYSROOT}"
)
cookbook_configure
mkdir -pv "${COOKBOOK_STAGE}/ui/apps"
cp -v "${COOKBOOK_RECIPE}/manifest" "${COOKBOOK_STAGE}/ui/apps/dosbox"
mkdir -pv "${COOKBOOK_STAGE}/ui/icons/apps"
cp -v "${COOKBOOK_RECIPE}/icon.png" "${COOKBOOK_STAGE}/ui/icons/apps/dosbox.png"
"""
[source]
git = "https://github.com/jackpot51/flycast.git"
[build]
template = "custom"
dependencies = [
"curl",
"libiconv",
"liborbital",
"llvm18",
"mesa",
"nghttp2",
"openssl1",
"sdl2",
"zlib",
]
script = """
DYNAMIC_INIT
export CFLAGS="${CFLAGS} -I${COOKBOOK_SYSROOT}/usr/include -I${COOKBOOK_SYSROOT}/usr/include/SDL2"
export CXXFLAGS="${CXXFLAGS} -D_GLIBCXX_USE_C99_MATH_TR1=1 -I${COOKBOOK_SYSROOT}/usr/include -I${COOKBOOK_SYSROOT}/usr/include/SDL2"
#TODO: don't use this
export SDL_LIBS="-lSDL2 -lorbital $("${TARGET}-pkg-config" --libs osmesa) -lstdc++"
#TODO: don't add curl
export SDL_LIBS="${SDL_LIBS} -lcurl -lnghttp2 -lssl -lcrypto"
COOKBOOK_CONFIGURE="cmake"
COOKBOOK_CONFIGURE_FLAGS=(
-DCMAKE_VERBOSE_MAKEFILE=On
-DCMAKE_CROSSCOMPILING=True
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_INSTALL_PREFIX="/usr"
-DCMAKE_SYSTEM_NAME=Generic
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
-DREDOX=1
-DUNIX=1
-DUSE_HOST_LIBZIP=OFF
-DUSE_OPENMP=OFF
-DUSE_VULKAN=OFF
-DZLIB_LIBRARY="-lz"
# Hacks for cmake errors
-DHAVE___INT8_LIBZIP=False
-DHAVE___INT16_LIBZIP=False
-DHAVE___INT32_LIBZIP=False
-DHAVE___INT64_LIBZIP=False
-DHAVE_FICLONERANGE=False
-DHAVE_NULLABLE=False
# Hack for Threads
-DCMAKE_THREAD_LIBS_INIT="-lc"
-DCMAKE_HAVE_THREADS_LIBRARY=1
-DCMAKE_USE_WIN32_THREADS_INIT=0
-DCMAKE_USE_PTHREADS_INIT=1
-DTHREADS_PREFER_PTHREAD_FLAG=ON
"${COOKBOOK_SOURCE}"
)
cookbook_configure
"""
\ No newline at end of file
[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"
"""
[source]
tar = "https://mednafen.github.io/releases/files/mednafen-1.29.0.tar.xz"
blake3 = "c75c1044cdc9328b2349915a67972d6135c77eb53eb0d995788f22b7daacf79b"
patches = [
"redox.patch",
]
[build]
template = "custom"
dependencies = [
#TODO: libflac
"libiconv",
"liborbital",
"llvm18",
"mesa",
"sdl2",
"zlib",
]
script = """
DYNAMIC_INIT
export SDL_LIBS="-lSDL2 -lorbital $("${TARGET}-pkg-config" --libs osmesa) -lstdc++"
COOKBOOK_CONFIGURE_FLAGS+=(
--without-libflac
)
cookbook_configure
"""
\ No newline at end of file
diff -ruwN source-old/src/sound/SwiftResampler.cpp source/src/sound/SwiftResampler.cpp
--- source-old/src/sound/SwiftResampler.cpp 2022-01-18 14:16:23.000000000 -0700
+++ source/src/sound/SwiftResampler.cpp 2022-12-16 20:01:02.263159230 -0700
@@ -608,6 +608,9 @@
if(hp_tc > 0)
{
+#ifndef M_E
+#define M_E 2.7182818284590452354
+#endif
double tdm = (pow(2.0 - pow(M_E, -1.0), 1.0 / (hp_tc * output_rate)) - 1.0);
//printf("%f\n", tdm);
VERSION=0.7 VERSION=0.7
GIT=https://github.com/mgba-emu/mgba.git GIT=https://github.com/mgba-emu/mgba.git
BRANCH=$VERSION BRANCH=$VERSION
BUILD_DEPENDS=(sdl liborbital libiconv pixman) BUILD_DEPENDS=(sdl1 liborbital libiconv pixman)
function recipe_version { function recipe_version {
echo "$VERSION" echo "$VERSION"
skip=1 skip=1
} }
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build { function recipe_build {
sysroot="$(realpath ../sysroot)" sysroot="$(realpath ../sysroot)"
export CFLAGS="-I$sysroot/include -I$sysroot/include/SDL" export CFLAGS="-I$sysroot/include -I$sysroot/include/SDL"
...@@ -35,11 +30,6 @@ function recipe_build { ...@@ -35,11 +30,6 @@ function recipe_build {
skip=1 skip=1
} }
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean { function recipe_clean {
"$REDOX_MAKE" clean "$REDOX_MAKE" clean
skip=1 skip=1
......