Add the CMake script on many recipes

This commit is contained in:
Ribbon 2024-06-30 08:02:02 +00:00
parent 00d4dd4cb2
commit 6684f8de87
20 changed files with 318 additions and 20 deletions

View File

@ -1,6 +1,21 @@
#TODO missing script for CMake, see https://github.com/OpenVisualCloud/SVT-HEVC#linux-operating-systems-64-bit
#TODO maybe incomplete script, see https://github.com/OpenVisualCloud/SVT-HEVC#linux-operating-systems-64-bit
[source]
git = "https://github.com/OpenVisualCloud/SVT-HEVC"
rev = "b65eba07e6dee37407631cc441561960838b0333"
[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
"""

View File

@ -1,5 +1,20 @@
#TODO missing script for CMake, see https://github.com/OpenVisualCloud/SVT-VP9#linux-operating-systems-64-bit
#TODO maybe incomplete script, see https://github.com/OpenVisualCloud/SVT-VP9#linux-operating-systems-64-bit
[source]
git = "https://github.com/OpenVisualCloud/SVT-VP9"
[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
"""

View File

@ -1,6 +1,21 @@
#TODO missing script for CMake, see https://github.com/ultravideo/uvg266#compiling-uvg266
#TODO maybe incomplete script, see https://github.com/ultravideo/uvg266#compiling-uvg266
[source]
git = "https://github.com/ultravideo/uvg266"
rev = "9add13b7053a6ba3f6b22bf82728e01fc437a447"
[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
"""

View File

@ -1,6 +1,21 @@
#TODO missing script for CMake, see https://github.com/fraunhoferhhi/vvenc/wiki/Build#build-using-plain-cmake
#TODO maybe incomplete script, see https://github.com/fraunhoferhhi/vvenc/wiki/Build#build-using-plain-cmake
[source]
git = "https://github.com/fraunhoferhhi/vvenc"
rev = "eea6fce28c8e822a0ece7a343a10fd5d6dd0e7bb"
[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
"""

View File

@ -1,5 +1,20 @@
#TODO missing script for CMake, see https://bitbucket.org/multicoreware/x265_git/src/master/build/README.txt#lines-68
#TODO maybe incomplete script, see https://bitbucket.org/multicoreware/x265_git/src/master/build/README.txt#lines-68
[source]
tar = "https://bitbucket.org/multicoreware/x265_git/downloads/x265_3.5.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
"""

View File

@ -1,4 +1,4 @@
#TODO missing script for Cmake, see https://clickhouse.com/docs/en/development/build#how-to-build-clickhouse-on-any-linux
#TODO maybe incomplete script, see https://clickhouse.com/docs/en/development/build#how-to-build-clickhouse-on-any-linux
#TODO probably disable some submodules to use our recipes
[source]
tar = "https://github.com/ClickHouse/ClickHouse"
@ -9,3 +9,18 @@ dependencies = [
"openssl1",
"xz",
]
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,4 +1,4 @@
#TODO missing script for CMake, see https://dev.mysql.com/doc/refman/8.2/en/installing-source-distribution.html
#TODO maybe incomplete script, see https://dev.mysql.com/doc/refman/8.2/en/installing-source-distribution.html
[source]
tar = "https://dev.mysql.com/downloads/file/?id=523432"
[build]
@ -10,4 +10,17 @@ dependencies = [
]
script = """
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_configure
"""

View File

@ -1,6 +1,21 @@
#TODO missing script for CMake, see https://github.com/ponylang/ponyc/blob/main/BUILD.md
#TODO maybe incomplete script, see https://github.com/ponylang/ponyc/blob/main/BUILD.md
[source]
git = "https://github.com/ponylang/ponyc"
rev = "a161b7c97666f820bbacbb328d95dc820f353edd"
[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
"""

View File

@ -1,5 +1,20 @@
#TODO missing script for CMake, see https://github.com/ValeLang/Vale/blob/master/build-compiler.md
#TODO maybe incomplete script, see https://github.com/ValeLang/Vale/blob/master/build-compiler.md
[source]
git = "https://github.com/ValeLang/Vale"
[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
"""

View File

@ -1,6 +1,21 @@
#TODO missing script for CMake, see https://github.com/apitrace/apitrace/blob/master/docs/INSTALL.markdown#linux
#TODO maybe incomplete script, see https://github.com/apitrace/apitrace/blob/master/docs/INSTALL.markdown#linux
[source]
git = "https://github.com/apitrace/apitrace"
rev = "9352fc02bba106fbbeef9e8452ef34643c0d0764"
[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
"""

View File

@ -1,6 +1,21 @@
#TODO missing script for CMake, see https://github.com/vgvassilev/cling#building-from-source
#TODO maybe incomplete script, see https://github.com/vgvassilev/cling#building-from-source
[source]
git = "https://github.com/vgvassilev/cling"
rev = "ab81cdcc61f26dfd6a31fb141f1f4b335f6922be"
[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
"""

View File

@ -1,5 +1,20 @@
#TODO missing script for CMake, see https://www.doxygen.nl/manual/install.html#install_src_unix
#TODO maybe incomplete script, see https://www.doxygen.nl/manual/install.html#install_src_unix
[source]
tar = "https://www.doxygen.nl/files/doxygen-1.9.8.src.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
"""

View File

@ -1,4 +1,4 @@
#TODO missing script for CMake, see https://dev-docs.kicad.org/en/build/linux/
#TODO maybe incomplete script, see https://dev-docs.kicad.org/en/build/linux/
#TODO maybe missing dependencies, see https://dev-docs.kicad.org/en/build/getting-started/
[source]
git = "https://gitlab.com/kicad/code/kicad"
@ -16,3 +16,18 @@ dependencies = [
"curl",
"ngspice",
]
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,21 @@
#TODO missing script for CMake, see https://github.com/oneapi-src/level-zero#building-and-installing
#TODO maybe incomplete script, see https://github.com/oneapi-src/level-zero#building-and-installing
[source]
git = "https://github.com/oneapi-src/level-zero"
rev = "ea5be99d8d34480447ab1e3c7efc30d6f179b123"
[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
"""

View File

@ -1,6 +1,21 @@
#TODO missing script for CMake, lacking English build instructions
#TODO maybe incomplete script, lacking English build instructions
[source]
git = "https://github.com/alibaba/MNN"
rev = "1ea55f467fb231655cf1e08f77d4a0f1043c4c29"
[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
"""

View File

@ -1,4 +1,4 @@
#TODO missing script for CMake, see https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-linux
#TODO maybe incomplete script, see https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-linux
[source]
git = "https://github.com/Tencent/ncnn"
[build]
@ -8,3 +8,18 @@ dependencies = [
"libvulkan",
"opencv4",
]
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,4 +1,4 @@
#TODO missing script for CMake, see https://gitlab.com/xonotic/netradiant#advanced-compilation
#TODO maybe incomplete script, see https://gitlab.com/xonotic/netradiant#advanced-compilation
[source]
git = "https://gitlab.com/xonotic/netradiant"
[build]
@ -11,3 +11,18 @@ dependencies = [
"libpng",
"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}"
)
cookbook_configure
"""

View File

@ -1,4 +1,4 @@
#TODO missing script for CMake, see https://dev.opencascade.org/doc/overview/html/build_upgrade__building_occt.html
#TODO maybe incomplete script, see https://dev.opencascade.org/doc/overview/html/build_upgrade__building_occt.html
#TODO missing dependencies, see https://dev.opencascade.org/doc/overview/html/build_upgrade_building_3rdparty.html#build_3rdparty_linux
[source]
tar = "https://github.com/Open-Cascade-SAS/OCCT/archive/refs/tags/V7_8_0.tar.gz"
@ -9,3 +9,18 @@ dependencies = [
"tcl",
"tk",
]
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,5 +1,20 @@
#TODO missing script for CMake, see https://github.com/protocolbuffers/protobuf/blob/main/cmake/README.md
#TODO maybe incomplete script, see https://github.com/protocolbuffers/protobuf/blob/main/cmake/README.md
[source]
tar = "https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protobuf-25.1.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
"""

View File

@ -1,4 +1,4 @@
#TODO missing script for CMake, see https://github.com/nihui/vkpeak#build-from-source
#TODO maybe incomplete script, see https://github.com/nihui/vkpeak#build-from-source
[source]
git = "https://github.com/nihui/vkpeak"
[build]
@ -6,3 +6,18 @@ template = "custom"
dependencies = [
"libvulkan",
]
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
"""