mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
kcontacts: add new recipe
This commit is contained in:
90
kde-apps/kcontacts/kcontacts-18.12.3.recipe
Normal file
90
kde-apps/kcontacts/kcontacts-18.12.3.recipe
Normal file
@@ -0,0 +1,90 @@
|
||||
SUMMARY="Address book API based on KDE Frameworks"
|
||||
DESCRIPTION="KContact library provides vcard support."
|
||||
HOMEPAGE="https://github.com/KDE/kcontacts/"
|
||||
COPYRIGHT="2010-2019 KDE Organisation"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/KDE/kcontacts/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="124fd1dfb15189535e00002441078a636e73578453e61b9cbaeb844b965af7a5"
|
||||
SOURCE_DIR="kcontacts-$portVersion"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="5.10.3"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
settings/xdg/kcontacts.categories keep-old
|
||||
settings/xdg/kcontacts.renamecategories keep-old
|
||||
"
|
||||
|
||||
PROVIDES="
|
||||
kcontacts$secondaryArchSuffix = $portVersion
|
||||
lib:libKF5Contacts$secondaryArchSuffix = $libVersion compat >= 5
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libKF5Codecs$secondaryArchSuffix
|
||||
lib:libKF5ConfigCore$secondaryArchSuffix
|
||||
lib:libKF5ConfigGui$secondaryArchSuffix
|
||||
lib:libKF5ConfigWidgets$secondaryArchSuffix
|
||||
lib:libKF5CoreAddons$secondaryArchSuffix
|
||||
lib:libKF5I18n$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
kcontacts${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libKF5Contacts$secondaryArchSuffix = $libVersion compat >= 5
|
||||
"
|
||||
REQUIRES_devel="
|
||||
kcontacts$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules >= 5.55
|
||||
devel:libKF5Codecs$secondaryArchSuffix
|
||||
devel:libKF5ConfigCore$secondaryArchSuffix
|
||||
devel:libKF5ConfigWidgets$secondaryArchSuffix
|
||||
devel:libKF5CoreAddons$secondaryArchSuffix
|
||||
devel:libKF5I18n$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix >= 5.12
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:python2
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
cmake .. $cmakeDirArgs \
|
||||
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libKF5Contacts
|
||||
|
||||
packageEntries devel \
|
||||
$dataDir \
|
||||
$libDir/cmake \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd build
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user