diff --git a/srcpkgs/kguiaddons/template b/srcpkgs/kguiaddons/template index db66b082a69..5a4fba58fc7 100644 --- a/srcpkgs/kguiaddons/template +++ b/srcpkgs/kguiaddons/template @@ -3,11 +3,12 @@ pkgname=kguiaddons version=5.94.0 revision=1 build_style=cmake -configure_args="-DBUILD_TESTING=ON -DWaylandScanner_EXECUTABLE=/usr/bin/wayland-scanner" +configure_args="-DBUILD_TESTING=ON -DWaylandScanner_EXECUTABLE=/usr/bin/wayland-scanner + $(vopt_bool wayland WITH_WAYLAND)" hostmakedepends="kcoreaddons pkg-config extra-cmake-modules - wayland-devel qt5-wayland qt5-host-tools qt5-tools-devel" -makedepends="qt5-tools-devel qt5-x11extras-devel xcb-util-devel - plasma-wayland-protocols qt5-wayland-devel wayland-devel" + $(vopt_if wayland 'wayland-devel qt5-wayland') qt5-host-tools qt5-tools-devel" +makedepends="qt5-tools-devel $(vopt_if x11 qt5-x11extras-devel) + $(vopt_if wayland 'plasma-wayland-protocols xcb-util-devel qt5-wayland-devel wayland-devel')" short_desc="KDE frameworks - Addons to QtGui" maintainer="John " license="LGPL-2.0-only, LGPL-2.0-or-later, LGPL-2.1-or-later" @@ -15,6 +16,9 @@ homepage="https://invent.kde.org/frameworks/kguiaddons" distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz" checksum=f23182a7268d37cbc32eaa77bdc9dddc6429a8eff912f57841f6d96c71973873 +build_options="wayland x11" +build_options_default="wayland x11" + kguiaddons-devel_package() { short_desc+=" - development" depends="${makedepends} ${sourcepkg}-${version}_${revision}"