package/stellarium: fix qt5serialport dependency

qt5serialport is only needed when GPS support is enabled:
https://github.com/Stellarium/stellarium/blob/v25.4/CMakeLists.txt#L623,
so having qt5serialport without gpsd doesn't bring anything.

Please note that we disable telescope support by default so only gpsd
enables the usage of qt5serialport.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Bernd Kuhls
2026-05-30 17:57:14 +02:00
committed by Thomas Petazzoni
parent cc3a1bde77
commit 822a7ffc07

View File

@@ -47,11 +47,8 @@ else
STELLARIUM_CONF_OPTS += -DENABLE_SCRIPTING=OFF
endif
ifeq ($(BR2_PACKAGE_QT5SERIALPORT),y)
STELLARIUM_DEPENDENCIES += qt5serialport
ifeq ($(BR2_PACKAGE_GPSD),y)
STELLARIUM_DEPENDENCIES += gpsd
endif
ifeq ($(BR2_PACKAGE_GPSD)$(BR2_PACKAGE_QT5SERIALPORT),yy)
STELLARIUM_DEPENDENCIES += gpsd qt5serialport
STELLARIUM_CONF_OPTS += -DENABLE_GPS=ON
else
STELLARIUM_CONF_OPTS += -DENABLE_GPS=OFF