2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="cmake"
|
2023-08-24 09:53:35 +00:00
|
|
|
PKG_VERSION="3.27.3"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="BSD"
|
|
|
|
PKG_SITE="https://cmake.org/"
|
|
|
|
PKG_URL="https://cmake.org/files/v$(get_pkg_version_maj_min)/cmake-${PKG_VERSION}.tar.gz"
|
2023-02-25 00:39:48 +00:00
|
|
|
PKG_DEPENDS_HOST="openssl:host pkg-config:host"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LONGDESC="A cross-platform, open-source make system."
|
|
|
|
PKG_TOOLCHAIN="configure"
|
2023-02-25 00:39:48 +00:00
|
|
|
PKG_BUILD_FLAGS="+local-cc"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
configure_host() {
|
|
|
|
../configure --prefix=${TOOLCHAIN} \
|
|
|
|
--no-qt-gui --no-system-libs \
|
|
|
|
-- \
|
|
|
|
-DCMAKE_C_FLAGS="-O2 -Wall -pipe -Wno-format-security" \
|
|
|
|
-DCMAKE_CXX_FLAGS="-O2 -Wall -pipe -Wno-format-security" \
|
|
|
|
-DCMAKE_EXE_LINKER_FLAGS="${HOST_LDFLAGS}" \
|
|
|
|
-DCMAKE_USE_OPENSSL=ON \
|
|
|
|
-DBUILD_CursesDialog=0
|
|
|
|
}
|