mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
109 lines
3.3 KiB
Bash
109 lines
3.3 KiB
Bash
SUMMARY="Integration of Qt application with KDE workspaces"
|
|
DESCRIPTION="Framework Integration is a set of plugins responsible for better integration of Qt \
|
|
applications when running on a KDE Plasma workspace.
|
|
Applications do not need to link to this directly."
|
|
HOMEPAGE="https://invent.kde.org/frameworks/frameworkintegration"
|
|
COPYRIGHT="2010-2024 KDE Organisation"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="$HOMEPAGE/-/archive/v$portVersion/frameworkintegration-v$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="8a1941b7427f930b1cc7f0207baddcb71538e17e5745cfd709d078c3eb1f38f4"
|
|
SOURCE_DIR="frameworkintegration-v$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
frameworkintegration$secondaryArchSuffix = $portVersion
|
|
lib:libKF5Style$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libKF5AuthCore$secondaryArchSuffix
|
|
lib:libKF5Codecs$secondaryArchSuffix
|
|
lib:libKF5ConfigCore$secondaryArchSuffix
|
|
lib:libKF5ConfigWidgets$secondaryArchSuffix
|
|
lib:libKF5CoreAddons$secondaryArchSuffix
|
|
lib:libKF5IconThemes$secondaryArchSuffix
|
|
lib:libKF5WidgetsAddons$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
lib:libQt5Xml$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
frameworkintegration${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libKF5Style$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
frameworkintegration$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
|
devel:libKF5Auth$secondaryArchSuffix == $portVersion
|
|
devel:libKF5Attica$secondaryArchSuffix == $portVersion
|
|
devel:libKF5Codecs$secondaryArchSuffix == $portVersion
|
|
devel:libKF5ConfigCore$secondaryArchSuffix == $portVersion
|
|
devel:libKF5ConfigWidgets$secondaryArchSuffix == $portVersion
|
|
devel:libKF5CoreAddons$secondaryArchSuffix == $portVersion
|
|
devel:libKF5I18n$secondaryArchSuffix == $portVersion
|
|
devel:libKF5IconThemes$secondaryArchSuffix == $portVersion
|
|
devel:libKF5NewStuff$secondaryArchSuffix == $portVersion
|
|
devel:libKF5Notifications$secondaryArchSuffix == $portVersion
|
|
devel:libKF5Package$secondaryArchSuffix == $portVersion
|
|
devel:libKF5Service$secondaryArchSuffix == $portVersion
|
|
devel:libKF5WidgetsAddons$secondaryArchSuffix == $portVersion
|
|
devel:libKF5XmlGui$secondaryArchSuffix == $portVersion
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
qthaikuplugins$secondaryArchSuffix
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
sed -e '/platforms:/ a \ \ \ \ - name: Haiku' -i $sourceDir/metainfo.yaml
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \
|
|
-DKDE_INSTALL_QMLDIR=$dataDir/Qt5/qml \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
prepareInstalledDevelLib \
|
|
libKF5Style
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
|
make -C build test
|
|
}
|