2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-03-11 09:13:34 +01:00
|
|
|
#
|
|
|
|
# libraw
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-03-11 09:13:34 +01:00
|
|
|
|
2020-10-19 23:34:27 +02:00
|
|
|
LIBRAW_VERSION = 0.20.2
|
2011-03-11 09:13:34 +01:00
|
|
|
LIBRAW_SOURCE = LibRaw-$(LIBRAW_VERSION).tar.gz
|
2014-07-31 10:46:58 +02:00
|
|
|
LIBRAW_SITE = http://www.libraw.org/data
|
2011-03-11 09:13:34 +01:00
|
|
|
LIBRAW_INSTALL_STAGING = YES
|
2014-12-30 08:36:23 +01:00
|
|
|
LIBRAW_CONF_OPTS += \
|
|
|
|
--disable-examples \
|
2020-08-27 23:36:57 +02:00
|
|
|
--disable-openmp
|
2018-05-30 22:05:19 +02:00
|
|
|
LIBRAW_LICENSE = LGPL-2.1 or CDDL-1.0
|
2019-03-01 22:27:03 +01:00
|
|
|
LIBRAW_LICENSE_FILES = LICENSE.LGPL LICENSE.CDDL README.md
|
2021-02-07 13:39:19 +01:00
|
|
|
LIBRAW_CPE_ID_VENDOR = libraw
|
2016-02-12 10:19:31 +01:00
|
|
|
LIBRAW_DEPENDENCIES = host-pkgconf
|
2020-10-28 12:35:40 +01:00
|
|
|
# https://github.com/LibRaw/LibRaw/issues/353
|
|
|
|
LIBRAW_AUTORECONF = YES
|
2017-02-16 09:23:51 +01:00
|
|
|
LIBRAW_CXXFLAGS = $(TARGET_CXXFLAGS)
|
|
|
|
LIBRAW_CONF_ENV = CXXFLAGS="$(LIBRAW_CXXFLAGS)"
|
2011-03-11 09:13:34 +01:00
|
|
|
|
2016-01-30 17:17:14 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_JASPER),y)
|
|
|
|
LIBRAW_CONF_OPTS += --enable-jasper
|
|
|
|
LIBRAW_DEPENDENCIES += jasper
|
2017-02-16 09:23:51 +01:00
|
|
|
# glibc prior to 2.18 only defines constants such as SIZE_MAX or
|
|
|
|
# INT_FAST32_MAX for C++ code if __STDC_LIMIT_MACROS is defined
|
|
|
|
LIBRAW_CXXFLAGS += -D__STDC_LIMIT_MACROS
|
2016-01-30 17:17:14 +01:00
|
|
|
else
|
|
|
|
LIBRAW_CONF_OPTS += --disable-jasper
|
|
|
|
endif
|
|
|
|
|
2016-01-30 17:17:15 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
|
|
LIBRAW_CONF_OPTS += --enable-jpeg
|
|
|
|
LIBRAW_DEPENDENCIES += jpeg
|
|
|
|
else
|
|
|
|
LIBRAW_CONF_OPTS += --disable-jpeg
|
|
|
|
endif
|
|
|
|
|
2016-01-30 17:17:16 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LCMS2),y)
|
|
|
|
LIBRAW_CONF_OPTS += --enable-lcms
|
|
|
|
LIBRAW_DEPENDENCIES += lcms2 host-pkgconf
|
|
|
|
else
|
|
|
|
LIBRAW_CONF_OPTS += --disable-lcms
|
|
|
|
endif
|
|
|
|
|
2020-09-06 14:53:51 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
LIBRAW_CONF_OPTS += --enable-zlib
|
|
|
|
LIBRAW_DEPENDENCIES += zlib
|
|
|
|
else
|
|
|
|
LIBRAW_CONF_OPTS += --disable-zlib
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|