mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
85 lines
2.0 KiB
Bash
85 lines
2.0 KiB
Bash
SUMMARY="Digital camera raw image library wrapper"
|
|
DESCRIPTION="Libkdcraw is a C++ interface around LibRaw library used to decode RAW picture files."
|
|
HOMEPAGE="https://invent.kde.org/graphics/libkdcraw/"
|
|
COPYRIGHT="2010-2024 KDE Organisation"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="3"
|
|
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/libkdcraw-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="ab1080e449ff468032b7ba5f203fba1cdca3ab9958c4f9b5451ba0e2c0978f11"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="5.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libkdcraw$secondaryArchSuffix = $portVersion
|
|
lib:libKF5KDcraw$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:liblcms2$secondaryArchSuffix
|
|
lib:libraw$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libkdcraw${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libKF5KDcraw$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libkdcraw$secondaryArchSuffix == $portVersion base
|
|
devel:liblcms2$secondaryArchSuffix
|
|
devel:libraw$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix
|
|
devel:liblcms2$secondaryArchSuffix
|
|
devel:libraw$secondaryArchSuffix >= 24
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
sed -e '/platforms:/ a \ \ \ \ - name: Haiku' -i $sourceDir/metainfo.yaml
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
rm -rf $dataDir
|
|
|
|
prepareInstalledDevelLib libKF5KDcraw
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
|
make -C build test
|
|
}
|