mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
76 lines
1.9 KiB
Bash
76 lines
1.9 KiB
Bash
SUMMARY="Extra modules and scripts for CMake"
|
|
DESCRIPTION="The Extra CMake Modules package, or ECM, adds to the \
|
|
modules provided by CMake, including ones used by find_package() to find \
|
|
common software, ones that can be used directly in CMakeLists.txt files to \
|
|
perform common tasks and toolchain files that must be specified on the \
|
|
commandline by the user."
|
|
HOMEPAGE="https://invent.kde.org/frameworks/extra-cmake-modules"
|
|
COPYRIGHT="2010-2024 KDE Organisation"
|
|
LICENSE="BSD (2-clause)"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/extra-cmake-modules-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="69fdab5f0fedfb73d1accff5012d510b486e1dd75c711e925a6912a3e71814b0"
|
|
SOURCE_DIR="extra-cmake-modules-$portVersion"
|
|
PATCHES="extra_cmake_modules-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
extra_cmake_modules$secondaryArchSuffix = $portVersion
|
|
"
|
|
if [ "$targetArchitecture" = "x86_gcc2" ]; then
|
|
PROVIDES+="
|
|
extra_cmake_modules = $portVersion
|
|
"
|
|
fi
|
|
|
|
ARCHITECTURES_doc="any"
|
|
PROVIDES_doc="
|
|
extra_cmake_modules_doc = $portVersion
|
|
"
|
|
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
qt6_tools${secondaryArchSuffix}_devel
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Quick$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:msgfmt$secondaryArchSuffix
|
|
cmd:msgmerge$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python3
|
|
sphinx_python310
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
|
-DSHARE_INSTALL_DIR=$dataDir/cmake/Modules \
|
|
-DDOC_INSTALL_DIR=$docDir \
|
|
-DMAN_INSTALL_DIR=$manDir \
|
|
-DBUILD_TESTING=OFF
|
|
make -Cbuild $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -Cbuild install
|
|
|
|
packageEntries doc \
|
|
$documentationDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
ctest --test-dir build --output-on-failure -E KDEFetchTranslations
|
|
}
|