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
|
|
|
|
2016-01-30 17:17:12 +01:00
|
|
|
LIBRAW_VERSION = 0.17.1
|
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
|
2016-08-27 00:26:26 +02:00
|
|
|
LIBRAW_PATCH = \
|
|
|
|
https://anonscm.debian.org/cgit/pkg-phototools/libraw.git/plain/debian/patches/0001-Fix_gcc6_narrowing_conversion.patch?id=d890937aaca6359df45a66b35e547c94ca564823
|
|
|
|
|
2011-03-11 09:13:34 +01:00
|
|
|
LIBRAW_INSTALL_STAGING = YES
|
2016-01-30 17:17:13 +01:00
|
|
|
# we patch configure.ac
|
|
|
|
LIBRAW_AUTORECONF = YES
|
2014-12-30 08:36:23 +01:00
|
|
|
LIBRAW_CONF_OPTS += \
|
|
|
|
--disable-examples \
|
|
|
|
--disable-openmp \
|
|
|
|
--disable-demosaic-pack-gpl2 \
|
|
|
|
--disable-demosaic-pack-gpl3
|
2017-04-01 21:06:25 +02:00
|
|
|
LIBRAW_LICENSE = LGPL-2.1 or CDDL-1.0 or LibRaw Software License 27032010
|
2014-07-02 14:40:09 +02:00
|
|
|
LIBRAW_LICENSE_FILES = LICENSE.LGPL LICENSE.CDDL LICENSE.LibRaw.pdf README
|
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))
|