mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 15:34:18 +08:00
Merge branch 'usr-all' into 'master'
Wholesale /usr tidyup See merge request redox-os/redox!2146
This commit is contained in:
commit
2cef3c833a
@ -1,20 +1,19 @@
|
||||
[source]
|
||||
git = "https://gitlab.redox-os.org/redox-os/dash.git"
|
||||
branch = "redox"
|
||||
script = """
|
||||
./autogen.sh
|
||||
"""
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
||||
./autogen.sh
|
||||
./configure \
|
||||
${COOKBOOK_CONFIGURE} \
|
||||
--host="${TARGET}" \
|
||||
--prefix="" \
|
||||
--enable-static \
|
||||
--prefix="/usr" \
|
||||
cross_compiling=yes
|
||||
# See https://stackoverflow.com/questions/4247068/sed-command-with-i-option-failing-on-mac-but-works-on-linux.
|
||||
sed -i'' -e 's|#define HAVE_GETRLIMIT 1|/* #undef HAVE_GETRLIMIT */|g' config.h
|
||||
sed -i -e 's|#define HAVE_GETRLIMIT 1|/* #undef HAVE_GETRLIMIT */|g' config.h
|
||||
# Skip configure
|
||||
COOKBOOK_CONFIGURE="true"
|
||||
COOKBOOK_CONFIGURE_FLAGS=()
|
||||
|
||||
@ -19,6 +19,6 @@ ${CXX} ${CPPFLAGS} ${LDFLAGS} \
|
||||
-o cairo-demo \
|
||||
-lorbital $("${PKG_CONFIG}" --libs cairo)
|
||||
|
||||
mkdir -pv "${COOKBOOK_STAGE}/bin"
|
||||
cp -v "cairo-demo" "${COOKBOOK_STAGE}/bin/cairo-demo"
|
||||
mkdir -pv "${COOKBOOK_STAGE}/usr/bin"
|
||||
cp -v "cairo-demo" "${COOKBOOK_STAGE}/usr/bin/cairo-demo"
|
||||
"""
|
||||
|
||||
@ -5,24 +5,12 @@ upstream = "https://github.com/rust-windowing/glutin.git"
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
cargopath = "glutin_examples"
|
||||
dependencies = [
|
||||
"mesa",
|
||||
"zlib"
|
||||
]
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
EXAMPLES=(
|
||||
window
|
||||
)
|
||||
for example in "${EXAMPLES[@]}"
|
||||
do
|
||||
cargo rustc \
|
||||
--target "$TARGET" \
|
||||
--release \
|
||||
--manifest-path "${COOKBOOK_SOURCE}/glutin_examples/Cargo.toml" \
|
||||
--example "${example}" \
|
||||
-- -C link-args="$LDFLAGS $("${TARGET}-pkg-config" --libs osmesa) -lz -lstdc++ -lc -lgcc"
|
||||
mkdir -pv "${COOKBOOK_STAGE}/bin"
|
||||
cp -v "target/${TARGET}/release/examples/${example}" "${COOKBOOK_STAGE}/bin/glutin_${example}"
|
||||
done
|
||||
CARGOPATH="glutin_examples" cookbook_cargo_examples window
|
||||
"""
|
||||
|
||||
@ -5,5 +5,7 @@ branch = "winit-0.29"
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
COOKBOOK_CARGO_FLAGS=() # remove --locked
|
||||
cookbook_cargo_examples cursor_grab drag_window window window_debug
|
||||
"""
|
||||
|
||||
@ -13,5 +13,5 @@ rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
||||
RANLIB="${RANLIB}" \
|
||||
SYSLDFLAGS="$LDFLAGS"
|
||||
|
||||
"${COOKBOOK_MAKE}" install INSTALL_TOP="${COOKBOOK_STAGE}"
|
||||
"${COOKBOOK_MAKE}" install INSTALL_TOP="${COOKBOOK_STAGE}/usr"
|
||||
"""
|
||||
|
||||
@ -16,7 +16,7 @@ case "${OS}" in
|
||||
esac
|
||||
|
||||
${COOKBOOK_MAKE} -j ${COOKBOOK_MAKE_JOBS} install \
|
||||
PREFIX="${COOKBOOK_STAGE}" \
|
||||
PREFIX="${COOKBOOK_STAGE}/usr" \
|
||||
TARGET_SYS="${SYS}" \
|
||||
CROSS="${GNU_TARGET}-"
|
||||
"""
|
||||
|
||||
@ -12,17 +12,4 @@ autoreconf
|
||||
"""
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
COOKBOOK_CONFIGURE="${COOKBOOK_SOURCE}/configure"
|
||||
COOKBOOK_CONFIGURE_FLAGS=(
|
||||
--host="${TARGET}"
|
||||
--prefix="/"
|
||||
--build="$(gcc -dumpmachine)"
|
||||
)
|
||||
|
||||
cookbook_configure
|
||||
|
||||
${TARGET}-strip "${COOKBOOK_STAGE}/bin/"*
|
||||
rm -rf "${COOKBOOK_STAGE}/share" "${COOKBOOK_STAGE}/lib"
|
||||
"""
|
||||
template = "configure"
|
||||
|
||||
@ -3,7 +3,7 @@ tar = "https://github.com/diasurgical/devilutionX/archive/refs/tags/1.5.4.tar.gz
|
||||
blake3 = "d4a61ff3a7c69d86a29158918aad48ab9c4866c6a22a3e8da5feadbb7d23b3ca"
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
template = "cmake"
|
||||
dependencies = [
|
||||
"bzip2",
|
||||
"libiconv",
|
||||
@ -11,27 +11,10 @@ dependencies = [
|
||||
"sdl1",
|
||||
"zlib",
|
||||
]
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
|
||||
COOKBOOK_CONFIGURE="cmake"
|
||||
COOKBOOK_CONFIGURE_FLAGS=(
|
||||
-DBUILD_TESTING=OFF
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_CROSSCOMPILING=ON
|
||||
-DCMAKE_CXX_COMPILER="${TARGET}-g++"
|
||||
-DCMAKE_C_COMPILER="${TARGET}-gcc"
|
||||
-DCMAKE_INSTALL_PREFIX="/"
|
||||
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON
|
||||
-DDEVILUTIONX_SYSTEM_BZIP2=ON
|
||||
-DDEVILUTIONX_SYSTEM_ZLIB=ON
|
||||
-DNONET=ON
|
||||
-DSDL_LIBRARY="-lSDL -lorbital"
|
||||
-DUSE_SDL1=ON
|
||||
"${COOKBOOK_SOURCE}"
|
||||
)
|
||||
cookbook_configure
|
||||
mkdir -v "${COOKBOOK_STAGE}/bin"
|
||||
cp -v devilutionx "${COOKBOOK_STAGE}/bin"
|
||||
"""
|
||||
cmakeflags = [
|
||||
"-DDEVILUTIONX_SYSTEM_BZIP2=ON",
|
||||
"-DDEVILUTIONX_SYSTEM_ZLIB=ON",
|
||||
"-DNONET=ON",
|
||||
"-DSDL_LIBRARY=-lSDL -lorbital",
|
||||
"-DUSE_SDL1=ON",
|
||||
]
|
||||
|
||||
@ -4,12 +4,12 @@ git = "https://gitlab.redox-os.org/redox-os/freedoom.git"
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
mkdir -pv "${COOKBOOK_STAGE}/usr/games" "${COOKBOOK_STAGE}/share/games/doom" "${COOKBOOK_STAGE}/usr/share/ui/apps" "${COOKBOOK_STAGE}/usr/share/icons/apps"
|
||||
mkdir -pv "${COOKBOOK_STAGE}/usr/games" "${COOKBOOK_STAGE}/usr/share/games/doom" "${COOKBOOK_STAGE}/usr/share/ui/apps" "${COOKBOOK_STAGE}/usr/share/icons/apps"
|
||||
for file in "${COOKBOOK_SOURCE}/"*.wad
|
||||
do
|
||||
game="$(basename "$file" .wad)"
|
||||
|
||||
wad="/share/games/doom/$game.wad"
|
||||
wad="/usr/share/games/doom/$game.wad"
|
||||
cp -v "$file" "${COOKBOOK_STAGE}$wad"
|
||||
|
||||
bin="/usr/games/$game"
|
||||
@ -20,7 +20,7 @@ do
|
||||
echo "name=$game" | sed 's/freedoom/FreeDOOM: Phase /' | sed 's/doom1/DOOM (Shareware)/' > "${COOKBOOK_STAGE}/usr/share/ui/apps/$game"
|
||||
echo "category=Games" >> "${COOKBOOK_STAGE}/usr/share/ui/apps/$game"
|
||||
echo "binary=/usr/games/$game" >> "${COOKBOOK_STAGE}/usr/share/ui/apps/$game"
|
||||
echo "icon=/ui/icons/apps/$game.png" >> "${COOKBOOK_STAGE}/usr/share/ui/apps/$game"
|
||||
echo "icon=/usr/share/ui/icons/apps/$game.png" >> "${COOKBOOK_STAGE}/usr/share/ui/apps/$game"
|
||||
|
||||
cp -v "${COOKBOOK_SOURCE}/$game.png" "${COOKBOOK_STAGE}/usr/share/icons/apps/$game.png"
|
||||
done
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
[source]
|
||||
tar = "https://github.com/fragglet/sdl-sopwith/releases/download/sdl-sopwith-1.8.4/sopwith-1.8.4.tar.gz"
|
||||
tar = "https://github.com/fragglet/sdl-sopwith/releases/download/sdl-sopwith-2.9.0/sdl-sopwith-2.9.0.tar.gz"
|
||||
blake3 = "44e1404a9c4bea257d7778d2a4b1512231603a74b0a7b18eac5d18f36730ed3e"
|
||||
script = """
|
||||
./autogen.sh
|
||||
"""
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
@ -10,22 +13,16 @@ dependencies = [
|
||||
"libiconv",
|
||||
]
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
export CFLAGS="${CFLAGS} -I${COOKBOOK_SYSROOT}/include/SDL"
|
||||
export LIBS="-lSDL -lorbital" # TODO: Uses sdl-config instead of pkg-config
|
||||
|
||||
# For some reason, cook_configure breaks spectacularly on this
|
||||
# We will just copy instead
|
||||
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
||||
|
||||
wget -O autotools/config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
|
||||
|
||||
./configure \\
|
||||
--build="$(gcc -dumpmachine)" \\
|
||||
--host="${TARGET}" \\
|
||||
--prefix="" \\
|
||||
COOKBOOK_CONFIGURE="./configure"
|
||||
COOKBOOK_CONFIGURE_FLAGS+=(
|
||||
--with-sdl-prefix="${COOKBOOK_SYSROOT}"
|
||||
|
||||
make -j"$(nproc)"
|
||||
|
||||
make DESTDIR="${COOKBOOK_STAGE}" install
|
||||
"""
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
|
||||
@ -6,5 +6,5 @@ shallow_clone = true
|
||||
template = "custom"
|
||||
script = """
|
||||
cd "${COOKBOOK_SOURCE}"
|
||||
just rootdir="${COOKBOOK_STAGE}" prefix="" install
|
||||
just rootdir="${COOKBOOK_STAGE}" prefix="/usr" install
|
||||
"""
|
||||
|
||||
@ -4,9 +4,9 @@ git = "https://gitlab.redox-os.org/redox-os/freepats.git"
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
mkdir -pv "${COOKBOOK_STAGE}/share/freepats"
|
||||
cp -Rv "${COOKBOOK_SOURCE}/"* "${COOKBOOK_STAGE}/share/freepats"
|
||||
mkdir -pv "${COOKBOOK_STAGE}/usr/share/freepats"
|
||||
cp -Rv "${COOKBOOK_SOURCE}/"* "${COOKBOOK_STAGE}/usr/share/freepats"
|
||||
mkdir -pv "${COOKBOOK_STAGE}/etc/timidity"
|
||||
echo "dir /share/freepats" > "${COOKBOOK_STAGE}/etc/timidity/freepats.cfg"
|
||||
echo "source /share/freepats/freepats.cfg" >> "${COOKBOOK_STAGE}/etc/timidity/freepats.cfg"
|
||||
echo "dir /usr/share/freepats" > "${COOKBOOK_STAGE}/etc/timidity/freepats.cfg"
|
||||
echo "source /usr/share/freepats/freepats.cfg" >> "${COOKBOOK_STAGE}/etc/timidity/freepats.cfg"
|
||||
"""
|
||||
|
||||
@ -3,22 +3,16 @@ git = "https://gitlab.redox-os.org/redox-os/timidity.git"
|
||||
branch = "redox"
|
||||
script = """
|
||||
autoreconf -f -i
|
||||
|
||||
wget -O autoconf/config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
|
||||
"""
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
export LDFLAGS="-static"
|
||||
|
||||
COOKBOOK_CONFIGURE_FLAGS=(
|
||||
--build="$(gcc -dumpmachine)"
|
||||
--host="${TARGET}"
|
||||
--prefix=""
|
||||
DYNAMIC_INIT
|
||||
COOKBOOK_CONFIGURE_FLAGS+=(
|
||||
--enable-vt100
|
||||
)
|
||||
|
||||
cookbook_configure
|
||||
|
||||
# Create configuration files
|
||||
|
||||
@ -7,15 +7,4 @@ GNU_CONFIG_GET config.sub
|
||||
"""
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
export LDFLAGS="-static"
|
||||
|
||||
COOKBOOK_CONFIGURE_FLAGS=(
|
||||
--build="$(gcc -dumpmachine)"
|
||||
--host="${TARGET}"
|
||||
--prefix=""
|
||||
)
|
||||
|
||||
cookbook_configure
|
||||
"""
|
||||
template = "configure"
|
||||
|
||||
@ -14,7 +14,7 @@ rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
||||
AR="${AR}" \
|
||||
CC="${CC}" \
|
||||
RANLIB="${RANLIB}" \
|
||||
PREFIX="${COOKBOOK_STAGE}" \
|
||||
PREFIX="${COOKBOOK_STAGE}/usr" \
|
||||
install
|
||||
|
||||
# However, distros distribute libbz2 as well so we'll support it too
|
||||
@ -27,12 +27,12 @@ rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
||||
AR="${AR}" \
|
||||
CC="${CC}" \
|
||||
RANLIB="${RANLIB}" \
|
||||
PREFIX="${COOKBOOK_STAGE}"
|
||||
PREFIX="${COOKBOOK_STAGE}/usr"
|
||||
|
||||
cp -av libbz2.so* "${COOKBOOK_STAGE}/lib"
|
||||
ln -sr "${COOKBOOK_STAGE}/lib/libbz2.so.1.0" "${COOKBOOK_STAGE}/lib/libbz2.so.1"
|
||||
ln -sr "${COOKBOOK_STAGE}/lib/libbz2.so.1.0" "${COOKBOOK_STAGE}/lib/libbz2.so"
|
||||
cp -av libbz2.so* "${COOKBOOK_STAGE}/usr/lib"
|
||||
ln -s "libbz2.so.1.0" "${COOKBOOK_STAGE}/usr/lib/libbz2.so.1"
|
||||
ln -s "libbz2.so.1.0" "${COOKBOOK_STAGE}/usr/lib/libbz2.so"
|
||||
|
||||
mkdir -p "${COOKBOOK_STAGE}/lib/pkgconfig"
|
||||
cp "${COOKBOOK_RECIPE}/pkgconfig" "${COOKBOOK_STAGE}/lib/pkgconfig/bzip2.pc"
|
||||
mkdir -p "${COOKBOOK_STAGE}/usr/lib/pkgconfig"
|
||||
cp "${COOKBOOK_RECIPE}/pkgconfig" "${COOKBOOK_STAGE}/usr/lib/pkgconfig/bzip2.pc"
|
||||
"""
|
||||
|
||||
@ -4,12 +4,4 @@ blake3 = "46b6e24dfa1b0f309f4eae3c450d612396c8faa6510b53a55f629e4f4c70b4a3"
|
||||
patches = ["grep.patch"]
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
COOKBOOK_CONFIGURE_FLAGS+=(
|
||||
--prefix=/
|
||||
)
|
||||
cookbook_configure
|
||||
rm -rf "${COOKBOOK_STAGE}"/{lib,share}
|
||||
"""
|
||||
template = "configure"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
name=Netsurf
|
||||
binary=/usr/bin/netsurf-fb
|
||||
icon=/ui/icons/apps/internet-web-browser.png
|
||||
icon=/usr/share/ui/icons/apps/internet-web-browser.png
|
||||
accept=*.html
|
||||
author=The Netsurf Developers
|
||||
description=Browser for Redox
|
||||
|
||||
@ -42,8 +42,8 @@ export CC="${CC} ${CPPFLAGS}"
|
||||
|
||||
"$COOKBOOK_MAKE" PREFIX=/usr V=1 -j"$COOKBOOK_MAKE_JOBS"
|
||||
"$COOKBOOK_MAKE" DESTDIR="$COOKBOOK_STAGE" PREFIX=/usr install -j"$COOKBOOK_MAKE_JOBS"
|
||||
mkdir -pv "$COOKBOOK_STAGE/ui/apps"
|
||||
cp -v "${COOKBOOK_RECIPE}/manifest" "$COOKBOOK_STAGE/ui/apps/00_netsurf"
|
||||
mkdir -pv "$COOKBOOK_STAGE/usr/share/ui/apps"
|
||||
cp -v "${COOKBOOK_RECIPE}/manifest" "$COOKBOOK_STAGE/usr/share/ui/apps/00_netsurf"
|
||||
"""
|
||||
|
||||
[package]
|
||||
|
||||
@ -3,8 +3,7 @@
|
||||
git = "https://github.com/sohzm/jasonisnthappy"
|
||||
shallow_clone = true
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
cookbook_cargo_examples bench_all
|
||||
"""
|
||||
template = "cargo"
|
||||
cargoexamples = [
|
||||
"bench_all"
|
||||
]
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
[source]
|
||||
git = "https://github.com/kyren/piccolo"
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
cookbook_cargo_examples interpreter
|
||||
"""
|
||||
template = "cargo"
|
||||
cargoexamples = [
|
||||
"interpreter"
|
||||
]
|
||||
|
||||
@ -4,6 +4,8 @@ git = "https://github.com/adam-mcdaniel/chess-engine"
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
COOKBOOK_CARGO_FLAGS=() # remove --locked
|
||||
cookbook_cargo_packages chess-gui
|
||||
cookbook_cargo_examples terminal
|
||||
"""
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
git = "https://github.com/jackpot51/sysinfo"
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
cookbook_cargo_examples simple
|
||||
"""
|
||||
template = "cargo"
|
||||
cargoexamples = [
|
||||
"simple"
|
||||
]
|
||||
|
||||
@ -1,14 +1,15 @@
|
||||
#TODO: fails to link libcrypto.so
|
||||
[source]
|
||||
git = "https://github.com/jackpot51/pavao.git"
|
||||
git = "https://github.com/veeso/pavao.git"
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
template = "cargo"
|
||||
dependencies = [
|
||||
"openssl3"
|
||||
]
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
build_flags="${build_flags} --features vendored"
|
||||
cookbook_cargo_examples tree
|
||||
"""
|
||||
cargoflags = [
|
||||
"--features vendored"
|
||||
]
|
||||
cargoexamples = [
|
||||
"tree"
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user