1 ################################################################################
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
23 LIBVIPS_CONF_ENV
+= CXXFLAGS
="$(TARGET_CXXFLAGS) $(LIBVIPS_CXXFLAGS)"
26 --disable-introspection \
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
54 LIBVIPS_CONF_OPTS
+= --without-jpeg
57 ifeq ($(BR2_PACKAGE_LIBPNG
),y
)
58 LIBVIPS_CONF_OPTS
+= --with-png
59 LIBVIPS_DEPENDENCIES
+= libpng
61 LIBVIPS_CONF_OPTS
+= --without-png
64 ifeq ($(BR2_PACKAGE_TIFF
),y
)
65 LIBVIPS_CONF_OPTS
+= --with-tiff
66 LIBVIPS_DEPENDENCIES
+= tiff
68 LIBVIPS_CONF_OPTS
+= --without-tiff
71 ifeq ($(BR2_PACKAGE_FFTW
),y
)
72 LIBVIPS_CONF_OPTS
+= --with-fftw
73 LIBVIPS_DEPENDENCIES
+= fftw
75 LIBVIPS_CONF_OPTS
+= --without-fftw
78 ifeq ($(BR2_PACKAGE_LIBEXIF
),y
)
79 LIBVIPS_CONF_OPTS
+= --with-libexif
80 LIBVIPS_DEPENDENCIES
+= libexif
82 LIBVIPS_CONF_OPTS
+= --without-libexif
85 $(eval
$(autotools-package
))