package/stellarium: fix build without qt5serialport
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 15 Aug 2019 21:11:39 +0000 (23:11 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 15 Aug 2019 21:17:41 +0000 (23:17 +0200)
Set USE_PLUGIN_TELESCOPECONTROL depending on qt5serialport availability

Fixes:
 - http://autobuild.buildroot.org/results/01452113e984de0ddf177a513d20287c96ebe0a3

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/stellarium/stellarium.mk

index 779355520c79594bba640a75b130b6ac9a05c8da..33fb65c18db92911023b6239644d0f6fbc20eb54 100644 (file)
@@ -30,9 +30,13 @@ STELLARIUM_DEPENDENCIES += qt5serialport
 ifeq ($(BR2_PACKAGE_GPSD),y)
 STELLARIUM_DEPENDENCIES += gpsd
 endif
-STELLARIUM_CONF_OPTS += -DENABLE_GPS=ON
+STELLARIUM_CONF_OPTS += \
+       -DENABLE_GPS=ON \
+       -DUSE_PLUGIN_TELESCOPECONTROL=ON
 else
-STELLARIUM_CONF_OPTS += -DENABLE_GPS=OFF
+STELLARIUM_CONF_OPTS += \
+       -DENABLE_GPS=OFF \
+       -DUSE_PLUGIN_TELESCOPECONTROL=OFF
 endif
 
 $(eval $(cmake-package))