summaryrefslogtreecommitdiffstats
path: root/rules/poppler.in
blob: 41f9b8a4486b757cacbc98d49ea856af8bc6dc9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
## SECTION=multimedia_gtk

menuconfig POPPLER
	tristate
	prompt "poppler                       "
	select HOST_CMAKE
	select FONTCONFIG
	select FREETYPE
	select LIBC_PTHREAD
	select HOST_GETTEXT
	select POPPLER_DATA			if POPPLER_WITH_DATA
	select GLIB				if POPPLER_GLIB
	select HOST_GLIB			if POPPLER_GLIB
	select GOBJECT_INTROSPECTION		if POPPLER_INTROSPECTION
	select LIBPNG				if POPPLER_PNG
	select LIBJPEG				if POPPLER_JPEG
	select CAIRO				if POPPLER_CAIRO
	select CAIRO_FREETYPE			if POPPLER_CAIRO
	select ZLIB				if POPPLER_ZLIB
	select LIBCURL				if POPPLER_CURL
	select LCMS				if POPPLER_CMS
	select QT4				if POPPLER_QT4
	select QT4_BUILD_GUI			if POPPLER_QT4
	select QT4_BUILD_XML			if POPPLER_QT4
	select QT4_BUILD_QTESTLIB		if POPPLER_QT4
	select QT5				if POPPLER_QT5
	select QT5_GUI				if POPPLER_QT5
	select QT5_MODULE_QTBASE		if POPPLER_QT5
	select QT5_MODULE_QTBASE_WIDGETS	if POPPLER_QT5
	help
	  Poppler is a PDF rendering library based on the xpdf-3.0 code base.

if POPPLER

comment "--- Install components ---"

config POPPLER_BIN
	bool
	prompt "install poppler utilities"
	help
	  installs command line utilies coming with poppler package, contains
	  pdffonts, pdfimages, pdfinfo, pdftoabw, pdftohtml, pdftoppm, pdftops,
	  pdftotext.

config POPPLER_XPDF
	bool

config POPPLER_WITH_DATA
	bool
	prompt "install poppler-data"
	help
	  poppler-data contains the encoding files which enable poppler to
	  correctly render CJK and Cyrillic.

comment "--- Wrappers ---"

config POPPLER_CPP
	bool
	prompt "enable CPP wrapper"

config POPPLER_GLIB
	select POPPLER_CAIRO
	bool
	prompt "enable Glib wrapper"
	help
	  build poppler glib wrapper.

config POPPLER_INTROSPECTION
	select POPPLER_GLIB
	default GOBJECT_INTROSPECTION_HELPER
	bool

config POPPLER_QT4
	bool
	prompt "enable Qt4 wrapper"
	help
	  build poppler Qt4 wrapper.

config POPPLER_QT5
	bool
	prompt "enable Qt5 wrapper"
	help
	  build poppler Qt5 wrapper.

comment "--- Rendering Backends ---"

comment "at least one rendering backend should be selected"
	depends on !(POPPLER_CAIRO || POPPLER_SPLASH)

config POPPLER_CAIRO
	bool
	prompt "enable cairo backend"
	help
	  build cairo graphics backend

config POPPLER_SPLASH
	bool
	prompt "enable Splash backend"
	help
	  build the Splash graphics backend

if POPPLER_SPLASH

config POPPLER_SPLASH_CMYK
	bool
	prompt "enable CMYK raster support"

config POPPLER_SPLASH_DOUBLE
	bool
	prompt "use double precision float arithmetic"
	help
	  Use double precision floating point arithmetic in Splash backend

config POPPLER_SPLASH_SINGLE
	bool
	prompt "use single precision float arithmetic"
	depends on !POPPLER_SPLASH_DOUBLE
	help
	  Use single precision instead of double precision floating point
	  arithmetic in Splash backend

config POPPLER_SPLASH_FIXED
	bool
	prompt "use fixed point arithmetic"
	depends on !POPPLER_SPLASH_SINGLE && !POPPLER_SPLASH_DOUBLE
	help
	  If enabled, the Splash backend will use floating point operations
	  instead of fixed-point arithmetic.

endif # POPPLER_SPLASH

comment "--- Features --- "

config POPPLER_PNG
	bool
	prompt "enable PNG support"
	help
	  compile poppler with png support via libpng

config POPPLER_JPEG
	bool
	prompt "enable JPEG support"
	help
	  compile poppler with jpeg support via libjpeg

config POPPLER_OPENJPEG
	bool
	depends on BROKEN
	prompt "enable JPEG2000 support"
	help
	  compile poppler with jpeg2000 (JPX) support via libopenjpeg

config POPPLER_TIFF
	bool
	depends on BROKEN
	prompt "enable TIFF support"
	help
	  compile poppler with support for TIFF via libtiff

config POPPLER_NSS
	bool
	depends on BROKEN
	prompt "enable NSS support"
	help
	  compile poppler with support for signed PDFs via libnss

config POPPLER_ZLIB
	bool
	prompt "enable zlib support"
	help
	  compile poppler with zlib support.

config POPPLER_CURL
	bool
	prompt "enable curl support"
	help
	  compile poppler with libcurl support.

config POPPLER_CMS
	bool
	prompt "enable color management support"
	help
	  compile poppler with color management support via libcms

endif

# vim: ft=kconfig ts=8 noet tw=80