mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
95 lines
2.7 KiB
Bash
95 lines
2.7 KiB
Bash
SUMMARY="KDAB's Dock Widget Framework for Qt"
|
|
DESCRIPTION="KDDockWidgets is a Qt dock widget library written by KDAB, suitable for replacing \
|
|
QDockWidget and implementing advanced functionalities missing in Qt.
|
|
|
|
Although KDDockWidgets is ready to be used out of the box, it can also be seen as a framework \
|
|
to allow building very tailored custom docking systems. It tries to expose every internal widget \
|
|
and every knob for the app developer to tune."
|
|
HOMEPAGE="https://github.com/KDAB/KDDockWidgets"
|
|
COPYRIGHT="2010-2025 Klarälvdalens Datakonsult AB (KDAB)"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/KDAB/KDDockWidgets/releases/download/v$portVersion/kddockwidgets-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="51dbf24fe72e43dd7cb9a289d3cab47112010f1a2ed69b6fc8ac0dff31991ed2"
|
|
SOURCE_DIR="KDDockWidgets-$portVersion"
|
|
PATCHES="kddockwidgets-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
kddockwidgets$secondaryArchSuffix = $portVersion
|
|
lib:libkddockwidgets_qt6$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
nlohmann_json
|
|
lib:libfmt$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libspdlog$secondaryArchSuffix
|
|
# Qt6
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Gui$secondaryArchSuffix
|
|
lib:libQt6Network$secondaryArchSuffix
|
|
lib:libQt6OpenGL$secondaryArchSuffix
|
|
lib:libQt6Qml$secondaryArchSuffix
|
|
lib:libQt6Quick$secondaryArchSuffix
|
|
lib:libQt6Widgets$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
kddockwidgets${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libkddockwidgets_qt6$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
kddockwidgets$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:nlohmann_json
|
|
devel:libfmt$secondaryArchSuffix >= 11
|
|
devel:libspdlog$secondaryArchSuffix
|
|
# Qt6
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Gui$secondaryArchSuffix
|
|
devel:libQt6Network$secondaryArchSuffix
|
|
devel:libQt6Qml$secondaryArchSuffix
|
|
devel:libQt6Quick$secondaryArchSuffix
|
|
devel:libQt6Widgets$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-D INSTALL_DOC_DIR=$documentationDir/packages/kddockwidgets \
|
|
-D ECM_MKSPECS_INSTALL_DIR=$dataDir/Qt6/mkspecs \
|
|
-D CMAKE_SKIP_RPATH=YES \
|
|
-W no-dev
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
prepareInstalledDevelLib \
|
|
libkddockwidgets-qt6
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$dataDir/Qt6 \
|
|
$libDir/cmake
|
|
}
|