mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
libkdcraw24, add KF6 package (#11070)
This commit is contained in:
75
kde-apps/libkdcraw/libkdcraw24-24.08.0.recipe
Normal file
75
kde-apps/libkdcraw/libkdcraw24-24.08.0.recipe
Normal file
@@ -0,0 +1,75 @@
|
||||
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="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/libkdcraw-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="b64b7f094296be4e689f4846c8d3ac82f93dc30cbd92ccbf62b65596e88625c2"
|
||||
SOURCE_DIR="libkdcraw-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="5.0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libkdcraw24$secondaryArchSuffix = $portVersion
|
||||
lib:libKDcrawQt6$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:liblcms2$secondaryArchSuffix
|
||||
lib:libraw$secondaryArchSuffix
|
||||
lib:libQt6Core$secondaryArchSuffix
|
||||
lib:libQt6Gui$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libkdcraw24${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libKDcrawQt6$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libkdcraw24$secondaryArchSuffix == $portVersion base
|
||||
devel:liblcms2$secondaryArchSuffix
|
||||
devel:libraw$secondaryArchSuffix
|
||||
devel:libQt6Core$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules$secondaryArchSuffix
|
||||
devel:liblcms2$secondaryArchSuffix
|
||||
devel:libraw$secondaryArchSuffix
|
||||
devel:libQt6Core$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. $cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_WITH_QT6=ON \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C build install
|
||||
|
||||
rm -rf $dataDir
|
||||
|
||||
prepareInstalledDevelLib libKDcrawQt6
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
Reference in New Issue
Block a user