mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
84 lines
2.3 KiB
Bash
84 lines
2.3 KiB
Bash
SUMMARY="KDAB's helper class for single-instance policy applications"
|
|
DESCRIPTION="Currently the documentation is woefully lacking, but see the examples or tests for \
|
|
inspiration. Basically it involves:
|
|
|
|
1. Create a 'Q(Core|Gui)Application' object.
|
|
2. Create a 'KDSingleApplication' object.
|
|
3. Check if the current instance is *primary* (or "master") or *secondary* (or "slave") by \
|
|
calling 'isPrimaryInstance':
|
|
* the *primary* instance needs to listen from messages coming from the secondary instances, \
|
|
by connecting a slot to the 'messageReceived' signal;
|
|
* the *secondary* instances can send messages to the primary instance by calling \
|
|
'sendMessage'."
|
|
HOMEPAGE="https://github.com/KDAB/KDSingleApplication"
|
|
COPYRIGHT="2019-2023 Klarälvdalens Datakonsult AB"
|
|
LICENSE="BSD (3-clause)
|
|
MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="$HOMEPAGE/releases/download/v$portVersion/kdsingleapplication-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="31029fffa4873e2769c555668e8edaa6bd5721edbc445bff5e66cc6af3b9ed78"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
kdsingleapplication$secondaryArchSuffix = $portVersion
|
|
lib:libkdsingleapplication_qt6$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Network$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
kdsingleapplication${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libkdsingleapplication_qt6$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
kdsingleapplication$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Dbus$secondaryArchSuffix
|
|
devel:libQt6Gui$secondaryArchSuffix
|
|
devel:libQt6Network$secondaryArchSuffix
|
|
devel:libQt6Widgets$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DKDSingleApplication_QT6=ON \
|
|
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt6/mkspecs \
|
|
-DKDSingleApplication_TESTS=OFF
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
prepareInstalledDevelLib \
|
|
libkdsingleapplication-qt6
|
|
|
|
packageEntries devel \
|
|
$libDir/cmake \
|
|
$dataDir \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make -C build test
|
|
}
|