libvips.mk 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ################################################################################
  2. #
  3. # libvips
  4. #
  5. ################################################################################
  6. LIBVIPS_VERSION = 8.8.3
  7. LIBVIPS_SOURCE = vips-$(LIBVIPS_VERSION).tar.gz
  8. LIBVIPS_SITE = https://github.com/libvips/libvips/releases/download/v$(LIBVIPS_VERSION)
  9. LIBVIPS_LICENSE = LGPL-2.1+
  10. LIBVIPS_LICENSE_FILES = COPYING
  11. # Sparc64 compile fails, for all optimization levels except -O0. To
  12. # fix the problem, use -O0 with no optimization instead. Bug reported
  13. # upstream at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69038.
  14. ifeq ($(BR2_sparc64),y)
  15. LIBVIPS_CXXFLAGS += -O0
  16. endif
  17. LIBVIPS_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) $(LIBVIPS_CXXFLAGS)" \
  18. LIBS=$(TARGET_NLS_LIBS)
  19. LIBVIPS_CONF_OPTS = \
  20. --disable-introspection \
  21. --without-dmalloc \
  22. --without-gsf \
  23. --without-magick \
  24. --without-orc \
  25. --without-lcms \
  26. --without-OpenEXR \
  27. --without-openslide \
  28. --without-matio \
  29. --without-cfitsio \
  30. --without-libwebp \
  31. --without-pangoft2 \
  32. --without-x \
  33. --without-zip \
  34. --without-python
  35. LIBVIPS_INSTALL_STAGING = YES
  36. LIBVIPS_DEPENDENCIES = \
  37. host-pkgconf expat libglib2 \
  38. $(TARGET_NLS_DEPENDENCIES)
  39. ifeq ($(BR2_PACKAGE_JPEG),y)
  40. LIBVIPS_CONF_OPTS += --with-jpeg
  41. LIBVIPS_DEPENDENCIES += jpeg
  42. else
  43. LIBVIPS_CONF_OPTS += --without-jpeg
  44. endif
  45. ifeq ($(BR2_PACKAGE_LIBPNG),y)
  46. LIBVIPS_CONF_OPTS += --with-png
  47. LIBVIPS_DEPENDENCIES += libpng
  48. else
  49. LIBVIPS_CONF_OPTS += --without-png
  50. endif
  51. ifeq ($(BR2_PACKAGE_TIFF),y)
  52. LIBVIPS_CONF_OPTS += --with-tiff
  53. LIBVIPS_DEPENDENCIES += tiff
  54. else
  55. LIBVIPS_CONF_OPTS += --without-tiff
  56. endif
  57. ifeq ($(BR2_PACKAGE_FFTW_DOUBLE),y)
  58. LIBVIPS_CONF_OPTS += --with-fftw
  59. LIBVIPS_DEPENDENCIES += fftw-double
  60. else
  61. LIBVIPS_CONF_OPTS += --without-fftw
  62. endif
  63. ifeq ($(BR2_PACKAGE_LIBEXIF),y)
  64. LIBVIPS_CONF_OPTS += --with-libexif
  65. LIBVIPS_DEPENDENCIES += libexif
  66. else
  67. LIBVIPS_CONF_OPTS += --without-libexif
  68. endif
  69. $(eval $(autotools-package))