mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 23:44:17 +08:00
Update and convert recipes to TOML
This commit is contained in:
parent
4cb26d57b1
commit
649afc4d17
@ -1,34 +0,0 @@
|
||||
VERSION=5.24.2
|
||||
TAR=https://www.cpan.org/src/5.0/perl-$VERSION.tar.gz
|
||||
|
||||
unset AR AS CC CXX LD NM OBJCOPY OBJDUMP RANLIB READELF STRIP
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
curl -L -O --time-cond perl-cross-1.1.6.tar.gz https://github.com/arsv/perl-cross/releases/download/1.1.6/perl-cross-1.1.6.tar.gz
|
||||
tar --strip-components=1 -xvf perl-cross-1.1.6.tar.gz
|
||||
wget -O cnf/config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
|
||||
sysroot="$($HOST-gcc -print-sysroot)"
|
||||
./configure --build=${BUILD} --target=${HOST} --prefix='/' --sysroot="$sysroot" --disable-mod=Sys-Syslog,Time-HiRes --with-libs='m'
|
||||
sed -i "s/^#define Netdb_name_t.*/#define Netdb_name_t const char*/" config.h # XXX
|
||||
sed -i 's/#define Strerror(e).*$/#define Strerror(e) strerror(e)/' config.h #
|
||||
echo "#define HAS_VPRINTF" >> config.h
|
||||
"$REDOX_MAKE" -j"$($NPROC)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_clean {
|
||||
"$REDOX_MAKE" clean
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_stage {
|
||||
dest="$(realpath $1)"
|
||||
"$REDOX_MAKE" DESTDIR="$dest" install
|
||||
rm -rf "$1/man"
|
||||
skip=1
|
||||
}
|
||||
24
recipes/wip/dev/lang/perl5/recipe.toml
Normal file
24
recipes/wip/dev/lang/perl5/recipe.toml
Normal file
@ -0,0 +1,24 @@
|
||||
#TODO incomplete script
|
||||
#TODO does the patch is still needed?
|
||||
#TODO update the patch to match the current version
|
||||
[source]
|
||||
tar = "https://www.cpan.org/src/5.0/perl-5.40.0.tar.gz"
|
||||
patches = [
|
||||
"perl.patch",
|
||||
]
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
curl -L -O --time-cond perl-cross-1.5.3.tar.gz https://github.com/arsv/perl-cross/releases/download/1.5.3/perl-cross-1.5.3.tar.gz
|
||||
tar --strip-components=1 -xvf perl-cross-1.5.3.tar.gz
|
||||
wget -O cnf/config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
|
||||
sysroot="$($HOST-gcc -print-sysroot)" # does it is still needed?
|
||||
sed -i "s/^#define Netdb_name_t.*/#define Netdb_name_t const char*/" config.h # XXX
|
||||
sed -i 's/#define Strerror(e).*$/#define Strerror(e) strerror(e)/' config.h #
|
||||
echo "#define HAS_VPRINTF" >> config.h
|
||||
COOKBOOK_CONFIGURE_FLAGS+=(
|
||||
--disable-mod=Sys-Syslog,Time-HiRes
|
||||
--with-libs='m'
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
@ -1,5 +1,14 @@
|
||||
#TODO configuration error
|
||||
#TODO not compiled or tested
|
||||
[source]
|
||||
tar = "https://www.python.org/ftp/python/3.10.13/Python-3.10.13.tar.xz"
|
||||
[build]
|
||||
template = "configure"
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"openssl1",
|
||||
]
|
||||
script = """
|
||||
COOKBOOK_CONFIGURE_FLAGS+=(
|
||||
--disable-ipv6
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
|
||||
@ -1,5 +1,14 @@
|
||||
#TODO configuration error
|
||||
#TODO not compiled or tested
|
||||
[source]
|
||||
tar = "https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tar.xz"
|
||||
[build]
|
||||
template = "configure"
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"openssl1",
|
||||
]
|
||||
script = """
|
||||
COOKBOOK_CONFIGURE_FLAGS+=(
|
||||
--disable-ipv6
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
|
||||
@ -1,38 +0,0 @@
|
||||
VERSION=3.7.4
|
||||
TAR=https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tar.xz
|
||||
BUILD_DEPENDS=(openssl1)
|
||||
|
||||
export CONFIG_SITE=config.site
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
export LDFLAGS="-static"
|
||||
cp ../config.site ./
|
||||
./configure \
|
||||
--build=${BUILD} \
|
||||
--host=${HOST} \
|
||||
--build=${ARCH} \
|
||||
--prefix=/ \
|
||||
--disable-ipv6
|
||||
sed -i 's|#define HAVE_PTHREAD_KILL 1|/* #undef HAVE_PTHREAD_KILL */|g' pyconfig.h
|
||||
sed -i 's|#define HAVE_SCHED_SETSCHEDULER 1|/* #undef HAVE_SCHED_SETSCHEDULER */|g' pyconfig.h
|
||||
sed -i 's|#define HAVE_SYS_RESOURCE_H 1|/* #undef HAVE_SYS_RESOURCE_H */|g' pyconfig.h
|
||||
"$REDOX_MAKE" -j"$($NPROC)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_clean {
|
||||
"$REDOX_MAKE" clean
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_stage {
|
||||
dest="$(realpath $1)"
|
||||
"$REDOX_MAKE" DESTDIR="$dest" install -j"$($NPROC)"
|
||||
"$STRIP" "$dest/bin/python3.7" "$dest/bin/python3.7m"
|
||||
skip=1
|
||||
}
|
||||
23
recipes/wip/dev/lang/python37/recipe.toml
Normal file
23
recipes/wip/dev/lang/python37/recipe.toml
Normal file
@ -0,0 +1,23 @@
|
||||
#TODO not compiled or tested
|
||||
#TODO does the patch is still needed?
|
||||
#TODO maybe the script is wrong
|
||||
[source]
|
||||
tar = "https://www.python.org/ftp/python/3.7.17/Python-3.7.17.tar.xz"
|
||||
patches = [
|
||||
"redox.patch",
|
||||
]
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"openssl1",
|
||||
]
|
||||
script = """
|
||||
cp ../config.site ./
|
||||
sed -i 's|#define HAVE_PTHREAD_KILL 1|/* #undef HAVE_PTHREAD_KILL */|g' pyconfig.h
|
||||
sed -i 's|#define HAVE_SCHED_SETSCHEDULER 1|/* #undef HAVE_SCHED_SETSCHEDULER */|g' pyconfig.h
|
||||
sed -i 's|#define HAVE_SYS_RESOURCE_H 1|/* #undef HAVE_SYS_RESOURCE_H */|g' pyconfig.h
|
||||
COOKBOOK_CONFIGURE_FLAGS+=(
|
||||
--disable-ipv6
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
@ -1,28 +0,0 @@
|
||||
VERSION=7.9p1
|
||||
TAR=https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$VERSION.tar.gz
|
||||
BUILD_DEPENDS=(openssl1 zlib)
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export CPPFLAGS="-I$sysroot/include"
|
||||
./configure --build=${BUILD} --host=${HOST} --prefix=/
|
||||
"$REDOX_MAKE" -j$(nproc)
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_clean {
|
||||
"$REDOX_MAKE" clean
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_stage {
|
||||
dest="$(realpath $1)"
|
||||
"$REDOX_MAKE" DESTDIR="$dest" install
|
||||
skip=1
|
||||
}
|
||||
13
recipes/wip/terminal/openssh/recipe.toml
Normal file
13
recipes/wip/terminal/openssh/recipe.toml
Normal file
@ -0,0 +1,13 @@
|
||||
#TODO update the patch to match the current version
|
||||
#TODO does the patch is still needed?
|
||||
[source]
|
||||
tar = "https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.8p1.tar.gz"
|
||||
patches = [
|
||||
"redox.patch",
|
||||
]
|
||||
[build]
|
||||
template = "configure"
|
||||
dependencies = [
|
||||
"openssl1",
|
||||
"zlib",
|
||||
]
|
||||
@ -1,34 +0,0 @@
|
||||
VERSION=3.1.0
|
||||
TAR=https://download.qemu.org/qemu-$VERSION.tar.xz
|
||||
BUILD_DEPENDS=(curl glib libiconv libpng pcre pixman sdl1 zlib)
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export CFLAGS="-I$sysroot/include"
|
||||
export CPPFLAGS="-I$sysroot/include"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
./configure \
|
||||
--build=${BUILD} \
|
||||
--host="${HOST}" \
|
||||
--prefix=/
|
||||
"$REDOX_MAKE" -j"$($NPROC)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_clean {
|
||||
"$REDOX_MAKE" clean
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_stage {
|
||||
#export LLVM_CONFIG="x86_64-unknown-redox-llvm-config"
|
||||
dest="$(realpath $1)"
|
||||
"$REDOX_MAKE" DESTDIR="$dest" install
|
||||
rm -f "$dest/lib/"*.la
|
||||
skip=1
|
||||
}
|
||||
18
recipes/wip/vm/qemu/recipe.toml
Normal file
18
recipes/wip/vm/qemu/recipe.toml
Normal file
@ -0,0 +1,18 @@
|
||||
#TODO update the patch to match the current qemu version
|
||||
[source]
|
||||
tar = "https://download.qemu.org/qemu-9.0.1.tar.xz"
|
||||
patches = [
|
||||
"redox.patch",
|
||||
]
|
||||
[build]
|
||||
template = "configure"
|
||||
dependencies = [
|
||||
"curl",
|
||||
"glib",
|
||||
"libiconv",
|
||||
"libpng",
|
||||
"pcre",
|
||||
"pixman",
|
||||
"sdl2",
|
||||
"zlib",
|
||||
]
|
||||
@ -1,27 +0,0 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/servo.git
|
||||
GIT_UPSTREAM=https://github.com/servo/servo.git
|
||||
BRANCH=redox
|
||||
BUILD_DEPENDS=(freetype2 gettext glib gstreamer harfbuzz libffi libiconv libpng openssl1 pcre zlib)
|
||||
PREPARE_COPY=0
|
||||
|
||||
function recipe_version {
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
source="$(realpath ../source)"
|
||||
unset AR AS CC CXX LD NM OBJCOPY OBJDUMP RANLIB READELF STRIP
|
||||
"$source/mach" build --target "${TARGET}" --release --with-frame-pointer # --jobs "$(nproc)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_clean {
|
||||
echo "skipping clean"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_stage {
|
||||
echo "skipping stage"
|
||||
skip=1
|
||||
}
|
||||
24
recipes/wip/web/servo/recipe.toml
Normal file
24
recipes/wip/web/servo/recipe.toml
Normal file
@ -0,0 +1,24 @@
|
||||
#TODO not compiled or tested
|
||||
# if the script is wrong, read this - https://github.com/servo/servo#release-build
|
||||
# advanced build instructions - https://github.com/servo/servo/wiki/Building#manual-build-setup
|
||||
[source]
|
||||
git = "https://github.com/servo/servo"
|
||||
#git = "https://gitlab.redox-os.org/redox-os/servo"
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"freetype2",
|
||||
"gettext",
|
||||
"glib",
|
||||
"gstreamer",
|
||||
"harfbuzz",
|
||||
"libffi",
|
||||
"libiconv",
|
||||
"libpng",
|
||||
"openssl1",
|
||||
"pcre",
|
||||
"zlib",
|
||||
]
|
||||
script = """
|
||||
cookbook_cargo_packages servoshell
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user