Try to fix more CMake-based recipes

This commit is contained in:
Ribbon 2025-10-12 21:08:41 -03:00
parent 43d604721d
commit 6b66cdaed0
19 changed files with 79 additions and 321 deletions

View File

@ -1,26 +1,11 @@
#TODO maybe wrong script
# build instructions - https://gitlab.freedesktop.org/rncbc/qpwgraph#building
#TODO not compiled or tested
# build instructions: https://gitlab.freedesktop.org/rncbc/qpwgraph#building
[source]
git = "https://gitlab.freedesktop.org/rncbc/qpwgraph"
rev = "9fead6eff8c5831d66f618b2e8e195c94d5c22e6"
[build]
template = "custom"
template = "cmake"
dependencies = [
"qt6-base",
"pipewire",
]
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
"""

View File

@ -1,26 +1,11 @@
#TODO maybe incomplete script, see https://github.com/audacity/audacity/blob/master/BUILDING.md
#TODO use the GTK2 or wxWidgets frontend?
#TODO probably need audio server patching
#TODO not compiled or tested
# build instructions: https://github.com/audacity/audacity/blob/master/BUILDING.md
# use the GTK2 or wxWidgets frontend?
[source]
tar = "https://github.com/audacity/audacity/releases/download/Audacity-3.5.1/audacity-sources-3.5.1.tar.gz"
tar = "https://github.com/audacity/audacity/releases/download/Audacity-3.7.5/audacity-sources-3.7.5.tar.gz"
[build]
template = "custom"
template = "cmake"
dependencies = [
"gtk2",
"libuuid",
]
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
"""

View File

@ -1,8 +1,10 @@
#TODO probably wrong script, see https://github.com/LMMS/lmms/wiki/Compiling#build-environment
#TODO not compiled or tested
# build instructions: https://github.com/LMMS/lmms/wiki/Compiling#build-environment
[source]
tar = "https://github.com/LMMS/lmms/releases/download/v1.2.2/lmms_1.2.2.tar.xz"
git = "https://github.com/LMMS/lmms"
rev = "807751dc4dce53583ecf4140b67a5dc343c789a7"
[build]
template = "custom"
template = "cmake"
dependencies = [
"qt5-base",
"libsamplerate",
@ -13,18 +15,3 @@ dependencies = [
"libstk",
"fltk",
]
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
"""

View File

@ -1,11 +1,11 @@
#TODO incomplete script
#TODO missing dependencies - https://github.com/mixxxdj/mixxx/blob/main/tools/debian_buildenv.sh
# build instructions - https://github.com/mixxxdj/mixxx/wiki/Compiling%20on%20Linux
#TODO not compiled or tested
# build instructions: https://github.com/mixxxdj/mixxx/wiki/Compiling%20on%20Linux
#TODO missing dependencies: https://github.com/mixxxdj/mixxx/blob/main/tools/debian_buildenv.sh
[source]
git = "https://github.com/mixxxdj/mixxx"
branch = "2.4"
branch = "2.5"
[build]
template = "custom"
template = "cmake"
dependencies = [
"fftw",
"libflac",
@ -25,18 +25,3 @@ dependencies = [
"openssl1",
"portaudio",
]
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
"""

View File

@ -1,26 +1,11 @@
#TODO maybe incomplete script, see https://github.com/TheWaveWarden/odin2#all-platforms
#TODO port to orbital
#TODO not compiled or tested
# build instructions: https://github.com/TheWaveWarden/odin2#all-platforms
[source]
git = "https://github.com/TheWaveWarden/odin2"
[build]
template = "custom"
template = "cmake"
dependencies = [
"mesa",
"curl",
"webkitgtk3",
]
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
"""

View File

@ -1,31 +1,26 @@
#TODO maybe incomplete script, see https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/wiki/manual-build#build-and-install-cpu-x
#TODO not compiled or tested
# build instructions: https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/wiki/manual-build#build-and-install-cpu-x
[source]
git = "https://github.com/TheTumultuousUnicornOfDarkness/CPU-X"
rev = "b957c031a2eab2c6c88275c4616a6a5e8c8e7670"
rev = "41f5d1ac3b13e60aa30212f2b9f38de646fd2b07"
[build]
template = "custom"
dependencies = [
"gtk3mm",
#"gtk3mm",
"ncurses",
"glfw",
"libvulkan",
#"glfw3",
#"libvulkan",
"libstatgrab",
"libcpuid",
"pciutils",
]
script = """
DYNAMIC_INIT
export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include/ncurses"
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_CMAKE_FLAGS+=(
"-DWITH_GTK=0",
"-DWITH_LIBGLFW=0",
"-DWITH_VULKAN=0",
)
cookbook_configure
cookbook_cmake
"""

View File

@ -1,11 +1,11 @@
#TODO not compiled or tested
#TODO missing dependencies, see https://github.com/contour-terminal/contour/blob/master/scripts/install-deps.sh#L328
# build instructions - https://contour-terminal.org/install/#unix-like-systems-linux-freebsd-macos
#TODO missing dependencies, see https://github.com/contour-terminal/contour/blob/master/scripts/install-deps.sh#L328
[source]
git = "https://github.com/contour-terminal/contour"
rev = "116f1d16f6dc33ab8b0f6010a44e7b23eadeb8ca"
[build]
template = "custom"
template = "cmake"
dependencies = [
"fontconfig",
"freetyoe2",
@ -18,18 +18,3 @@ dependencies = [
"qt6-tools",
"libxcb",
]
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
"""

View File

@ -1,21 +1,7 @@
#TODO maybe incomplete script, see https://github.com/ARM-software/astc-encoder/blob/main/Docs/Building.md#macos-and-linux-using-make
#TODO not compiled or tested
# build instructions: https://github.com/ARM-software/astc-encoder/blob/main/Docs/Building.md#macos-and-linux-using-make
[source]
git = "https://github.com/ARM-software/astc-encoder"
rev = "aeece2f609db959d1c5e43e4f00bd177ea130575"
[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"

View File

@ -1,20 +1,6 @@
#TODO maybe incomplete script, see https://astyle.sourceforge.net/install.html
#TODO not compiled or tested
# build instructions: https://astyle.sourceforge.net/install.html
[source]
tar = "https://sourceforge.net/projects/astyle/files/astyle/astyle%203.4/astyle-3.4.10.tar.bz2/download"
[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"

View File

@ -1,26 +1,12 @@
#TODO maybe incomplete script, see https://flameshot.org/docs/installation/source-code/#compilation
#TODO not compiled or tested
# build instructions: https://flameshot.org/docs/installation/source-code/#compilation
[source]
git = "https://github.com/flameshot-org/flameshot"
rev = "70be63d478a271da549597d69bd4868607c0a395"
[build]
template = "custom"
template = "cmake"
dependencies = [
"qt5-base",
"qt5-tools",
"qt5-svg",
]
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
"""

View File

@ -1,10 +1,11 @@
#TODO maybe incomplete script, see https://wiki.gnuradio.org/index.php?title=LinuxInstall#For_GNU_Radio_3.10,_3.9,_and_Main_Branch
#TODO probably missing dependencies, see https://wiki.gnuradio.org/index.php?title=UbuntuInstall#Install_Dependencies
#TODO not compiled or tested
# build instructions: https://wiki.gnuradio.org/index.php?title=LinuxInstall#For_GNU_Radio_3.10,_3.9,_and_Main_Branch
# probably missing dependencies, see https://wiki.gnuradio.org/index.php?title=UbuntuInstall#Install_Dependencies
[source]
git = "https://github.com/gnuradio/gnuradio"
rev = "bd928539d9eaa73736f8381cd2e60953a0eb8cb8"
[build]
template = "custom"
template = "cmake"
dependencies = [
"volk",
"boost",
@ -15,18 +16,3 @@ dependencies = [
"libusb",
"libevdev",
]
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
"""

View File

@ -1,11 +1,15 @@
#TODO probably wrong script, see https://github.com/xbmc/xbmc/blob/master/docs/README.Linux.md#4-build-kodi
#TODO port to orbital
#TODO maybe missing dependencies, see https://archlinux.org/packages/extra/x86_64/kodi/
#TODO not compiled or tested
# build instructions: https://github.com/xbmc/xbmc/blob/master/docs/README.Linux.md#4-build-kodi
# maybe missing dependencies, see https://archlinux.org/packages/extra/x86_64/kodi/
[source]
git = "https://github.com/xbmc/xbmc"
rev = "5f418d0b133535c6675154688ac7144e34f4d436"
[build]
template = "custom"
template = "cmake"
cmakeflags = [
"-DCORE_PLATFORM_NAME=wayland",
"-DAPP_RENDER_SYSTEM=gl",
]
dependencies = [
"libass",
"libbluray",
@ -40,20 +44,3 @@ dependencies = [
"libxslt",
"pipewire",
]
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
-DCORE_PLATFORM_NAME=wayland
-DAPP_RENDER_SYSTEM=gl
"${COOKBOOK_SOURCE}"
)
cookbook_configure
"""

View File

@ -1,22 +1,8 @@
#TODO maybe incomplete script, lacking build instructions
#TODO not compiled or tested
# lacking build instructions
#TODO missing dependencies
[source]
git = "https://invent.kde.org/utilities/okteta"
rev = "fb6150f2dce791c96b95a12ee0c74942c1774c05"
[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"

View File

@ -1,6 +1,7 @@
#TODO probably wrong script, see https://wiki.scribus.net/canvas/Official:Compile_with_CMake
#TODO not compiled or tested
# build instructions: https://wiki.scribus.net/canvas/Official:Compile_with_CMake
[source]
tar = "https://sourceforge.net/projects/scribus/files/scribus/1.4.8/scribus-1.4.8.tar.xz/download"
tar = "https://sourceforge.net/projects/scribus/files/scribus/1.6.4/scribus-1.6.4.tar.xz/download"
[build]
template = "custom"
dependencies = [
@ -13,18 +14,3 @@ dependencies = [
"libjpeg",
"fontconfig",
]
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
"""

View File

@ -1,20 +1,6 @@
#TODO maybe incomplete script, see https://taskwarrior.org/download/#quick-setup
#TODO not compiled or tested
# build instructions: https://taskwarrior.org/download/#quick-setup
[source]
tar = "https://github.com/GothenburgBitFactory/taskserver/releases/download/v1.1.0/taskd-1.1.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"

View File

@ -1,20 +1,6 @@
#TODO maybe incomplete script, see https://taskwarrior.org/download/#quick-setup
#TODO not compiled or tested
# build instructions: https://taskwarrior.org/download/#quick-setup
[source]
tar = "https://github.com/GothenburgBitFactory/taskwarrior/releases/download/v2.6.2/task-2.6.2.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"

View File

@ -1,9 +1,10 @@
#TODO maybe incomplete script, see https://invent.kde.org/multimedia/kdenlive/-/blob/master/dev-docs/build.md#build-and-install-the-projects
#TODO not compiled or tested
# build instructions: https://invent.kde.org/multimedia/kdenlive/-/blob/master/dev-docs/build.md#build-and-install-the-projects
[source]
git = "https://invent.kde.org/multimedia/kdenlive"
rev = "da6ecdfbba7aadf88572ac5f87aeb88ff2d80f57"
[build]
template = "custom"
template = "cmake"
dependencies = [
"mlt",
"ffmpeg6",
@ -37,18 +38,3 @@ dependencies = [
"kf5-xmlgui",
"breeze-icons",
]
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
"""

View File

@ -1,6 +1,8 @@
#TODO missing CMake configuration, see https://wiki.hyprland.org/Getting-Started/Installation/#cmake-recommended
#TODO not compiled or tested
# build instructions: https://wiki.hyprland.org/Getting-Started/Installation/#cmake-recommended
[source]
git = "https://github.com/hyprwm/Hyprland"
rev = "ed936430216e7aa5f6f53d22eff713f8e9ed69ac"
[build]
template = "custom"
dependencies = [
@ -18,6 +20,8 @@ dependencies = [
"libxfixes",
]
script = """
DYNAMIC_INIT
cookbook_cmake
mkdir -pv "${COOKBOOK_STAGE}"/usr/share/wayland-sessions
cp -rv "${COOKBOOK_SOURCE}"/example/hyprland.desktop "${COOKBOOK_STAGE}"/usr/share/wayland-sessions
"""

View File

@ -1,20 +1,6 @@
#TODO maybe incomplete script, see https://github.com/NilsBrause/waylandpp#building
#TODO not compiled or tested
# build instructions: https://github.com/NilsBrause/waylandpp#building
[source]
git = "https://github.com/NilsBrause/waylandpp"
[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"