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
|
|
|
|
2019-10-06 16:26:29 +02:00
|
|
|
LIBRAW_VERSION = 0.19.5
|
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 \
|
|
|
|
--disable-openmp \
|
|
|
|
--disable-demosaic-pack-gpl2 \
|
|
|
|
--disable-demosaic-pack-gpl3
|
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
|
2016-02-12 10:19:31 +01:00
|
|
|
LIBRAW_DEPENDENCIES = host-pkgconf
|
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
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|