1 ################################################################################
5 ################################################################################
7 LIBRAW_VERSION
= 0.17.1
8 LIBRAW_SOURCE
= LibRaw-
$(LIBRAW_VERSION
).
tar.gz
9 LIBRAW_SITE
= http
://www.libraw.org
/data
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
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
34 LIBRAW_CONF_OPTS
+= --disable-jasper
37 ifeq ($(BR2_PACKAGE_JPEG
),y
)
38 LIBRAW_CONF_OPTS
+= --enable-jpeg
39 LIBRAW_DEPENDENCIES
+= jpeg
41 LIBRAW_CONF_OPTS
+= --disable-jpeg
44 ifeq ($(BR2_PACKAGE_LCMS2
),y
)
45 LIBRAW_CONF_OPTS
+= --enable-lcms
46 LIBRAW_DEPENDENCIES
+= lcms2 host-pkgconf
48 LIBRAW_CONF_OPTS
+= --disable-lcms
51 $(eval
$(autotools-package
))