libraw.mk 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ################################################################################
  2. #
  3. # libraw
  4. #
  5. ################################################################################
  6. LIBRAW_VERSION = 0.21.2
  7. LIBRAW_SOURCE = LibRaw-$(LIBRAW_VERSION).tar.gz
  8. LIBRAW_SITE = http://www.libraw.org/data
  9. LIBRAW_INSTALL_STAGING = YES
  10. LIBRAW_CONF_OPTS += \
  11. --disable-examples \
  12. --disable-openmp
  13. LIBRAW_LICENSE = LGPL-2.1 or CDDL-1.0
  14. LIBRAW_LICENSE_FILES = LICENSE.LGPL LICENSE.CDDL README.md
  15. LIBRAW_CPE_ID_VENDOR = libraw
  16. LIBRAW_DEPENDENCIES = host-pkgconf
  17. LIBRAW_CXXFLAGS = $(TARGET_CXXFLAGS)
  18. LIBRAW_CONF_ENV = CXXFLAGS="$(LIBRAW_CXXFLAGS)"
  19. ifeq ($(BR2_PACKAGE_JASPER),y)
  20. LIBRAW_CONF_OPTS += --enable-jasper
  21. LIBRAW_DEPENDENCIES += jasper
  22. # glibc prior to 2.18 only defines constants such as SIZE_MAX or
  23. # INT_FAST32_MAX for C++ code if __STDC_LIMIT_MACROS is defined
  24. LIBRAW_CXXFLAGS += -D__STDC_LIMIT_MACROS
  25. else
  26. LIBRAW_CONF_OPTS += --disable-jasper
  27. endif
  28. ifeq ($(BR2_PACKAGE_JPEG),y)
  29. LIBRAW_CONF_OPTS += --enable-jpeg
  30. LIBRAW_DEPENDENCIES += jpeg
  31. else
  32. LIBRAW_CONF_OPTS += --disable-jpeg
  33. endif
  34. ifeq ($(BR2_PACKAGE_LCMS2),y)
  35. LIBRAW_CONF_OPTS += --enable-lcms
  36. LIBRAW_DEPENDENCIES += lcms2 host-pkgconf
  37. else
  38. LIBRAW_CONF_OPTS += --disable-lcms
  39. endif
  40. ifeq ($(BR2_PACKAGE_ZLIB),y)
  41. LIBRAW_CONF_OPTS += --enable-zlib
  42. LIBRAW_DEPENDENCIES += zlib
  43. else
  44. LIBRAW_CONF_OPTS += --disable-zlib
  45. endif
  46. $(eval $(autotools-package))