logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://anongit.hacktivis.me/git/overlay.git/

1.1.0-0002-Allow-to-disable-X11-support.patch (915B)


  1. From eec210940c85f92c93759abc1733d28a4af43163 Mon Sep 17 00:00:00 2001
  2. From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
  3. Date: Sat, 7 Feb 2026 13:06:59 +0100
  4. Subject: [PATCH 2/2] Allow to disable X11 support
  5. ---
  6. qarma.pro | 13 ++++++++-----
  7. 1 file changed, 8 insertions(+), 5 deletions(-)
  8. diff --git a/qarma.pro b/qarma.pro
  9. index c904d66..eeee4b6 100644
  10. --- a/qarma.pro
  11. +++ b/qarma.pro
  12. @@ -1,9 +1,6 @@
  13. HEADERS = Qarma.h
  14. SOURCES = Qarma.cpp
  15. QT += gui widgets
  16. -lessThan(QT_MAJOR_VERSION, 6){
  17. - unix:!macx:QT += x11extras
  18. -}
  19. TARGET = qarma
  20. !DISABLE_DBUS {
  21. @@ -11,8 +8,14 @@ TARGET = qarma
  22. QT += dbus
  23. }
  24. -unix:!macx:LIBS += -lX11
  25. -unix:!macx:DEFINES += WS_X11
  26. +!DISABLE_X11 {
  27. + unix:!macx:LIBS += -lX11
  28. + unix:!macx:DEFINES += WS_X11
  29. +
  30. + lessThan(QT_MAJOR_VERSION, 6){
  31. + unix:!macx:QT += x11extras
  32. + }
  33. +}
  34. # override: qmake PREFIX=/some/where/else
  35. isEmpty(PREFIX) {
  36. --
  37. 2.52.0