python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / libraw / libraw.mk
blobf78ce1e0cbd593fcfefdfc546d9daa798d8baaab
1 ################################################################################
3 # libraw
5 ################################################################################
7 LIBRAW_VERSION = 0.17.1
8 LIBRAW_SOURCE = LibRaw-$(LIBRAW_VERSION).tar.gz
9 LIBRAW_SITE = http://www.libraw.org/data
10 LIBRAW_PATCH = \
11 https://anonscm.debian.org/cgit/pkg-phototools/libraw.git/plain/debian/patches/0001-Fix_gcc6_narrowing_conversion.patch?id=d890937aaca6359df45a66b35e547c94ca564823
13 LIBRAW_INSTALL_STAGING = YES
14 # we patch configure.ac
15 LIBRAW_AUTORECONF = YES
16 LIBRAW_CONF_OPTS += \
17 --disable-examples \
18 --disable-openmp \
19 --disable-demosaic-pack-gpl2 \
20 --disable-demosaic-pack-gpl3
21 LIBRAW_LICENSE = LGPLv2.1 or CDDL 1.0 or LibRaw Software License 27032010
22 LIBRAW_LICENSE_FILES = LICENSE.LGPL LICENSE.CDDL LICENSE.LibRaw.pdf README
23 LIBRAW_DEPENDENCIES = host-pkgconf
24 LIBRAW_CXXFLAGS = $(TARGET_CXXFLAGS)
25 LIBRAW_CONF_ENV = CXXFLAGS="$(LIBRAW_CXXFLAGS)"
27 ifeq ($(BR2_PACKAGE_JASPER),y)
28 LIBRAW_CONF_OPTS += --enable-jasper
29 LIBRAW_DEPENDENCIES += jasper
30 # glibc prior to 2.18 only defines constants such as SIZE_MAX or
31 # INT_FAST32_MAX for C++ code if __STDC_LIMIT_MACROS is defined
32 LIBRAW_CXXFLAGS += -D__STDC_LIMIT_MACROS
33 else
34 LIBRAW_CONF_OPTS += --disable-jasper
35 endif
37 ifeq ($(BR2_PACKAGE_JPEG),y)
38 LIBRAW_CONF_OPTS += --enable-jpeg
39 LIBRAW_DEPENDENCIES += jpeg
40 else
41 LIBRAW_CONF_OPTS += --disable-jpeg
42 endif
44 ifeq ($(BR2_PACKAGE_LCMS2),y)
45 LIBRAW_CONF_OPTS += --enable-lcms
46 LIBRAW_DEPENDENCIES += lcms2 host-pkgconf
47 else
48 LIBRAW_CONF_OPTS += --disable-lcms
49 endif
51 $(eval $(autotools-package))