mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
ksanecore_kf6, add KF6 version 24.12.3 (#12070)
This commit is contained in:
79
media-libs/ksanecore/ksanecore_kf6-24.12.3.recipe
Normal file
79
media-libs/ksanecore/ksanecore_kf6-24.12.3.recipe
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
SUMMARY="Library providing logic to interface scanners"
|
||||||
|
DESCRIPTION="KSaneCore is a library that provides a Qt interface for the SANE library for scanner \
|
||||||
|
hardware."
|
||||||
|
HOMEPAGE="https://invent.kde.org/libraries/ksanecore/"
|
||||||
|
COPYRIGHT="2010-2025 KDE Organisation"
|
||||||
|
LICENSE="GNU LGPL v2.1
|
||||||
|
GNU LGPL v3"
|
||||||
|
REVISION="2"
|
||||||
|
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/ksanecore-$portVersion.tar.xz"
|
||||||
|
CHECKSUM_SHA256="9357c5e3db759241b12ebdc4586cad4a132627d23a15cbe0844f8943c31ae419"
|
||||||
|
SOURCE_DIR="ksanecore-$portVersion"
|
||||||
|
|
||||||
|
ARCHITECTURES="all !x86_gcc2"
|
||||||
|
SECONDARY_ARCHITECTURES="x86"
|
||||||
|
|
||||||
|
libVersion="$portVersion"
|
||||||
|
libVersionCompat="$libVersion compat >= 1"
|
||||||
|
|
||||||
|
PROVIDES="
|
||||||
|
ksanecore_kf6$secondaryArchSuffix = $portVersion
|
||||||
|
lib:libKSaneCore6$secondaryArchSuffix = $libVersionCompat
|
||||||
|
"
|
||||||
|
REQUIRES="
|
||||||
|
haiku$secondaryArchSuffix
|
||||||
|
lib:libGL$secondaryArchSuffix
|
||||||
|
lib:libsane$secondaryArchSuffix
|
||||||
|
# KF6
|
||||||
|
lib:libKF6I18n$secondaryArchSuffix
|
||||||
|
# Qt6
|
||||||
|
lib:libQt6Core$secondaryArchSuffix
|
||||||
|
lib:libQt6Gui$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
|
||||||
|
PROVIDES_devel="
|
||||||
|
ksanecore_kf6${secondaryArchSuffix}_devel = $portVersion
|
||||||
|
devel:libKSaneCore6$secondaryArchSuffix = $libVersionCompat
|
||||||
|
"
|
||||||
|
REQUIRES_devel="
|
||||||
|
ksanecore_kf6$secondaryArchSuffix == $portVersion base
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD_REQUIRES="
|
||||||
|
haiku${secondaryArchSuffix}_devel
|
||||||
|
devel:libsane$secondaryArchSuffix
|
||||||
|
# KF6
|
||||||
|
extra_cmake_modules$secondaryArchSuffix
|
||||||
|
devel:libKF6I18n$secondaryArchSuffix
|
||||||
|
# Qt6
|
||||||
|
devel:libQt6Core$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
BUILD_PREREQUIRES="
|
||||||
|
cmd:cmake
|
||||||
|
cmd:g++$secondaryArchSuffix
|
||||||
|
cmd:make
|
||||||
|
cmd:msgfmt$secondaryArchSuffix
|
||||||
|
cmd:msgmerge$secondaryArchSuffix
|
||||||
|
cmd:pkg_config$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD()
|
||||||
|
{
|
||||||
|
cmake -B build -S. -DCMAKE_BUILD_TYPE=Release \
|
||||||
|
$cmakeDirArgs \
|
||||||
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
|
||||||
|
|
||||||
|
make -C build $jobArgs
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL()
|
||||||
|
{
|
||||||
|
make -C build install
|
||||||
|
|
||||||
|
prepareInstalledDevelLib \
|
||||||
|
libKSaneCore6
|
||||||
|
|
||||||
|
packageEntries devel \
|
||||||
|
$developDir \
|
||||||
|
$libDir/cmake
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user