mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
ksanecore, new KDE library (#9915)
This commit is contained in:
78
media-libs/ksanecore/ksanecore-23.08.4.recipe
Normal file
78
media-libs/ksanecore/ksanecore-23.08.4.recipe
Normal file
@@ -0,0 +1,78 @@
|
||||
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-2023 KDE Organisation"
|
||||
LICENSE="GNU LGPL v2.1
|
||||
GNU LGPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="$HOMEPAGE/-/archive/v$portVersion/ksanecore-v$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="3c8ecba899e4ff911532a9368d096ad6e391661f7e2f85da6a6d84a54cfcada2"
|
||||
SOURCE_DIR="ksanecore-v$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= 1"
|
||||
|
||||
PROVIDES="
|
||||
ksanecore$secondaryArchSuffix = $portVersion
|
||||
lib:libKSaneCore$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libKF5I18n$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libsane$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
ksanecore${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libKSaneCore$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
ksanecore$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules$secondaryArchSuffix >= 5.90.0
|
||||
devel:libKF5I18n$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libsane$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:msgfmt
|
||||
cmd:msgmerge
|
||||
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 -Cbuild $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -Cbuild install
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libKSaneCore
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
Reference in New Issue
Block a user