mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
119 lines
3.9 KiB
Bash
119 lines
3.9 KiB
Bash
SUMMARY="Display dialog boxes from shell scripts"
|
|
DESCRIPTION="kdialog allows you to display dialog boxes from shell scripts.
|
|
The syntax is very much inspired from the 'dialog' command (which shows text mode dialogs)."
|
|
HOMEPAGE="https://invent.kde.org/utilities/kdialog/"
|
|
COPYRIGHT="2006-2023 KDialog Team"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://invent.kde.org/utilities/kdialog/-/archive/v22.12.2/kdialog-v22.12.2.tar.gz"
|
|
CHECKSUM_SHA256="35ad54955a48def6a13b726da17cf9b95119b794dd9ec183a403c197d25fc4de"
|
|
SOURCE_DIR="kdialog-v$portVersion"
|
|
PATCHES="0001-Select-directories-in-directory-selection-dialog.patch"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
kdialog$secondaryArchSuffix = $portVersion
|
|
cmd:kdialog$commandSuffix = $portVersion
|
|
cmd:kdialog_progress_helper$commandSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
cmd:dbus_launch
|
|
lib:libKF5Auth$secondaryArchSuffix
|
|
lib:libKF5Bookmarks$secondaryArchSuffix
|
|
lib:libKF5DBusAddons$secondaryArchSuffix
|
|
lib:libKF5GuiAddons$secondaryArchSuffix
|
|
lib:libKF5Codecs$secondaryArchSuffix
|
|
lib:libKF5Completion$secondaryArchSuffix
|
|
lib:libKF5I18n$secondaryArchSuffix
|
|
lib:libKF5IconThemes$secondaryArchSuffix
|
|
lib:libKF5ConfigCore$secondaryArchSuffix
|
|
lib:libKF5ConfigWidgets$secondaryArchSuffix
|
|
lib:libKF5Notifications$secondaryArchSuffix
|
|
lib:libKF5Solid$secondaryArchSuffix
|
|
lib:libKF5SonnetCore$secondaryArchSuffix
|
|
lib:libKF5TextWidgets$secondaryArchSuffix
|
|
lib:libKF5CoreAddons$secondaryArchSuffix
|
|
lib:libKF5ItemViews$secondaryArchSuffix
|
|
lib:libKF5JobWidgets$secondaryArchSuffix
|
|
lib:libKF5KIOCore$secondaryArchSuffix
|
|
lib:libKF5Service$secondaryArchSuffix
|
|
lib:libKF5WidgetsAddons$secondaryArchSuffix
|
|
lib:libKF5WindowSystem$secondaryArchSuffix
|
|
lib:libKF5XmlGui$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5PrintSupport$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix >= 5.77
|
|
devel:libKF5Auth$secondaryArchSuffix
|
|
devel:libKF5Bookmarks$secondaryArchSuffix
|
|
devel:libKF5DBusAddons$secondaryArchSuffix
|
|
devel:libKF5GuiAddons$secondaryArchSuffix
|
|
devel:libKF5Codecs$secondaryArchSuffix
|
|
devel:libKF5Completion$secondaryArchSuffix
|
|
devel:libKF5I18n$secondaryArchSuffix
|
|
devel:libKF5IconThemes$secondaryArchSuffix
|
|
devel:libKF5ConfigCore$secondaryArchSuffix
|
|
devel:libKF5ConfigWidgets$secondaryArchSuffix
|
|
devel:libKF5Notifications$secondaryArchSuffix
|
|
devel:libKF5Solid$secondaryArchSuffix
|
|
devel:libKF5SonnetCore$secondaryArchSuffix
|
|
devel:libKF5TextWidgets$secondaryArchSuffix
|
|
devel:libKF5CoreAddons$secondaryArchSuffix
|
|
devel:libKF5ItemViews$secondaryArchSuffix
|
|
devel:libKF5JobWidgets$secondaryArchSuffix
|
|
devel:libKF5KIOCore$secondaryArchSuffix
|
|
devel:libKF5Service$secondaryArchSuffix
|
|
devel:libKF5WidgetsAddons$secondaryArchSuffix
|
|
devel:libKF5WindowSystem$secondaryArchSuffix
|
|
devel:libKF5XmlGui$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5PrintSupport$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
sed -e '/add_subdirectory(doc)/ s/^#*/#/' -i CMakeLists.txt
|
|
sed -e '/kdoctools_install(po)/ s/^#*/#/' -i CMakeLists.txt
|
|
|
|
|
|
cmake -S . -B build \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DCMAKE_INSTALL_BINDIR=$commandBinDir \
|
|
-DSHARE_INSTALL_PREFIX=$dataDir \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
|
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
}
|