mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 12:54:20 +08:00
Try to fix more CMake-based recipes
This commit is contained in:
parent
b2f1433320
commit
ac6ad70ca5
@ -1,27 +1,13 @@
|
||||
#TODO maybe incomplete script, see https://github.com/openvkl/openvkl#building-open-vkl-from-source
|
||||
#TODO not compiled or tested
|
||||
# build instructions: https://github.com/openvkl/openvkl#building-open-vkl-from-source
|
||||
[source]
|
||||
git = "https://github.com/openvkl/openvkl"
|
||||
rev = "712bdb8035487606096d7af90a4c9bde5503515d"
|
||||
[build]
|
||||
template = "custom"
|
||||
template = "cmake"
|
||||
dependencies = [
|
||||
"ispc",
|
||||
"librkcommon",
|
||||
"embree",
|
||||
"level-zero",
|
||||
]
|
||||
script = """
|
||||
COOKBOOK_CONFIGURE="cmake"
|
||||
COOKBOOK_CONFIGURE_FLAGS=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_CROSSCOMPILING=True
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-static"
|
||||
-DCMAKE_INSTALL_PREFIX="/"
|
||||
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
|
||||
-DCMAKE_SYSTEM_NAME=Generic
|
||||
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
|
||||
-DCMAKE_VERBOSE_MAKEFILE=On
|
||||
"${COOKBOOK_SOURCE}"
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
|
||||
@ -1,20 +1,6 @@
|
||||
#TODO probably wrong script, lacking build instructions
|
||||
#TODO not compiled or tested
|
||||
# lacking build instructions
|
||||
[source]
|
||||
tar = "https://ftp.osuosl.org/pub/rpm/popt/releases/popt-1.x/popt-1.19.tar.gz"
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
COOKBOOK_CONFIGURE="cmake"
|
||||
COOKBOOK_CONFIGURE_FLAGS=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_CROSSCOMPILING=True
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-static"
|
||||
-DCMAKE_INSTALL_PREFIX="/"
|
||||
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
|
||||
-DCMAKE_SYSTEM_NAME=Generic
|
||||
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
|
||||
-DCMAKE_VERBOSE_MAKEFILE=On
|
||||
"${COOKBOOK_SOURCE}"
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
template = "cmake"
|
||||
|
||||
@ -1,25 +1,11 @@
|
||||
#TODO Probably wrong script, see https://github.com/projectM-visualizer/projectm/wiki/Building-libprojectM#build-and-install-projectm
|
||||
#TODO not compiled or tested
|
||||
# build instructions: https://github.com/projectM-visualizer/projectm/wiki/Building-libprojectM#build-and-install-projectm
|
||||
[source]
|
||||
git = "https://github.com/projectM-visualizer/projectm"
|
||||
rev = "422af469731559c32c93e9513cebf2fe6c2fec78"
|
||||
[build]
|
||||
template = "custom"
|
||||
template = "cmake"
|
||||
dependencies = [
|
||||
"mesa",
|
||||
"qt5-base",
|
||||
]
|
||||
script = """
|
||||
COOKBOOK_CONFIGURE="cmake"
|
||||
COOKBOOK_CONFIGURE_FLAGS=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_CROSSCOMPILING=True
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-static"
|
||||
-DCMAKE_INSTALL_PREFIX="/"
|
||||
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
|
||||
-DCMAKE_SYSTEM_NAME=Generic
|
||||
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
|
||||
-DCMAKE_VERBOSE_MAKEFILE=On
|
||||
"${COOKBOOK_SOURCE}"
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
|
||||
@ -1,21 +1,7 @@
|
||||
#TODO maybe incomplete script, lacking build instructions
|
||||
#TODO not compiled or tested
|
||||
# lacking build instructions
|
||||
[source]
|
||||
git = "https://github.com/imageworks/pystring"
|
||||
rev = "7d16bc814ccb4cad03c300dcb77440034caa84f7"
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
COOKBOOK_CONFIGURE="cmake"
|
||||
COOKBOOK_CONFIGURE_FLAGS=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_CROSSCOMPILING=True
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-static"
|
||||
-DCMAKE_INSTALL_PREFIX="/"
|
||||
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
|
||||
-DCMAKE_SYSTEM_NAME=Generic
|
||||
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
|
||||
-DCMAKE_VERBOSE_MAKEFILE=On
|
||||
"${COOKBOOK_SOURCE}"
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
template = "cmake"
|
||||
|
||||
@ -1,26 +1,11 @@
|
||||
#TODO port to Orbital
|
||||
#TODO probably wrong script, see https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux
|
||||
#TODO not compiled or tested
|
||||
# build instructions: https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux
|
||||
[source]
|
||||
git = "https://github.com/raysan5/raylib"
|
||||
rev = "ae50bfa2cc569c0f8d5bc4315d39db64005b1b08"
|
||||
[build]
|
||||
template = "custom"
|
||||
template = "cmake"
|
||||
dependencies = [
|
||||
"mesa",
|
||||
"libxkbcommon",
|
||||
]
|
||||
script = """
|
||||
COOKBOOK_CONFIGURE="cmake"
|
||||
COOKBOOK_CONFIGURE_FLAGS=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_CROSSCOMPILING=True
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-static"
|
||||
-DCMAKE_INSTALL_PREFIX="/"
|
||||
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
|
||||
-DCMAKE_SYSTEM_NAME=Generic
|
||||
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
|
||||
-DCMAKE_VERBOSE_MAKEFILE=On
|
||||
"${COOKBOOK_SOURCE}"
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
|
||||
@ -1,22 +1,8 @@
|
||||
#TODO maybe incomplete script, see https://gitlab.inria.fr/scotch/scotch#installation
|
||||
#TODO not compiled or tested
|
||||
# build instructions: https://gitlab.inria.fr/scotch/scotch#installation
|
||||
#TODO probably missing dependencies
|
||||
[source]
|
||||
git = "https://gitlab.inria.fr/scotch/scotch"
|
||||
rev = "82ec87f558f4acb7ccb69a079f531be380504c92"
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
COOKBOOK_CONFIGURE="cmake"
|
||||
COOKBOOK_CONFIGURE_FLAGS=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_CROSSCOMPILING=True
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-static"
|
||||
-DCMAKE_INSTALL_PREFIX="/"
|
||||
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
|
||||
-DCMAKE_SYSTEM_NAME=Generic
|
||||
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
|
||||
-DCMAKE_VERBOSE_MAKEFILE=On
|
||||
"${COOKBOOK_SOURCE}"
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
template = "cmake"
|
||||
|
||||
@ -1,23 +1,9 @@
|
||||
#TODO probably wrong script, lacking build instructions
|
||||
#TODO not compiled or tested
|
||||
# lacking build instructions
|
||||
[source]
|
||||
tar = "https://github.com/libsdl-org/SDL_net/releases/download/release-2.2.0/SDL2_net-2.2.0.tar.gz"
|
||||
[build]
|
||||
template = "custom"
|
||||
template = "cmake"
|
||||
dependencies = [
|
||||
"sdl2",
|
||||
]
|
||||
script = """
|
||||
COOKBOOK_CONFIGURE="cmake"
|
||||
COOKBOOK_CONFIGURE_FLAGS=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_CROSSCOMPILING=True
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-static"
|
||||
-DCMAKE_INSTALL_PREFIX="/"
|
||||
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
|
||||
-DCMAKE_SYSTEM_NAME=Generic
|
||||
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
|
||||
-DCMAKE_VERBOSE_MAKEFILE=On
|
||||
"${COOKBOOK_SOURCE}"
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
|
||||
@ -1,21 +1,7 @@
|
||||
#TODO maybe incomplete script, see https://github.com/google/snappy#building
|
||||
#TODO not compiled or tested
|
||||
# build instructions: https://github.com/google/snappy#building
|
||||
[source]
|
||||
git = "https://github.com/google/snappy"
|
||||
rev = "dc05e026488865bc69313a68bcc03ef2e4ea8e83"
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
COOKBOOK_CONFIGURE="cmake"
|
||||
COOKBOOK_CONFIGURE_FLAGS=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_CROSSCOMPILING=True
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-static"
|
||||
-DCMAKE_INSTALL_PREFIX="/"
|
||||
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
|
||||
-DCMAKE_SYSTEM_NAME=Generic
|
||||
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
|
||||
-DCMAKE_VERBOSE_MAKEFILE=On
|
||||
"${COOKBOOK_SOURCE}"
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
template = "cmake"
|
||||
|
||||
@ -1,20 +1,6 @@
|
||||
#TODO probably wrong script, see https://github.com/taglib/taglib/blob/master/INSTALL.md
|
||||
#TODO not compiled or tested
|
||||
# build instructions: https://github.com/taglib/taglib/blob/master/INSTALL.md
|
||||
[source]
|
||||
tar = "https://taglib.org/releases/taglib-1.13.tar.gz"
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
COOKBOOK_CONFIGURE="cmake"
|
||||
COOKBOOK_CONFIGURE_FLAGS=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_CROSSCOMPILING=True
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-static"
|
||||
-DCMAKE_INSTALL_PREFIX="/"
|
||||
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
|
||||
-DCMAKE_SYSTEM_NAME=Generic
|
||||
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
|
||||
-DCMAKE_VERBOSE_MAKEFILE=On
|
||||
"${COOKBOOK_SOURCE}"
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
template = "cmake"
|
||||
|
||||
@ -1,20 +1,6 @@
|
||||
#TODO maybe incomplete script, see https://github.com/gnuradio/volk#building-on-most-x86-32-bit-and-64-bit-platforms
|
||||
#TODO not compiled or tested
|
||||
# build instructions: https://github.com/gnuradio/volk#building-on-most-x86-32-bit-and-64-bit-platforms
|
||||
[source]
|
||||
tar = "https://www.libvolk.org/releases/volk-3.0.0.tar.gz"
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
COOKBOOK_CONFIGURE="cmake"
|
||||
COOKBOOK_CONFIGURE_FLAGS=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_CROSSCOMPILING=True
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-static"
|
||||
-DCMAKE_INSTALL_PREFIX="/"
|
||||
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
|
||||
-DCMAKE_SYSTEM_NAME=Generic
|
||||
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
|
||||
-DCMAKE_VERBOSE_MAKEFILE=On
|
||||
"${COOKBOOK_SOURCE}"
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
template = "cmake"
|
||||
|
||||
@ -1,40 +1,100 @@
|
||||
#TODO missing script for Ninja, see https://trac.webkit.org/wiki/BuildingGtk#BuildingWebKitGTKfromareleasetarball
|
||||
#TODO port to orbital
|
||||
#TODO missing dependencies, see https://archlinux.org/packages/extra/x86_64/webkitgtk-6.0/
|
||||
#TODO not compiled or tested
|
||||
[source]
|
||||
tar = "https://webkitgtk.org/releases/webkitgtk-2.42.2.tar.xz"
|
||||
tar = "https://webkitgtk.org/releases/webkitgtk-2.49.1.tar.xz"
|
||||
blake3 = "7f04acb2f909ad334fc623afb297ebca1d5a5005bda1682946fb37e044e45ecb"
|
||||
#patches = ["redox.patch"]
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"gtk4",
|
||||
"atk",
|
||||
"cairo",
|
||||
"expat",
|
||||
"fontconfig",
|
||||
"freetype2",
|
||||
"fribidi",
|
||||
"gdk-pixbuf",
|
||||
"gettext",
|
||||
"glib",
|
||||
"gstreamer",
|
||||
#TODO "gstreamer",
|
||||
"gtk4",
|
||||
"harfbuzz",
|
||||
"libavif",
|
||||
"mesa",
|
||||
"libepoxy",
|
||||
"libatomic",
|
||||
"libffi",
|
||||
"libgcrypt",
|
||||
"libgpg-error",
|
||||
"libiconv",
|
||||
"libicu",
|
||||
"libjpeg",
|
||||
"libpng",
|
||||
"libpsl",
|
||||
"libpthread-stubs",
|
||||
"libsoup",
|
||||
"libtasn1",
|
||||
"libwebp",
|
||||
"libx11",
|
||||
"libxau",
|
||||
"libxcb",
|
||||
"libxext",
|
||||
"libxfixes",
|
||||
"libxi",
|
||||
"libxml2",
|
||||
"zlib",
|
||||
"libxrandr",
|
||||
"libxrender",
|
||||
"libxslt",
|
||||
"libxxf86vm",
|
||||
"mesa-x11",
|
||||
"nghttp2",
|
||||
"pango",
|
||||
"pcre2",
|
||||
"pixman",
|
||||
"shared-mime-info",
|
||||
"sqlite3",
|
||||
"x11proto",
|
||||
"xextproto",
|
||||
"xz",
|
||||
"zlib",
|
||||
]
|
||||
script = """
|
||||
COOKBOOK_CONFIGURE="cmake"
|
||||
COOKBOOK_CONFIGURE_FLAGS=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_CROSSCOMPILING=True
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-static"
|
||||
-DCMAKE_INSTALL_PREFIX="/"
|
||||
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
|
||||
-DCMAKE_SYSTEM_NAME=Generic
|
||||
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
|
||||
-DCMAKE_VERBOSE_MAKEFILE=On
|
||||
"${COOKBOOK_SOURCE}"
|
||||
DYNAMIC_INIT
|
||||
export WEBKIT_USE_SCCACHE=1
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
#TODO: enable more features
|
||||
COOKBOOK_CMAKE_FLAGS+=(
|
||||
-DENABLE_ASSERTS=ON
|
||||
-DENABLE_GAMEPAD=OFF
|
||||
-DENABLE_INTROSPECTION=OFF
|
||||
-DENABLE_MEDIA_STREAM=OFF
|
||||
-DENABLE_JOURNALD_LOG=OFF
|
||||
-DENABLE_RELEASE_LOG=ON
|
||||
-DENABLE_SPEECH_SYNTHESIS=OFF
|
||||
-DENABLE_SPELLCHECK=OFF
|
||||
-DENABLE_WEB_AUDIO=OFF
|
||||
-DENABLE_WEB_CODECS=OFF
|
||||
-DENABLE_VIDEO=OFF
|
||||
-DPORT=GTK
|
||||
-DUNIX=1
|
||||
-DUSE_AVIF=OFF
|
||||
-DUSE_GSTREAMER_GL=OFF
|
||||
-DUSE_GTK4=ON
|
||||
-DUSE_JPEGXL=OFF
|
||||
-DUSE_LCMS=OFF
|
||||
-DUSE_LIBBACKTRACE=OFF
|
||||
-DUSE_LIBDRM=OFF
|
||||
-DUSE_LIBHYPHEN=OFF
|
||||
-DUSE_LIBSECRET=OFF
|
||||
-DUSE_SKIA=OFF
|
||||
-DUSE_SYSPROF_CAPTURE=OFF
|
||||
-DUSE_SYSTEM_MALLOC=OFF
|
||||
-DUSE_SYSTEM_SYSPROF_CAPTURE=OFF
|
||||
-DUSE_WOFF2=OFF
|
||||
)
|
||||
cookbook_configure
|
||||
|
||||
cookbook_cmake
|
||||
|
||||
patchelf --replace-needed "${COOKBOOK_SYSROOT}/usr/lib/libsqlite3.so" "libsqlite3.so" "${COOKBOOK_STAGE}/usr/lib/libwebkit2gtk-4.1.so"
|
||||
patchelf --replace-needed "${COOKBOOK_SYSROOT}/usr/lib/libsqlite3.so" "libsqlite3.so" "${COOKBOOK_STAGE}/usr/libexec/webkit2gtk-4.1/MiniBrowser"
|
||||
mkdir -p "${COOKBOOK_STAGE}/usr/bin"
|
||||
ln -sr "${COOKBOOK_STAGE}/usr/libexec/webkit2gtk-4.1/MiniBrowser" "${COOKBOOK_STAGE}/usr/bin/MiniBrowser"
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user