Skip to content

Commit

Permalink
Explicitly address t64 Qt dependencies if needed (currently Ubuntu 24…
Browse files Browse the repository at this point in the history
….04)
  • Loading branch information
Paulchen-Panther committed Aug 25, 2024
1 parent a0d6d92 commit e908cc8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ TARGET := debian/tmp
REQUIRED_DEPS := libusb libasound libmbedtls libturbojpeg libcec

# get qt version and set qt deps depending on version
QT6_PACKAGE_VERSION := $(shell dpkg-query -W -f '$${Version}' libqt6widgets6* 2>/dev/null || echo 0)
T64 = $(shell { dpkg-query -s libqt5widgets5t64 || dpkg-query -s libqt6widgets6t64; } &>/dev/null && echo t64 )
QT6_PACKAGE_VERSION = $(shell dpkg-query -W -f '$${Version}' libqt6widgets6$(T64) 2>/dev/null || echo 0)
ifeq (ok,$(shell dpkg --compare-versions "$(QT6_PACKAGE_VERSION)" "ge" "6.0" && echo ok))
QT_DEPS := qt6-qpa-plugins,libqt6network6,libqt6widgets6,libqt6sql6,libqt6serialport6,libqt6sql6-sqlite,
QT_DEPS = qt6-qpa-plugins,libqt6network6$(T64),libqt6widgets6$(T64),libqt6sql6$(T64),libqt6serialport6,libqt6sql6-sqlite$(T64),
else
QT_DEPS := libqt5network5,libqt5widgets5,libqt5x11extras5,libqt5sql5,libqt5serialport5,libqt5sql5-sqlite,
QT_DEPS = libqt5network5$(T64),libqt5widgets5$(T64),libqt5x11extras5,libqt5sql5$(T64),libqt5serialport5,libqt5sql5-sqlite,
endif

FIND_DEPENDS = $(shell \
Expand Down

0 comments on commit e908cc8

Please sign in to comment.