xref: /OK3568_Linux_fs/buildroot/package/leptonica/leptonica.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# leptonica
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunLEPTONICA_VERSION = 1.82.0
8*4882a593SmuzhiyunLEPTONICA_SITE = http://www.leptonica.org/source
9*4882a593SmuzhiyunLEPTONICA_LICENSE = BSD-2-Clause
10*4882a593SmuzhiyunLEPTONICA_LICENSE_FILES = leptonica-license.txt
11*4882a593SmuzhiyunLEPTONICA_CPE_ID_VENDOR = leptonica
12*4882a593SmuzhiyunLEPTONICA_INSTALL_STAGING = YES
13*4882a593SmuzhiyunLEPTONICA_DEPENDENCIES = host-pkgconf
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunLEPTONICA_CONF_OPTS += --disable-programs
16*4882a593Smuzhiyun
17*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_GIFLIB),y)
18*4882a593SmuzhiyunLEPTONICA_DEPENDENCIES += giflib
19*4882a593SmuzhiyunLEPTONICA_CONF_OPTS += --with-giflib
20*4882a593Smuzhiyunelse
21*4882a593SmuzhiyunLEPTONICA_CONF_OPTS += --without-giflib
22*4882a593Smuzhiyunendif
23*4882a593Smuzhiyun
24*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_JPEG),y)
25*4882a593SmuzhiyunLEPTONICA_DEPENDENCIES += jpeg
26*4882a593SmuzhiyunLEPTONICA_CONF_OPTS += --with-jpeg
27*4882a593Smuzhiyunelse
28*4882a593SmuzhiyunLEPTONICA_CONF_OPTS += --without-jpeg
29*4882a593Smuzhiyunendif
30*4882a593Smuzhiyun
31*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBPNG),y)
32*4882a593SmuzhiyunLEPTONICA_DEPENDENCIES += libpng
33*4882a593SmuzhiyunLEPTONICA_CONF_OPTS += --with-libpng
34*4882a593Smuzhiyunelse
35*4882a593SmuzhiyunLEPTONICA_CONF_OPTS += --without-libpng
36*4882a593Smuzhiyunendif
37*4882a593Smuzhiyun
38*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OPENJPEG),y)
39*4882a593SmuzhiyunLEPTONICA_DEPENDENCIES += openjpeg
40*4882a593SmuzhiyunLEPTONICA_CONF_OPTS += --with-libopenjpeg
41*4882a593Smuzhiyunelse
42*4882a593SmuzhiyunLEPTONICA_CONF_OPTS += --without-libopenjpeg
43*4882a593Smuzhiyunendif
44*4882a593Smuzhiyun
45*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_TIFF),y)
46*4882a593SmuzhiyunLEPTONICA_DEPENDENCIES += tiff
47*4882a593SmuzhiyunLEPTONICA_CONF_OPTS += --with-libtiff
48*4882a593Smuzhiyunelse
49*4882a593SmuzhiyunLEPTONICA_CONF_OPTS += --without-libtiff
50*4882a593Smuzhiyunendif
51*4882a593Smuzhiyun
52*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_WEBP),y)
53*4882a593SmuzhiyunLEPTONICA_DEPENDENCIES += webp
54*4882a593SmuzhiyunLEPTONICA_CONF_OPTS += --with-libwebp
55*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_WEBP_DEMUX)$(BR2_PACKAGE_WEBP_MUX),yy)
56*4882a593SmuzhiyunLEPTONICA_CONF_OPTS += --with-libwebpmux
57*4882a593Smuzhiyunelse
58*4882a593SmuzhiyunLEPTONICA_CONF_OPTS += --without-libwebpmux
59*4882a593Smuzhiyunendif
60*4882a593Smuzhiyunelse
61*4882a593SmuzhiyunLEPTONICA_CONF_OPTS += \
62*4882a593Smuzhiyun	--without-libwebp \
63*4882a593Smuzhiyun	--without-libwebpmux
64*4882a593Smuzhiyunendif
65*4882a593Smuzhiyun
66*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_ZLIB),y)
67*4882a593SmuzhiyunLEPTONICA_DEPENDENCIES += zlib
68*4882a593SmuzhiyunLEPTONICA_CONF_OPTS += --with-zlib
69*4882a593Smuzhiyunelse
70*4882a593SmuzhiyunLEPTONICA_CONF_OPTS += --without-zlib
71*4882a593Smuzhiyunendif
72*4882a593Smuzhiyun
73*4882a593Smuzhiyun$(eval $(autotools-package))
74