mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-19 02:00:06 +02:00
72 lines
1.6 KiB
Bash
72 lines
1.6 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://projects.kde.org/projects/kdesupport/extra-cmake-modules/"
|
|
COPYRIGHT="2010-2022 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="093dea7b11647bc5f74e6971d47ef15b5c410cba2b4620acae00f008d5480b21"
|
|
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
|
|
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:linguist$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:qcollectiongenerator$secondaryArchSuffix
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
sed -e '/platforms:/ a \ \ \ \ - name: Haiku' -i $sourceDir/metainfo.yaml
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build
|
|
cd build
|
|
|
|
cmake .. \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DSHARE_INSTALL_DIR=$dataDir/cmake/Modules
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd build
|
|
make test
|
|
}
|