python-pathvalidate: bump version to 0.14.1
[buildroot-gz.git] / package / libvips / libvips.mk
blob5f80b2d64ccdcb0777f7b55279188046ba5cff83
1 ################################################################################
3 # libvips
5 ################################################################################
7 LIBVIPS_VERSION_MAJOR = 7.42
8 LIBVIPS_VERSION = $(LIBVIPS_VERSION_MAJOR).2
9 LIBVIPS_SOURCE = vips-$(LIBVIPS_VERSION).tar.gz
10 LIBVIPS_SITE = http://www.vips.ecs.soton.ac.uk/supported/$(LIBVIPS_VERSION_MAJOR)
11 LIBVIPS_LICENSE = LGPLv2.1+
12 LIBVIPS_LICENSE_FILES = COPYING
13 # We're patching gtk-doc.make, so need to autoreconf
14 LIBVIPS_AUTORECONF = YES
16 # Sparc64 compile fails, for all optimization levels except -O0. To
17 # fix the problem, use -O0 with no optimization instead. Bug reported
18 # upstream at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69038.
19 ifeq ($(BR2_sparc64),y)
20 LIBVIPS_CXXFLAGS += -O0
21 endif
23 LIBVIPS_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) $(LIBVIPS_CXXFLAGS)"
25 LIBVIPS_CONF_OPTS = \
26 --disable-introspection \
27 --without-dmalloc \
28 --without-gsf \
29 --without-magick \
30 --without-orc \
31 --without-lcms \
32 --without-OpenEXR \
33 --without-openslide \
34 --without-matio \
35 --without-cfitsio \
36 --without-libwebp \
37 --without-pangoft2 \
38 --without-x \
39 --without-zip \
40 --without-python
41 LIBVIPS_INSTALL_STAGING = YES
42 LIBVIPS_DEPENDENCIES = \
43 host-pkgconf libglib2 \
44 libxml2 $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
46 # --disable-cxx is broken upstream
47 # https://github.com/jcupitt/libvips/issues/231
48 LIBVIPS_CONF_OPTS += --enable-cxx
50 ifeq ($(BR2_PACKAGE_JPEG),y)
51 LIBVIPS_CONF_OPTS += --with-jpeg
52 LIBVIPS_DEPENDENCIES += jpeg
53 else
54 LIBVIPS_CONF_OPTS += --without-jpeg
55 endif
57 ifeq ($(BR2_PACKAGE_LIBPNG),y)
58 LIBVIPS_CONF_OPTS += --with-png
59 LIBVIPS_DEPENDENCIES += libpng
60 else
61 LIBVIPS_CONF_OPTS += --without-png
62 endif
64 ifeq ($(BR2_PACKAGE_TIFF),y)
65 LIBVIPS_CONF_OPTS += --with-tiff
66 LIBVIPS_DEPENDENCIES += tiff
67 else
68 LIBVIPS_CONF_OPTS += --without-tiff
69 endif
71 ifeq ($(BR2_PACKAGE_FFTW),y)
72 LIBVIPS_CONF_OPTS += --with-fftw
73 LIBVIPS_DEPENDENCIES += fftw
74 else
75 LIBVIPS_CONF_OPTS += --without-fftw
76 endif
78 ifeq ($(BR2_PACKAGE_LIBEXIF),y)
79 LIBVIPS_CONF_OPTS += --with-libexif
80 LIBVIPS_DEPENDENCIES += libexif
81 else
82 LIBVIPS_CONF_OPTS += --without-libexif
83 endif
85 $(eval $(autotools-package))