Source: krita-qt-penfix
Section: libs
Priority: optional
Maintainer: Are Mehus <are.mehus@pm.me>
# Same build environment as Debian's qt6-base, so that Qt detects the same
# features. The SQL drivers are left out (-DFEATURE_sql=OFF); they do not
# affect QtWidgets or QtWaylandClient. debian/check-qt-abi verifies the result.
Build-Depends: debhelper-compat (= 14),
               cmake (>= 3.24~),
               libatspi2.0-dev,
               libb2-dev,
               libcups2-dev,
               libdbus-1-dev,
               libdouble-conversion-dev,
               libdrm-dev,
               libfontconfig-dev,
               libfreetype-dev,
               libgbm-dev,
               libgl-dev,
               libgles-dev,
               libglib2.0-dev,
               libglu1-mesa-dev | libglu-dev,
               libgtk-3-dev,
               libharfbuzz-dev,
               libicu-dev,
               libinput-dev,
               libjemalloc-dev,
               libjpeg-dev,
               libkrb5-dev,
               liblttng-ust-dev,
               libmd4c-dev,
               libmd4c-html-dev,
               libmtdev-dev,
               libpcre2-dev,
               libpng-dev,
               libproxy-dev,
               libsctp-dev,
               libssl-dev,
               libsystemd-dev,
               libts-dev,
               libudev-dev,
               liburing-dev,
               libvulkan-dev,
               libwayland-dev,
               libx11-dev,
               libx11-xcb-dev,
               libxcb-composite0-dev,
               libxcb-cursor-dev,
               libxcb-damage0-dev,
               libxcb-dpms0-dev,
               libxcb-dri2-0-dev,
               libxcb-dri3-dev,
               libxcb-ewmh-dev,
               libxcb-glx0-dev,
               libxcb-icccm4-dev,
               libxcb-image0-dev,
               libxcb-keysyms1-dev,
               libxcb-present-dev,
               libxcb-randr0-dev,
               libxcb-record0-dev,
               libxcb-render-util0-dev,
               libxcb-render0-dev,
               libxcb-res0-dev,
               libxcb-screensaver0-dev,
               libxcb-shape0-dev,
               libxcb-shm0-dev,
               libxcb-sync-dev,
               libxcb-util-dev,
               libxcb-xf86dri0-dev,
               libxcb-xfixes0-dev,
               libxcb-xinerama0-dev,
               libxcb-xinput-dev,
               libxcb-xkb-dev,
               libxcb-xtest0-dev,
               libxcb-xv0-dev,
               libxcb-xvmc0-dev,
               libxcb1-dev,
               libxext-dev,
               libxfixes-dev,
               libxi-dev,
               libxkbcommon-dev,
               libxkbcommon-x11-dev,
               libxrender-dev,
               libzstd-dev,
               ninja-build,
               patchelf,
               pkgconf,
               python3:any,
               zlib1g-dev,
# Reference for debian/check-qt-abi: Debian's own build of the same Qt.
               libqt6waylandclient6,
               libqt6widgets6,
               qt6-base-private-dev,
Standards-Version: 4.7.4
Homepage: https://www.qt.io/developers/
Rules-Requires-Root: no

Package: krita-qt-penfix
Architecture: linux-any
Multi-Arch: same
Depends: ${misc:Depends},
         ${qt6:PrivateAbi},
         ${shlibs:Depends},
Description: Krita's pen-patched QtWidgets and QtWaylandClient (private copies)
 Krita needs a few Qt patches for a stylus to behave correctly on Wayland:
 Enter/Leave events for accepted tablet events, cursor updates when the
 pen moves between surfaces and widgets, several tools in proximity at
 once, and QCursor::pos() following the pen.
 .
 This package contains private copies of libQt6Widgets and
 libQt6WaylandClient, built from upstream qtbase with exactly those
 patches. They are installed outside the library search path and are
 only loaded by Krita, whose programs carry an RPATH to their directory.
 The rest of the system, including Plasma, KWin and programs started
 from Krita, keeps using Debian's Qt.
 .
 The package is tied to one exact Qt version and must be rebuilt for
 every new Qt version in Debian.
