kumquat-buildroot/package/stellarium/stellarium.mk
Fabrice Fontaine d6189db665 package/stellarium: fix build without qt5serialport
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>
2019-08-15 23:17:41 +02:00

43 lines
1.0 KiB
Makefile

################################################################################
#
# stellarium
#
################################################################################
STELLARIUM_VERSION = 0.19.1
STELLARIUM_SITE = https://github.com/Stellarium/stellarium/releases/download/v$(STELLARIUM_VERSION)
STELLARIUM_LICENSE = GPL-2.0+
STELLARIUM_LICENSE_FILES = COPYING
STELLARIUM_DEPENDENCIES = \
qt5base \
qt5location \
qt5multimedia \
zlib
STELLARIUM_CONF_OPTS = \
-DENABLE_MEDIA=ON \
-DENABLE_NLS=OFF \
-DUSE_SYSTEM_ZLIB=ON
ifeq ($(BR2_PACKAGE_QT5SCRIPT),y)
STELLARIUM_DEPENDENCIES += qt5script
STELLARIUM_CONF_OPTS += -DENABLE_SCRIPTING=ON
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
STELLARIUM_CONF_OPTS += \
-DENABLE_GPS=ON \
-DUSE_PLUGIN_TELESCOPECONTROL=ON
else
STELLARIUM_CONF_OPTS += \
-DENABLE_GPS=OFF \
-DUSE_PLUGIN_TELESCOPECONTROL=OFF
endif
$(eval $(cmake-package))