package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / openjpeg / openjpeg.mk
blobc613ba817e82736b6500984136ba2faa58032d99
1 ################################################################################
3 # openjpeg
5 ################################################################################
7 OPENJPEG_VERSION = 1.5.2
8 OPENJPEG_SITE = http://downloads.sourceforge.net/project/openjpeg.mirror/$(OPENJPEG_VERSION)
9 OPENJPEG_LICENSE = BSD-2c
10 OPENJPEG_LICENSE_FILES = LICENSE
11 # tarball does not contain the generated files
12 OPENJPEG_AUTORECONF = YES
13 OPENJPEG_INSTALL_STAGING = YES
14 OPENJPEG_DEPENDENCIES = host-pkgconf
15 OPENJPEG_CONF_OPTS = --disable-lcms1
17 ifeq ($(BR2_PACKAGE_LIBPNG),y)
18 OPENJPEG_DEPENDENCIES += libpng
19 OPENJPEG_CONF_OPTS += --enable-png
20 else
21 OPENJPEG_CONF_OPTS += --disable-png
22 endif
24 ifeq ($(BR2_PACKAGE_TIFF),y)
25 OPENJPEG_DEPENDENCIES += tiff
26 OPENJPEG_CONF_OPTS += --enable-tiff
27 else
28 OPENJPEG_CONF_OPTS += --disable-tiff
29 endif
31 ifeq ($(BR2_PACKAGE_LCMS2),y)
32 OPENJPEG_DEPENDENCIES += lcms2
33 OPENJPEG_CONF_OPTS += --enable-lcms2
34 else
35 OPENJPEG_CONF_OPTS += --disable-lcms2
36 endif
38 $(eval $(autotools-package))