xref: /OK3568_Linux_fs/buildroot/package/poppler/poppler.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# poppler
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunPOPPLER_VERSION = 0.84.0
8*4882a593SmuzhiyunPOPPLER_SOURCE = poppler-$(POPPLER_VERSION).tar.xz
9*4882a593SmuzhiyunPOPPLER_SITE = http://poppler.freedesktop.org
10*4882a593SmuzhiyunPOPPLER_DEPENDENCIES = fontconfig host-pkgconf
11*4882a593SmuzhiyunPOPPLER_LICENSE = GPL-2.0+
12*4882a593SmuzhiyunPOPPLER_LICENSE_FILES = COPYING
13*4882a593SmuzhiyunPOPPLER_CPE_ID_VENDOR = freedesktop
14*4882a593SmuzhiyunPOPPLER_INSTALL_STAGING = YES
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunPOPPLER_CONF_OPTS = \
17*4882a593Smuzhiyun	-DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
18*4882a593Smuzhiyun	-DBUILD_GTK_TESTS=OFF \
19*4882a593Smuzhiyun	-DBUILD_QT5_TESTS=OFF \
20*4882a593Smuzhiyun	-DBUILD_CPP_TESTS=OFF \
21*4882a593Smuzhiyun	-DENABLE_GTK_DOC=OFF
22*4882a593Smuzhiyun
23*4882a593Smuzhiyunifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
24*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
25*4882a593Smuzhiyunendif
26*4882a593Smuzhiyun
27*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_BOOST),y)
28*4882a593SmuzhiyunPOPPLER_DEPENDENCIES += boost
29*4882a593Smuzhiyunendif
30*4882a593Smuzhiyun
31*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_JPEG),y)
32*4882a593SmuzhiyunPOPPLER_DEPENDENCIES += jpeg
33*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_DCTDECODER=libjpeg -DWITH_JPEG=ON
34*4882a593Smuzhiyunelse
35*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_DCTDECODER=none -DWITH_JPEG=OFF
36*4882a593Smuzhiyunendif
37*4882a593Smuzhiyun
38*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
39*4882a593SmuzhiyunPOPPLER_DEPENDENCIES += gobject-introspection
40*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_GOBJECT_INTROSPECTION=ON
41*4882a593Smuzhiyunelse
42*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_GOBJECT_INTROSPECTION=OFF
43*4882a593Smuzhiyunendif
44*4882a593Smuzhiyun
45*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBPNG),y)
46*4882a593SmuzhiyunPOPPLER_DEPENDENCIES += libpng
47*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DWITH_PNG=ON
48*4882a593Smuzhiyunelse
49*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DWITH_PNG=OFF
50*4882a593Smuzhiyunendif
51*4882a593Smuzhiyun
52*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LCMS2),y)
53*4882a593SmuzhiyunPOPPLER_DEPENDENCIES += lcms2
54*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_CMS=lcms2
55*4882a593Smuzhiyunelse
56*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_CMS=none
57*4882a593Smuzhiyunendif
58*4882a593Smuzhiyun
59*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OPENJPEG),y)
60*4882a593SmuzhiyunPOPPLER_DEPENDENCIES += openjpeg
61*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_LIBOPENJPEG=openjpeg2
62*4882a593Smuzhiyunelse
63*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_LIBOPENJPEG=none
64*4882a593Smuzhiyunendif
65*4882a593Smuzhiyun
66*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBCURL),y)
67*4882a593SmuzhiyunPOPPLER_DEPENDENCIES += libcurl
68*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_LIBCURL=ON
69*4882a593Smuzhiyunelse
70*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_LIBCURL=OFF
71*4882a593Smuzhiyunendif
72*4882a593Smuzhiyun
73*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_POPPLER_QT5),y)
74*4882a593SmuzhiyunPOPPLER_DEPENDENCIES += qt5base
75*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_QT5=ON
76*4882a593Smuzhiyunelse
77*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_QT5=OFF
78*4882a593Smuzhiyunendif
79*4882a593Smuzhiyun
80*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_POPPLER_UTILS),y)
81*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_UTILS=ON
82*4882a593Smuzhiyunelse
83*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_UTILS=OFF
84*4882a593Smuzhiyunendif
85*4882a593Smuzhiyun
86*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_ZLIB),y)
87*4882a593SmuzhiyunPOPPLER_DEPENDENCIES += zlib
88*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_ZLIB=ON
89*4882a593Smuzhiyunelse
90*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_ZLIB=OFF
91*4882a593Smuzhiyunendif
92*4882a593Smuzhiyun
93*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_CAIRO),y)
94*4882a593SmuzhiyunPOPPLER_DEPENDENCIES += cairo
95*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DWITH_Cairo=ON
96*4882a593Smuzhiyunelse
97*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DWITH_Cairo=OFF
98*4882a593Smuzhiyunendif
99*4882a593Smuzhiyun
100*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_TIFF),y)
101*4882a593SmuzhiyunPOPPLER_DEPENDENCIES += tiff
102*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DWITH_TIFF=ON
103*4882a593Smuzhiyunelse
104*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DWITH_TIFF=OFF
105*4882a593Smuzhiyunendif
106*4882a593Smuzhiyun
107*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBGLIB2),y)
108*4882a593SmuzhiyunPOPPLER_DEPENDENCIES += libglib2
109*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_GLIB=ON
110*4882a593Smuzhiyunelse
111*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DENABLE_GLIB=OFF
112*4882a593Smuzhiyunendif
113*4882a593Smuzhiyun
114*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBNSS),y)
115*4882a593SmuzhiyunPOPPLER_DEPENDENCIES += libnss
116*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DWITH_NSS3=ON
117*4882a593Smuzhiyunelse
118*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DWITH_NSS3=OFF
119*4882a593Smuzhiyunendif
120*4882a593Smuzhiyun
121*4882a593Smuzhiyunifeq ($(BR2_SOFT_FLOAT),y)
122*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DUSE_FLOAT=OFF
123*4882a593Smuzhiyunelse
124*4882a593SmuzhiyunPOPPLER_CONF_OPTS += -DUSE_FLOAT=ON
125*4882a593Smuzhiyunendif
126*4882a593Smuzhiyun
127*4882a593Smuzhiyun$(eval $(cmake-package))
128