mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 00:04:06 -09:00
Buildroot commit72c7d99e22switched the build system to meson which causes an error during configure: output/build/libvips-8.17.2/meson.build:108:4: ERROR: Problem encountered: GModule is not supported on your system, please reconfigure with -Dmodules=disabled using this defconfig: BR2_arm=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-arm-full-static-2020.11.2.tar.bz2" BR2_TOOLCHAIN_EXTERNAL_GCC_9=y BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_4=y BR2_TOOLCHAIN_EXTERNAL_LOCALE=y # BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG is not set BR2_TOOLCHAIN_EXTERNAL_CXX=y BR2_STATIC_LIBS=y BR2_PACKAGE_LIBVIPS=y Added configure options for -Dmodules to fix the problem which was not yet caught by the autobuilders. Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Julien Olivain <ju.o@free.fr> (cherry picked from commit86d0fcd77b) Signed-off-by: Thomas Perale <thomas.perale@mind.be>
153 lines
3.6 KiB
Makefile
153 lines
3.6 KiB
Makefile
################################################################################
|
|
#
|
|
# libvips
|
|
#
|
|
################################################################################
|
|
|
|
LIBVIPS_VERSION = 8.17.2
|
|
LIBVIPS_SOURCE = vips-$(LIBVIPS_VERSION).tar.xz
|
|
LIBVIPS_SITE = https://github.com/libvips/libvips/releases/download/v$(LIBVIPS_VERSION)
|
|
LIBVIPS_LICENSE = LGPL-2.1+
|
|
LIBVIPS_LICENSE_FILES = LICENSE
|
|
LIBVIPS_CPE_ID_VENDOR = libvips
|
|
|
|
# Sparc64 compile fails, for all optimization levels except -O0. To
|
|
# fix the problem, use -O0 with no optimization instead. Bug reported
|
|
# upstream at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69038.
|
|
ifeq ($(BR2_sparc64),y)
|
|
LIBVIPS_CXXFLAGS += -O0
|
|
endif
|
|
|
|
LIBVIPS_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) $(LIBVIPS_CXXFLAGS)" \
|
|
LIBS=$(TARGET_NLS_LIBS)
|
|
|
|
LIBVIPS_CONF_OPTS = \
|
|
-Dopenexr=disabled \
|
|
-Dopenslide=disabled \
|
|
-Dcfitsio=disabled \
|
|
-Dpangocairo=disabled
|
|
LIBVIPS_INSTALL_STAGING = YES
|
|
LIBVIPS_DEPENDENCIES = \
|
|
host-pkgconf expat libglib2 \
|
|
$(TARGET_NLS_DEPENDENCIES)
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),)
|
|
LIBVIPS_CONF_OPTS += -Dmodules=enabled
|
|
else
|
|
LIBVIPS_CONF_OPTS += -Dmodules=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
|
|
LIBVIPS_CONF_OPTS += -Dintrospection=enabled
|
|
LIBVIPS_DEPENDENCIES += gobject-introspection
|
|
else
|
|
LIBVIPS_CONF_OPTS += -Dintrospection=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_IMAGEMAGICK),y)
|
|
LIBVIPS_CONF_OPTS += \
|
|
-Dmagick=enabled \
|
|
-Dmagick-package=MagickCore
|
|
LIBVIPS_DEPENDENCIES += imagemagick
|
|
else ifeq ($(BR2_PACKAGE_GRAPHICSMAGICK),y)
|
|
LIBVIPS_CONF_OPTS += \
|
|
-Dmagick=enabled \
|
|
-Dmagick-package=GraphicsMagick
|
|
LIBVIPS_DEPENDENCIES += graphicsmagick
|
|
else
|
|
LIBVIPS_CONF_OPTS += -Dmagick=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
LIBVIPS_CONF_OPTS += -Djpeg=enabled
|
|
LIBVIPS_DEPENDENCIES += jpeg
|
|
else
|
|
LIBVIPS_CONF_OPTS += -Djpeg=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LCMS2),y)
|
|
LIBVIPS_CONF_OPTS += -Dlcms=enabled
|
|
LIBVIPS_DEPENDENCIES += lcms2
|
|
else
|
|
LIBVIPS_CONF_OPTS += -Dlcms=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
LIBVIPS_CONF_OPTS += -Dpng=enabled
|
|
LIBVIPS_DEPENDENCIES += libpng
|
|
else
|
|
LIBVIPS_CONF_OPTS += -Dpng=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBRSVG),y)
|
|
LIBVIPS_CONF_OPTS += -Drsvg=enabled
|
|
LIBVIPS_DEPENDENCIES += librsvg
|
|
else
|
|
LIBVIPS_CONF_OPTS += -Drsvg=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_MATIO),y)
|
|
LIBVIPS_CONF_OPTS += -Dmatio=enabled
|
|
LIBVIPS_DEPENDENCIES += matio
|
|
else
|
|
LIBVIPS_CONF_OPTS += -Dmatio=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ORC),y)
|
|
LIBVIPS_CONF_OPTS += -Dorc=enabled
|
|
LIBVIPS_DEPENDENCIES += orc
|
|
else
|
|
LIBVIPS_CONF_OPTS += -Dorc=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_POPPLER),y)
|
|
LIBVIPS_CONF_OPTS += -Dpoppler=enabled
|
|
LIBVIPS_DEPENDENCIES += poppler
|
|
else
|
|
LIBVIPS_CONF_OPTS += -Dpoppler=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TIFF),y)
|
|
LIBVIPS_CONF_OPTS += -Dtiff=enabled
|
|
LIBVIPS_DEPENDENCIES += tiff
|
|
else
|
|
LIBVIPS_CONF_OPTS += -Dtiff=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_FFTW_DOUBLE),y)
|
|
LIBVIPS_CONF_OPTS += -Dfftw=enabled
|
|
LIBVIPS_DEPENDENCIES += fftw-double
|
|
else
|
|
LIBVIPS_CONF_OPTS += -Dfftw=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEXIF),y)
|
|
LIBVIPS_CONF_OPTS += -Dexif=enabled
|
|
LIBVIPS_DEPENDENCIES += libexif
|
|
else
|
|
LIBVIPS_CONF_OPTS += -Dexif=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBHEIF),y)
|
|
LIBVIPS_CONF_OPTS += -Dheif=enabled
|
|
LIBVIPS_DEPENDENCIES += libheif
|
|
else
|
|
LIBVIPS_CONF_OPTS += -Dheif=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_WEBP_DEMUX)$(BR2_PACKAGE_WEBP_MUX),yy)
|
|
LIBVIPS_CONF_OPTS += -Dwebp=enabled
|
|
LIBVIPS_DEPENDENCIES += webp
|
|
else
|
|
LIBVIPS_CONF_OPTS += -Dwebp=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
LIBVIPS_CONF_OPTS += -Dzlib=enabled
|
|
LIBVIPS_DEPENDENCIES += zlib
|
|
else
|
|
LIBVIPS_CONF_OPTS += -Dzlib=disabled
|
|
endif
|
|
|
|
$(eval $(meson-package))
|