Improve some recipes and enable dynamic linking on postgresql

This commit is contained in:
Ribbon 2025-11-20 15:42:18 -03:00
parent 17d8cb4570
commit ad18ba4b5d
9 changed files with 79 additions and 84 deletions

View File

@ -1,10 +1,11 @@
#TODO not compiled or tested
# build instructions:
# https://mariadb.com/kb/en/generic-build-instructions/
# https://mariadb.com/kb/en/cross-compiling-mariadb/
[source]
tar = "https://archive.mariadb.org/mariadb-10.11.6/source/mariadb-10.11.6.tar.gz"
[build]
template = "custom"
template = "cmake"
dependencies = [
"ncurses",
"zlib",
@ -15,7 +16,3 @@ dependencies = [
"boost",
"libaio",
]
script = """
export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include/ncurses"
cookbook_cmake
"""

View File

@ -1,21 +1,19 @@
#TODO not compiled or tested
# build instructions:
# https://mariadb.com/kb/en/generic-build-instructions/
# https://mariadb.com/kb/en/cross-compiling-mariadb/
[source]
tar = "https://archive.mariadb.org/mariadb-11.2.2/source/mariadb-11.2.2.tar.gz"
tar = "https://dlm.mariadb.com/4509471/MariaDB/mariadb-12.1.2/source/mariadb-12.1.2.tar.gz"
[build]
template = "custom"
template = "cmake"
dependencies = [
"ncurses",
"zlib",
"libevent",
"openssl1",
"openssl3",
"curl",
"libxml2",
"boost",
"libaio",
]
script = """
export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include/ncurses"
cookbook_cmake
"""

View File

@ -1,18 +1,17 @@
#TODO waiting on sigjmp_buf and related POSIX functions in relibc
[source]
tar = "https://ftp.postgresql.org/pub/source/v16.0/postgresql-16.0.tar.bz2"
script = """
cp "${COOKBOOK_SOURCE}/src/backend/utils/errcodes.h" "${COOKBOOK_SOURCE}/src/include/utils/errcodes.h"
"""
[build]
template = "custom"
template = "configure"
configureflags = [
"--without-icu",
"--without-readline",
"--with-template=redox",
]
dependencies = [
"readline",
"zlib",
]
script = """
cp "${COOKBOOK_SOURCE}/src/backend/utils/errcodes.h" "${COOKBOOK_SOURCE}/src/include/utils/errcodes.h"
COOKBOOK_CONFIGURE_FLAGS+=(
--without-icu
--without-readline
--with-template=redox
)
cookbook_configure
"""

View File

@ -11,10 +11,5 @@ script = """
DYNAMIC_INIT
autotools_recursive_regenerate
"""
[build]
template = "custom"
script = """
DYNAMIC_INIT
cookbook_configure
"""
template = "configure"

View File

@ -1,26 +1,26 @@
#TODO not compiled or tested
# build instructions: https://wiki.blender.org/wiki/Building_Blender/Linux/Generic_Distro
# probably missing dependencies
# customization - https://wiki.blender.org/wiki/Building_Blender/Options
#TODO determine the minimum dependencies from cmake log
# build instructions: https://developer.blender.org/docs/handbook/building_blender/
[source]
tar = "https://download.blender.org/source/blender-3.6.5.tar.xz"
git = "https://projects.blender.org/blender/blender"
branch = "blender-v4.5-release"
[build]
template = "cmake"
dependencies = [
"dbus",
"libdecor",
"libjpeg",
"libpng",
"freetype2",
"fontconfig",
"zstd",
"bzip2",
"xz",
"sdl2",
"libepoxy",
"shaderc",
"libxml2",
"libharu",
"mesa-x11",
"libxkbcommon",
]
# dependencies = [
# "dbus",
# "libdecor",
# "libjpeg",
# "libpng",
# "freetype2",
# "fontconfig",
# "zstd",
# "bzip2",
# "xz",
# "sdl2",
# "libepoxy",
# "shaderc",
# "libxml2",
# "libharu",
# "mesa-x11",
# "libxkbcommon",
# ]

View File

@ -1,26 +1,25 @@
#TODO not compiled or tested
# build instructions: https://wiki.blender.org/wiki/Building_Blender/Linux/Generic_Distro
# probably missing dependencies
# customization - https://wiki.blender.org/wiki/Building_Blender/Options
#TODO determine the minimum dependencies from cmake log
# build instructions: https://developer.blender.org/docs/handbook/building_blender/
[source]
tar = "https://download.blender.org/source/blender-4.1.0.tar.xz"
tar = "https://download.blender.org/source/blender-5.0.0.tar.xz"
[build]
template = "cmake"
dependencies = [
"dbus",
"libdecor",
"libjpeg",
"libpng",
"freetype2",
"fontconfig",
"zstd",
"bzip2",
"xz",
"sdl2",
"libepoxy",
"shaderc",
"libxml2",
"libharu",
"mesa-x11",
"libxkbcommon",
]
# dependencies = [
# "dbus",
# "libdecor",
# "libjpeg",
# "libpng",
# "freetype2",
# "fontconfig",
# "zstd",
# "bzip2",
# "xz",
# "sdl2",
# "libepoxy",
# "shaderc",
# "libxml2",
# "libharu",
# "mesa-x11",
# "libxkbcommon",
# ]

View File

@ -1,13 +1,14 @@
#TODO not compiled or tested
[source]
git = "https://github.com/webtorrent/webtorrent-cli"
rev = "298ae70a7baeb1bfc836abe2821baf78b50c3af1"
rev = "v5.1.3"
[build]
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}"/usr/share/webtorrent-cli
mkdir -pv "${COOKBOOK_STAGE}"/usr/bin
cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}"/usr/share/webtorrent-cli
echo "#!/usr/bin/env sh \n cd /usr/share/webtorrent-cli \n npx webtorrent-cli" > "${COOKBOOK_STAGE}"/usr/bin/webtorrent-cli
mkdir -pv "${COOKBOOK_STAGE}"/usr/bin/webtorrent-cli-dir
cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}"/usr/bin/webtorrent-cli-dir
echo "#!/usr/bin/env sh \n cd /usr/bin/webtorrent-cli-dir/webtorrent-cli \n npx webtorrent-cli" > "${COOKBOOK_STAGE}"/usr/bin/webtorrent-cli
chmod a+x "${COOKBOOK_STAGE}"/usr/bin/webtorrent-cli
"""
[package]
dependencies = ["nodejs24"]

View File

@ -1,14 +1,12 @@
#TODO not compiled or tested
# dependencies - https://github.com/yt-dlp/yt-dlp#dependencies
[source]
git = "https://github.com/yt-dlp/yt-dlp"
tar = "https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.tar.gz"
[build]
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}"/usr/share/yt-dlp
mkdir -pv "${COOKBOOK_STAGE}"/usr/bin
mkdir -pv "${COOKBOOK_STAGE}"/usr/bin/yt-dlp-dir
cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}"/usr/share/yt-dlp
echo "#!/usr/bin/env sh \n /usr/share/yt-dlp/yt-dlp.sh" > "${COOKBOOK_STAGE}"/usr/bin/yt-dlp
chmod a+x "${COOKBOOK_STAGE}"/usr/share/yt-dlp/yt-dlp.sh
echo "#!/usr/bin/env sh \n /usr/bin/yt-dlp-dir/yt-dlp.sh" > "${COOKBOOK_STAGE}"/usr/bin/yt-dlp
chmod a+x "${COOKBOOK_STAGE}"/usr/bin/yt-dlp-dir/yt-dlp.sh
chmod a+x "${COOKBOOK_STAGE}"/usr/bin/yt-dlp
"""

View File

@ -1,4 +1,4 @@
#TODO promote
#TODO missing fzf dependency: https://github.com/junegunn/fzf
[source]
git = "https://github.com/justchokingaround/jerry"
[build]
@ -8,3 +8,11 @@ mkdir -pv "${COOKBOOK_STAGE}"/usr/bin
cp "${COOKBOOK_SOURCE}"/jerry.sh "${COOKBOOK_STAGE}"/usr/bin/jerry
chmod a+x "${COOKBOOK_STAGE}"/usr/bin/jerry
"""
[package]
dependencies = [
"gnu-grep",
"sed",
"curl",
#"fzf",
"mpv",
]