Files
buildroot/package/stellarium/stellarium.mk
Bernd Kuhls 1f559e5c46 package/stellarium: add extra downloads
Building Stellarium includes the download of external tarballs during
configure.

This fails with host-cmake during configure stage:

CMake Error at md4c-subbuild/md4c-populate-prefix/src/md4c-populate-stamp/download-md4c-populate.cmake:163 (message):
  Each download failed!

    error: downloading 'https://github.com/mity/md4c/archive/refs/tags/release-0.5.2.tar.gz' failed
          status_code: 1
          status_string: "Unsupported protocol"
          log:
          --- LOG BEGIN ---
          Protocol "https" not supported

  closing connection #-1

due to buildroot commit f87138339b which
disabled SSL support for host-cmake.

This patch uses _EXTRA_DOWNLOADS to provide these tarball to allow
offline builds.

No autobuilder error was recorded, the build error can be reproduced
with this defconfig:

BR2_x86_64=y
BR2_x86_corei7=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_X86_64_CORE_I7_GLIBC_BLEEDING_EDGE=y
BR2_FORCE_HOST_BUILD=y
BR2_PACKAGE_STELLARIUM=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SOFTPIPE=y
BR2_PACKAGE_MESA3D_OPENGL_GLX=y
BR2_PACKAGE_QT5=y
BR2_PACKAGE_XORG7=y

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 646ea396c1)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
2026-06-04 12:23:14 +02:00

57 lines
1.8 KiB
Makefile

################################################################################
#
# stellarium
#
################################################################################
STELLARIUM_VERSION = 25.4
STELLARIUM_SOURCE = stellarium-$(STELLARIUM_VERSION).tar.xz
STELLARIUM_SITE = https://github.com/Stellarium/stellarium/releases/download/v$(STELLARIUM_VERSION)
STELLARIUM_LICENSE = GPL-2.0+
STELLARIUM_LICENSE_FILES = COPYING
STELLARIUM_EXTRA_DOWNLOADS = \
https://github.com/mity/md4c/archive/refs/tags/release-0.5.2.tar.gz \
https://github.com/stevengj/nlopt/archive/refs/tags/v2.9.0.tar.gz
# Prevent stellarium from downloading stuff during its configure step
define STELLARIUM_COPY_EXTRA_DOWNLOADS
mkdir -p $(@D)/_deps/md4c-subbuild/md4c-populate-prefix/src/
cp $(STELLARIUM_DL_DIR)/release-0.5.2.tar.gz $(@D)/_deps/md4c-subbuild/md4c-populate-prefix/src/
mkdir -p $(@D)/_deps/nlopt-subbuild/nlopt-populate-prefix/src/
cp $(STELLARIUM_DL_DIR)/v2.9.0.tar.gz $(@D)/_deps/nlopt-subbuild/nlopt-populate-prefix/src/
endef
STELLARIUM_POST_EXTRACT_HOOKS += STELLARIUM_COPY_EXTRA_DOWNLOADS
STELLARIUM_DEPENDENCIES = \
qt5base \
qt5charts \
qt5location \
qt5multimedia \
zlib
STELLARIUM_CONF_OPTS = \
-DENABLE_MEDIA=ON \
-DENABLE_NLS=OFF \
-DENABLE_SHOWMYSKY=OFF \
-DENABLE_QTWEBENGINE=OFF \
-DENABLE_QT6=OFF \
-DENABLE_XLSX=OFF \
-DUSE_PLUGIN_TELESCOPECONTROL=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_GPSD)$(BR2_PACKAGE_QT5SERIALPORT),yy)
STELLARIUM_DEPENDENCIES += gpsd qt5serialport
STELLARIUM_CONF_OPTS += -DENABLE_GPS=ON
else
STELLARIUM_CONF_OPTS += -DENABLE_GPS=OFF
endif
$(eval $(cmake-package))