2015-02-02 10:05:42 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libvips
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-10-06 16:54:17 +02:00
|
|
|
LIBVIPS_VERSION = 8.8.3
|
2015-02-02 10:05:42 +01:00
|
|
|
LIBVIPS_SOURCE = vips-$(LIBVIPS_VERSION).tar.gz
|
2019-08-09 12:46:55 +02:00
|
|
|
LIBVIPS_SITE = https://github.com/libvips/libvips/releases/download/v$(LIBVIPS_VERSION)
|
2017-03-30 15:43:34 +02:00
|
|
|
LIBVIPS_LICENSE = LGPL-2.1+
|
2015-02-02 10:05:42 +01:00
|
|
|
LIBVIPS_LICENSE_FILES = COPYING
|
2015-11-23 22:42:22 +01:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2019-07-05 22:50:48 +02:00
|
|
|
LIBVIPS_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) $(LIBVIPS_CXXFLAGS)" \
|
|
|
|
LIBS=$(TARGET_NLS_LIBS)
|
2015-11-23 22:42:22 +01:00
|
|
|
|
2015-02-02 10:05:42 +01:00
|
|
|
LIBVIPS_CONF_OPTS = \
|
|
|
|
--disable-introspection \
|
|
|
|
--without-dmalloc \
|
|
|
|
--without-gsf \
|
|
|
|
--without-magick \
|
|
|
|
--without-orc \
|
|
|
|
--without-lcms \
|
|
|
|
--without-OpenEXR \
|
|
|
|
--without-openslide \
|
|
|
|
--without-matio \
|
|
|
|
--without-cfitsio \
|
|
|
|
--without-libwebp \
|
|
|
|
--without-pangoft2 \
|
|
|
|
--without-x \
|
|
|
|
--without-zip \
|
|
|
|
--without-python
|
|
|
|
LIBVIPS_INSTALL_STAGING = YES
|
|
|
|
LIBVIPS_DEPENDENCIES = \
|
2019-08-09 12:46:55 +02:00
|
|
|
host-pkgconf expat libglib2 \
|
|
|
|
$(TARGET_NLS_DEPENDENCIES)
|
2015-02-02 10:05:42 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
|
|
LIBVIPS_CONF_OPTS += --with-jpeg
|
|
|
|
LIBVIPS_DEPENDENCIES += jpeg
|
|
|
|
else
|
|
|
|
LIBVIPS_CONF_OPTS += --without-jpeg
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
|
|
LIBVIPS_CONF_OPTS += --with-png
|
|
|
|
LIBVIPS_DEPENDENCIES += libpng
|
|
|
|
else
|
|
|
|
LIBVIPS_CONF_OPTS += --without-png
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TIFF),y)
|
|
|
|
LIBVIPS_CONF_OPTS += --with-tiff
|
|
|
|
LIBVIPS_DEPENDENCIES += tiff
|
|
|
|
else
|
|
|
|
LIBVIPS_CONF_OPTS += --without-tiff
|
|
|
|
endif
|
|
|
|
|
2019-01-21 14:51:07 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FFTW_DOUBLE),y)
|
2015-02-02 10:05:42 +01:00
|
|
|
LIBVIPS_CONF_OPTS += --with-fftw
|
2019-01-21 14:51:07 +01:00
|
|
|
LIBVIPS_DEPENDENCIES += fftw-double
|
2015-02-02 10:05:42 +01:00
|
|
|
else
|
|
|
|
LIBVIPS_CONF_OPTS += --without-fftw
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEXIF),y)
|
|
|
|
LIBVIPS_CONF_OPTS += --with-libexif
|
|
|
|
LIBVIPS_DEPENDENCIES += libexif
|
|
|
|
else
|
|
|
|
LIBVIPS_CONF_OPTS += --without-libexif
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|