~ubuntu-branches/debian/experimental/cups-filters/experimental

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2012-07-22 18:57:32 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20120722185732-26kkte5p1lth3rt5
Tags: 1.0.20-0bzr1
* New upstream release
   - pdftops: Added another workaround for Kyocera printers: Some
     models get very slow on images which request interpolation,
     so now we remove the image interpolation requests by additional
     PostScript code only inserted for Kyocera printers (LP: #1026974).
   - Made the Poppler-based filters pdftopdf and pdftoopvp build with
     both Poppler 0.18.x and 0.20.x (Upstream bug #1055).
   - Fixes according to Coverity scan results (Upstream bug #1054).
   - Switched build system to autotools. This especially fixes several
     build problems in Gentoo. Also build-tested with CUPS 1.6.0b1.
   - Fixes for compatibility with clang/gcc-4.7.
   - textonly: Filter did not work as a pipe with copies=1 (Upstream bug
     #1032).
   - texttopdf: Avoid trimming the results of FcFontSort(), as this may
     miss some reasonable candidates under certain circumstances. BTW,
     fix passing a non-pointer as a pointer to "result" (Closes: #670055).
   - Corrected documentation. The option for the maximum image rendering
     resolution in pdftops is "pdftops-max-image-resolution", not
     "pdftops-max-image-resolution-default".
* debian/patches/fcfontsort-no-trim.patch: Removed, fixed upstream.
* debian/rules: Updated options for ./configure and make for the new autotools
  build system.
* debian/watch: Switched to bz2 upstream packages.
* debian/rules, debian/copyright, debian/cups-filters.docs: Updated for
  renamed documentation files.
* debian/control, debian/libfontembed1.install,
  debian/libfontembed-dev.install: Added new binary packages for libfontembed.
* debian/copyright: Updated for recent file additions, and rearrangement of
  directories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
ACLOCAL_AMFLAGS = -I m4
 
2
 
 
3
pkgconfdir = $(libdir)/pkgconfig
 
4
pkgconf_DATA = \
 
5
        libcupsfilters.pc \
 
6
        libfontembed.pc
 
7
 
 
8
doc_DATA = \
 
9
        AUTHORS \
 
10
        COPYING \
 
11
        NEWS \
 
12
        INSTALL \
 
13
        README
 
14
 
 
15
EXTRA_DIST = \
 
16
        $(doc_DATA) \
 
17
        autogen.sh \
 
18
        libcupsfilters.pc.in \
 
19
        libfontembed.pc.in
 
20
 
 
21
# ========
 
22
# Backends
 
23
# ========
 
24
pkgbackenddir = $(CUPS_SERVERBIN)/backend
 
25
pkgbackend_PROGRAMS = parallel serial
 
26
 
 
27
check_PROGRAMS = test1284
 
28
# We need ieee1284 up and running.
 
29
# Leave it to the user to run if they have the bus.
 
30
#TESTS = test1284
 
31
 
 
32
parallel_SOURCES = \
 
33
        backend/backend-private.h \
 
34
        backend/ieee1284.c \
 
35
        backend/parallel.c
 
36
parallel_LDADD = $(CUPS_LIBS)
 
37
parallel_CFLAGS = $(CUPS_CFLAGS)
 
38
 
 
39
serial_SOURCES = \
 
40
        backend/backend-private.h \
 
41
        backend/serial.c
 
42
serial_LDADD = $(CUPS_LIBS)
 
43
serial_CFLAGS = $(CUPS_CFLAGS)
 
44
 
 
45
test1284_SOURCES = \
 
46
        backend/backend-private.h \
 
47
        backend/ieee1284.c \
 
48
        backend/test1284.c
 
49
test1284_LDADD = $(CUPS_LIBS)
 
50
test1284_CFLAGS = $(CUPS_CFLAGS)
 
51
 
 
52
# =======
 
53
# Banners
 
54
# =======
 
55
pkgbannerdir = $(CUPS_DATADIR)/banners
 
56
pkgbanner_DATA = \
 
57
        banners/classified \
 
58
        banners/confidential \
 
59
        banners/secret \
 
60
        banners/standard \
 
61
        banners/topsecret \
 
62
        banners/unclassified
 
63
 
 
64
EXTRA_DIST += $(pkgbanner_DATA)
 
65
 
 
66
# ========
 
67
# Charsets
 
68
# ========
 
69
pkgcharsetdir = $(CUPS_DATADIR)/charsets
 
70
pkgcharset_DATA = \
 
71
        charset/pdf.utf-8.heavy \
 
72
        charset/pdf.utf-8.simple
 
73
 
 
74
EXTRA_DIST += $(pkgcharset_DATA)
 
75
 
 
76
# ====================
 
77
# CUPS Filters library
 
78
# ====================
 
79
pkgfiltersincludedir = $(includedir)/cupsfilters
 
80
pkgfiltersinclude_DATA = \
 
81
        cupsfilters/driver.h \
 
82
        cupsfilters/image.h
 
83
 
 
84
lib_LTLIBRARIES = libcupsfilters.la
 
85
 
 
86
check_PROGRAMS += \
 
87
        testcmyk \
 
88
        testdither \
 
89
        testimage \
 
90
        testrgb
 
91
TESTS = \
 
92
        testdither
 
93
#       testcmyk # fails as it opens some image.ppm which is nowerhe to be found.
 
94
#       testimage # requires also some ppm file as argument
 
95
#       testrgb # same error
 
96
# FIXME: run old testdither
 
97
#       ./testdither > test/0-255.pgm 2>test/0-255.log
 
98
#       ./testdither 0 127 255 > test/0-127-255.pgm 2>test/0-127-255.log
 
99
#       ./testdither 0 85 170 255 > test/0-85-170-255.pgm 2>test/0-85-170-255.log
 
100
#       ./testdither 0 63 127 170 198 227 255 > test/0-63-127-170-198-227-255.pgm 2>test/0-63-127-170-198-227-255.log
 
101
#       ./testdither 0 210 383 > test/0-210-383.pgm 2>test/0-210-383.log
 
102
#       ./testdither 0 82 255 > test/0-82-255.pgm 2>test/0-82-255.log
 
103
#       ./testdither 0 510 > test/0-510.pgm 2>test/0-510.log
 
104
#       ./testdither 0 1020 > test/0-1020.pgm 2>test/0-1020.log
 
105
 
 
106
 
 
107
libcupsfilters_la_SOURCES = \
 
108
        cupsfilters/attr.c \
 
109
        cupsfilters/check.c \
 
110
        cupsfilters/cmyk.c \
 
111
        cupsfilters/dither.c \
 
112
        cupsfilters/image.c \
 
113
        cupsfilters/image-bmp.c \
 
114
        cupsfilters/image-colorspace.c \
 
115
        cupsfilters/image-gif.c \
 
116
        cupsfilters/image-jpeg.c \
 
117
        cupsfilters/image-photocd.c \
 
118
        cupsfilters/image-pix.c \
 
119
        cupsfilters/image-png.c \
 
120
        cupsfilters/image-pnm.c \
 
121
        cupsfilters/image-private.h \
 
122
        cupsfilters/image-sgi.c \
 
123
        cupsfilters/image-sgi.h \
 
124
        cupsfilters/image-sgilib.c \
 
125
        cupsfilters/image-sun.c \
 
126
        cupsfilters/image-tiff.c \
 
127
        cupsfilters/image-zoom.c \
 
128
        cupsfilters/lut.c \
 
129
        cupsfilters/pack.c \
 
130
        cupsfilters/rgb.c \
 
131
        cupsfilters/srgb.c \
 
132
        $(pkgfiltersinclude_DATA)
 
133
libcupsfilters_la_LIBADD = \
 
134
        $(CUPS_LIBS) \
 
135
        $(LIBJPEG_LIBS) \
 
136
        $(LIBPNG_LIBS) \
 
137
        $(TIFF_LIBS) \
 
138
        -lm
 
139
libcupsfilters_la_CFLAGS = \
 
140
        $(CUPS_CFLAGS) \
 
141
        $(LIBJPEG_CFLAGS) \
 
142
        $(LIBPNG_CFLAGS) \
 
143
        $(TIFF_CFLAGS)
 
144
 
 
145
libcupsfilters_la_LDFLAGS = \
 
146
        -no-undefined \
 
147
        -version-info 1
 
148
 
 
149
testcmyk_SOURCES = \
 
150
        cupsfilters/testcmyk.c \
 
151
        $(pkgfiltersinclude_DATA)
 
152
testcmyk_LDADD = \
 
153
        libcupsfilters.la \
 
154
        -lm
 
155
 
 
156
testdither_SOURCES = \
 
157
        cupsfilters/testdither.c \
 
158
        $(pkgfiltersinclude_DATA)
 
159
testdither_LDADD = \
 
160
        libcupsfilters.la \
 
161
        -lm
 
162
 
 
163
testimage_SOURCES = \
 
164
        cupsfilters/testimage.c \
 
165
        $(pkgfiltersinclude_DATA)
 
166
testimage_LDADD = \
 
167
        $(LIBJPEG_LIBS) \
 
168
        $(LIBPNG_LIBS) \
 
169
        $(TIFF_LIBS) \
 
170
        libcupsfilters.la \
 
171
        -lm
 
172
testimage_CFLAGS = \
 
173
        $(LIBJPEG_CFLAGS) \
 
174
        $(LIBPNG_CFLAGS) \
 
175
        $(TIFF_CFLAGS)
 
176
 
 
177
testrgb_SOURCES = \
 
178
        cupsfilters/testrgb.c \
 
179
        $(pkgfiltersinclude_DATA)
 
180
testrgb_LDADD = \
 
181
        libcupsfilters.la \
 
182
        -lm
 
183
 
 
184
EXTRA_DIST += \
 
185
        $(pkgfiltersinclude_DATA) \
 
186
        cupsfilters/image.pgm \
 
187
        cupsfilters/image.ppm
 
188
 
 
189
# =========
 
190
# CUPS Data
 
191
# =========
 
192
pkgcupsdatadir = $(CUPS_DATADIR)/data
 
193
pkgcupsdata_DATA = \
 
194
        data/default.pdf \
 
195
        data/default-testpage.pdf \
 
196
        data/testprint
 
197
 
 
198
EXTRA_DIST += $(pkgcupsdata_DATA)
 
199
 
 
200
# =======
 
201
# Drivers
 
202
# =======
 
203
pkgdriverdir = $(CUPS_DATADIR)/drv
 
204
pkgdriver_DATA = \
 
205
        drv/cupsfilters.drv
 
206
 
 
207
EXTRA_DIST += $(pkgdriver_DATA)
 
208
 
 
209
# =====
 
210
# MIMEs
 
211
# =====
 
212
pkgmimedir = $(CUPS_DATADIR)/mime
 
213
pkgmime_DATA = \
 
214
        mime/cupsfilters.convs \
 
215
        mime/cupsfilters.types
 
216
 
 
217
EXTRA_DIST += $(pkgmime_DATA)
 
218
 
 
219
# =================
 
220
# Fontembed library
 
221
# =================
 
222
pkgfontembedincludedir = $(includedir)/fontembed
 
223
pkgfontembedinclude_DATA = \
 
224
        fontembed/bitset.h \
 
225
        fontembed/embed.h \
 
226
        fontembed/fontfile.h \
 
227
        fontembed/iofn.h \
 
228
        fontembed/sfnt.h
 
229
 
 
230
lib_LTLIBRARIES += libfontembed.la
 
231
 
 
232
bin_PROGRAMS = ttfread
 
233
 
 
234
check_PROGRAMS += \
 
235
        test_analyze \
 
236
        test_pdf \
 
237
        test_ps
 
238
TESTS += \
 
239
        test_analyze \
 
240
        test_pdf \
 
241
        test_ps
 
242
 
 
243
libfontembed_la_SOURCES = \
 
244
        fontembed/aglfn13.c \
 
245
        fontembed/bitset.h \
 
246
        fontembed/dynstring.c \
 
247
        fontembed/dynstring.h \
 
248
        fontembed/embed.c \
 
249
        fontembed/embed.h \
 
250
        fontembed/embed_sfnt.c \
 
251
        fontembed/embed_sfnt_int.h \
 
252
        fontembed/embed_pdf.c \
 
253
        fontembed/embed_pdf.h \
 
254
        fontembed/embed_pdf_int.h \
 
255
        fontembed/fontfile.c \
 
256
        fontembed/fontfile.h \
 
257
        fontembed/frequent.c \
 
258
        fontembed/frequent.h \
 
259
        fontembed/iofn.h \
 
260
        fontembed/macroman.h \
 
261
        fontembed/sfnt.c \
 
262
        fontembed/sfnt.h \
 
263
        fontembed/sfnt_int.h \
 
264
        fontembed/sfnt_subset.c
 
265
libfontembed_la_LDFLAGS = \
 
266
        -no-undefined \
 
267
        -version-info 1
 
268
 
 
269
ttfread_SOURCES = fontembed/main.c
 
270
ttfread_LDADD = libfontembed.la
 
271
 
 
272
test_analyze_SOURCES = fontembed/test_analyze.c
 
273
test_analyze_LDADD = libfontembed.la
 
274
 
 
275
test_pdf_SOURCES = fontembed/test_pdf.c
 
276
test_pdf_LDADD = libfontembed.la
 
277
 
 
278
test_ps_SOURCES = fontembed/test_ps.c
 
279
test_ps_LDADD = libfontembed.la
 
280
 
 
281
EXTRA_DIST += \
 
282
        $(pkgfontembedinclude_DATA) \
 
283
        fontembed/README
 
284
 
 
285
# ===========
 
286
# PDF to OPVP
 
287
# ===========
 
288
pkgfilterdir = $(CUPS_SERVERBIN)/filter
 
289
pkgfilter_PROGRAMS = pdftoopvp
 
290
 
 
291
pkgfontconfigdir = $(sysconfdir)/$(FONTDIR)
 
292
pkgfontconfig_DATA = filter/pdftoopvp/99pdftoopvp.conf
 
293
 
 
294
pdftoopvp_SOURCES = \
 
295
        filter/pdftoopvp/oprs/OPRS.cxx \
 
296
        filter/pdftoopvp/oprs/OPRS.h \
 
297
        filter/pdftoopvp/oprs/OPVPSplashClip.cxx \
 
298
        filter/pdftoopvp/oprs/OPVPSplashClip.h \
 
299
        filter/pdftoopvp/oprs/OPVPSplash.cxx \
 
300
        filter/pdftoopvp/oprs/OPVPSplash.h \
 
301
        filter/pdftoopvp/oprs/OPVPSplashPath.cxx \
 
302
        filter/pdftoopvp/oprs/OPVPSplashPath.h \
 
303
        filter/pdftoopvp/oprs/OPVPSplashState.cxx \
 
304
        filter/pdftoopvp/oprs/OPVPSplashState.h \
 
305
        filter/pdftoopvp/oprs/OPVPSplashXPath.cxx \
 
306
        filter/pdftoopvp/oprs/OPVPSplashXPath.h \
 
307
        filter/pdftoopvp/oprs/OPVPWrapper.cxx \
 
308
        filter/pdftoopvp/oprs/OPVPWrapper.h \
 
309
        filter/pdftoopvp/oprs/OPVPWrapper_0_2.cxx \
 
310
        filter/pdftoopvp/oprs/OPVPWrapper_0_2.h \
 
311
        filter/pdftoopvp/OPVPError.h \
 
312
        filter/pdftoopvp/opvp/opvp_common.h \
 
313
        filter/pdftoopvp/opvp/opvp.h \
 
314
        filter/pdftoopvp/opvp/opvp_0_2_0.h \
 
315
        filter/pdftoopvp/OPVPOutputDev.cxx \
 
316
        filter/pdftoopvp/OPVPOutputDev.h \
 
317
        filter/pdftoopvp/pdftoopvp.cxx
 
318
pdftoopvp_CFLAGS = \
 
319
        $(CUPS_CFLAGS) \
 
320
        $(FREETYPE_CFLAGS) \
 
321
        $(FONTCONFIG_CFLAGS) \
 
322
        $(LIBPNG_CFLAGS) \
 
323
        $(POPPLER_CFLAGS) \
 
324
        -I$(srcdir)/filter/pdftoopvp/oprs \
 
325
        -I$(srcdir)/filter/pdftoopvp/opvp
 
326
pdftoopvp_CXXFLAGS = $(pdftoopvp_CFLAGS)
 
327
pdftoopvp_LDADD = \
 
328
        $(CUPS_LIBS) \
 
329
        $(FREETYPE_LIBS) \
 
330
        $(FONTCONFIG_LIBS) \
 
331
        $(LIBPNG_LIBS) \
 
332
        $(POPPLER_LIBS)
 
333
        $(DLOPEN_LIBS)
 
334
 
 
335
EXTRA_DIST += $(pkgfontconfig_DATA)
 
336
# ==========
 
337
# PDF to PDF
 
338
# ==========
 
339
pkgfilter_PROGRAMS += pdftopdf
 
340
 
 
341
pdftopdf_SOURCES = \
 
342
        filter/pdftopdf/parseargs.cxx \
 
343
        filter/pdftopdf/parseargs.h \
 
344
        filter/pdftopdf/PDFFTrueTypeFont.cxx \
 
345
        filter/pdftopdf/PDFFTrueTypeFont.h \
 
346
        filter/pdftopdf/pdftopdf.cxx \
 
347
        filter/pdftopdf/P2PCatalog.cxx \
 
348
        filter/pdftopdf/P2PCatalog.h \
 
349
        filter/pdftopdf/P2PCMap.cxx \
 
350
        filter/pdftopdf/P2PCMap.h \
 
351
        filter/pdftopdf/P2PDoc.cxx \
 
352
        filter/pdftopdf/P2PDoc.h \
 
353
        filter/pdftopdf/P2PError.h \
 
354
        filter/pdftopdf/P2PFont.cxx \
 
355
        filter/pdftopdf/P2PFont.h \
 
356
        filter/pdftopdf/P2PForm.cxx \
 
357
        filter/pdftopdf/P2PForm.h \
 
358
        filter/pdftopdf/P2PGfx.cxx \
 
359
        filter/pdftopdf/P2PGfx.h \
 
360
        filter/pdftopdf/P2PCharCodeToUnicode.cxx \
 
361
        filter/pdftopdf/P2PCharCodeToUnicode.h \
 
362
        filter/pdftopdf/P2PMatrix.h \
 
363
        filter/pdftopdf/P2PObject.cxx \
 
364
        filter/pdftopdf/P2PObject.h \
 
365
        filter/pdftopdf/P2POutput.cxx \
 
366
        filter/pdftopdf/P2POutput.h \
 
367
        filter/pdftopdf/P2POutputStream.cxx \
 
368
        filter/pdftopdf/P2POutputStream.h \
 
369
        filter/pdftopdf/P2PPage.cxx \
 
370
        filter/pdftopdf/P2PPage.h \
 
371
        filter/pdftopdf/P2PPageTree.cxx \
 
372
        filter/pdftopdf/P2PPageTree.h \
 
373
        filter/pdftopdf/P2PPattern.cxx \
 
374
        filter/pdftopdf/P2PPattern.h \
 
375
        filter/pdftopdf/P2PResources.cxx \
 
376
        filter/pdftopdf/P2PResources.h \
 
377
        filter/pdftopdf/P2PXRef.cxx \
 
378
        filter/pdftopdf/P2PXRef.h \
 
379
        filter/pdftopdf/UGooString.cxx \
 
380
        filter/pdftopdf/UGooString.h
 
381
pdftopdf_CFLAGS = \
 
382
        $(CUPS_CFLAGS) \
 
383
        $(POPPLER_CFLAGS) \
 
384
        $(ZLIB_CFLAGS)
 
385
pdftopdf_CXXFLAGS = $(pdftopdf_CFLAGS)
 
386
pdftopdf_LDADD = \
 
387
        $(CUPS_LIBS) \
 
388
        $(POPPLER_LIBS) \
 
389
        $(ZLIB_LIBS)
 
390
 
 
391
# ======================
 
392
# Simple filter binaries
 
393
# ======================
 
394
pkgfilter_SCRIPTS = \
 
395
        filter/imagetops \
 
396
        filter/pstopdf \
 
397
        filter/textonly \
 
398
        filter/texttops
 
399
pkgfilter_PROGRAMS += \
 
400
        bannertopdf \
 
401
        commandtoescpx \
 
402
        commandtopclx \
 
403
        pdftoijs \
 
404
        pdftops \
 
405
        pdftoraster \
 
406
        rastertoescpx \
 
407
        rastertopclx \
 
408
        texttopdf
 
409
if ENABLE_IMAGEFILTERS
 
410
pkgfilter_PROGRAMS += \
 
411
        imagetopdf \
 
412
        imagetoraster
 
413
endif
 
414
 
 
415
check_PROGRAMS += \
 
416
        test_pdf1 \
 
417
        test_pdf2
 
418
 
 
419
TESTS += \
 
420
        test_pdf1 \
 
421
        test_pdf2
 
422
 
 
423
bannertopdf_SOURCES = \
 
424
        filter/banner.c \
 
425
        filter/banner.h \
 
426
        filter/bannertopdf.c \
 
427
        filter/pdf.cxx \
 
428
        filter/pdf.h
 
429
EXTRA_bannertopdf_SOURCES = filter/getline.c
 
430
bannertopdf_CFLAGS = \
 
431
        $(CUPS_CFLAGS) \
 
432
        $(LIBJPEG_CFLAGS) \
 
433
        $(LIBPNG_CFLAGS) \
 
434
        $(POPPLER_CFLAGS) \
 
435
        $(TIFF_CFLAGS)
 
436
bannertopdf_CXXFLAGS = $(bannertopdf_CFLAGS)
 
437
bannertopdf_LDADD = \
 
438
        $(GETLINE) \
 
439
        $(CUPS_LIBS) \
 
440
        $(LIBJPEG_LIBS) \
 
441
        $(LIBPNG_LIBS) \
 
442
        $(POPPLER_LIBS) \
 
443
        $(TIFF_LIBS)
 
444
bannertopdf_DEPENDENCIES = $(GETLINE)
 
445
 
 
446
commandtoescpx_SOURCES = \
 
447
        cupsfilters/driver.h \
 
448
        filter/commandtoescpx.c \
 
449
        filter/pcl.h
 
450
commandtoescpx_CFLAGS= \
 
451
        $(CUPS_CFLAGS) \
 
452
        -I$(srcdir)/cupsfilters/
 
453
commandtoescpx_LDADD = $(CUPS_LIBS)
 
454
 
 
455
commandtopclx_SOURCES = \
 
456
        cupsfilters/driver.h \
 
457
        filter/commandtopclx.c \
 
458
        filter/pcl.h
 
459
commandtopclx_CFLAGS = \
 
460
        $(CUPS_CFLAGS) \
 
461
        -I$(srcdir)/cupsfilters/
 
462
commandtopclx_LDADD = $(CUPS_LIBS)
 
463
 
 
464
imagetopdf_SOURCES = \
 
465
        cupsfilters/image.h \
 
466
        filter/common.c \
 
467
        filter/common.h \
 
468
        filter/imagetopdf.c
 
469
imagetopdf_CFLAGS = \
 
470
        $(CUPS_CFLAGS) \
 
471
        $(LIBJPEG_CFLAGS) \
 
472
        $(LIBPNG_CFLAGS) \
 
473
        $(TIFF_CFLAGS) \
 
474
        -I$(srcdir)/cupsfilters/
 
475
imagetopdf_LDADD = \
 
476
        $(CUPS_LIBS) \
 
477
        $(LIBJPEG_LIBS) \
 
478
        $(LIBPNG_LIBS) \
 
479
        $(TIFF_LIBS) \
 
480
        libcupsfilters.la
 
481
 
 
482
imagetoraster_SOURCES = \
 
483
        cupsfilters/image.h \
 
484
        cupsfilters/image-private.h \
 
485
        filter/common.c \
 
486
        filter/common.h \
 
487
        filter/imagetoraster.c
 
488
imagetoraster_CFLAGS = \
 
489
        $(CUPS_CFLAGS) \
 
490
        -I$(srcdir)/cupsfilters/
 
491
imagetoraster_LDADD = \
 
492
        $(CUPS_LIBS) \
 
493
        libcupsfilters.la
 
494
 
 
495
pdftoijs_SOURCES = \
 
496
        filter/pdftoijs.cxx \
 
497
        filter/PDFError.h
 
498
pdftoijs_CFLAGS = \
 
499
        $(CUPS_CFLAGS) \
 
500
        $(IJS_CFLAGS) \
 
501
        $(POPPLER_CFLAGS)
 
502
pdftoijs_CXXFLAGS = $(pdftoijs_CFLAGS)
 
503
pdftoijs_LDADD = \
 
504
        $(CUPS_LIBS) \
 
505
        $(IJS_LIBS) \
 
506
        $(POPPLER_LIBS)
 
507
 
 
508
pdftops_SOURCES = \
 
509
        filter/common.c \
 
510
        filter/common.h \
 
511
        filter/pdftops.c
 
512
EXTRA_pdftops_SOURCES = filter/strcasestr.c
 
513
pdftops_CFLAGS = $(CUPS_CFLAGS)
 
514
pdftops_LDADD = $(STRCASESTR) $(CUPS_LIBS)
 
515
pdftops_DEPENDENCIES = $(STRCASESTR)
 
516
 
 
517
pdftoraster_SOURCES = \
 
518
        filter/pdftoraster.cxx \
 
519
        filter/PDFError.h
 
520
pdftoraster_CFLAGS = \
 
521
        $(CUPS_CFLAGS) \
 
522
        $(LCMS_CFLAGS) \
 
523
        $(LIBJPEG_CFLAGS) \
 
524
        $(LIBPNG_CFLAGS) \
 
525
        $(POPPLER_CFLAGS) \
 
526
        $(TIFF_CFLAGS) \
 
527
        -I$(srcdir)/cupsfilters/
 
528
pdftoraster_CXXFLAGS = $(pdftoraster_CFLAGS)
 
529
pdftoraster_LDADD = \
 
530
        $(CUPS_LIBS) \
 
531
        $(LCMS_LIBS) \
 
532
        $(LIBJPEG_LIBS) \
 
533
        $(LIBPNG_LIBS) \
 
534
        $(POPPLER_LIBS) \
 
535
        $(TIFF_LIBS) \
 
536
        libcupsfilters.la
 
537
 
 
538
rastertoescpx_SOURCES = \
 
539
        cupsfilters/driver.h \
 
540
        filter/escp.h \
 
541
        filter/rastertoescpx.c
 
542
rastertoescpx_CFLAGS = \
 
543
        $(CUPS_CFLAGS) \
 
544
        -I$(srcdir)/cupsfilters/
 
545
rastertoescpx_LDADD = \
 
546
        $(CUPS_LIBS) \
 
547
        libcupsfilters.la
 
548
 
 
549
rastertopclx_SOURCES = \
 
550
        cupsfilters/driver.h \
 
551
        filter/pcl.h \
 
552
        filter/pcl-common.c \
 
553
        filter/pcl-common.h \
 
554
        filter/rastertopclx.c
 
555
rastertopclx_CFLAGS = \
 
556
        $(CUPS_CFLAGS) \
 
557
        $(LIBPNG_CFLAGS) \
 
558
        -I$(srcdir)/cupsfilters/
 
559
rastertopclx_LDADD = \
 
560
        $(CUPS_LIBS) \
 
561
        $(LIBPNG_LIBS) \
 
562
        libcupsfilters.la
 
563
 
 
564
test_pdf1_SOURCES = \
 
565
        filter/pdfutils.c \
 
566
        filter/pdfutils.h \
 
567
        filter/test_pdf1.c \
 
568
        fontembed/embed.h \
 
569
        fontembed/sfnt.h
 
570
test_pdf1_CFLAGS = -I$(srcdir)/fontembed/
 
571
test_pdf1_LDADD = libfontembed.la
 
572
 
 
573
test_pdf2_SOURCES = \
 
574
        filter/pdfutils.c \
 
575
        filter/pdfutils.h \
 
576
        filter/test_pdf2.c \
 
577
        fontembed/embed.h \
 
578
        fontembed/sfnt.h
 
579
test_pdf2_CFLAGS = -I$(srcdir)/fontembed/
 
580
test_pdf2_LDADD = libfontembed.la
 
581
 
 
582
texttopdf_SOURCES = \
 
583
        filter/common.c \
 
584
        filter/common.h \
 
585
        filter/pdfutils.c \
 
586
        filter/pdfutils.h \
 
587
        filter/textcommon.c \
 
588
        filter/textcommon.h \
 
589
        filter/texttopdf.c \
 
590
        fontembed/bitset.h \
 
591
        fontembed/embed.h \
 
592
        fontembed/fontfile.h \
 
593
        fontembed/iofn.h \
 
594
        fontembed/sfnt.h
 
595
texttopdf_CFLAGS = \
 
596
        $(CUPS_CFLAGS) \
 
597
        $(FONTCONFIG_CFLAGS) \
 
598
        -I$(srcdir)/fontembed/
 
599
texttopdf_LDADD = \
 
600
        $(CUPS_LIBS) \
 
601
        $(FONTCONFIG_LIBS) \
 
602
        libfontembed.la
 
603
 
 
604
# Not reliable bash script
 
605
#TESTS += filter/test.sh
 
606
 
 
607
EXTRA_DIST += \
 
608
        $(pkgfilter_SCRIPTS) \
 
609
        filter/test.sh
 
610
 
 
611
# ===
 
612
# PPD
 
613
# ===
 
614
ppddir = $(datadir)/ppd/cupsfilters
 
615
ppd_DATA = \
 
616
        ppd/Generic-PDF_Printer-PDF.ppd \
 
617
        ppd/HP-Color_LaserJet_CM3530_MFP-PDF.ppd \
 
618
        ppd/HP-PhotoSmart_Pro_B8300-hpijs-pdftoijs.ppd \
 
619
        ppd/textonly.ppd
 
620
 
 
621
EXTRA_DIST += $(ppd_DATA)
 
622
 
 
623
# =========
 
624
# Scripting
 
625
# =========
 
626
if WITH_PHP
 
627
phpextensiondir = $(PHPDIR)
 
628
phpextension_LTLIBRARIES = libphpcups.la
 
629
libphpcups_la_SOURCES = \
 
630
        scripting/php/phpcups.c \
 
631
        scripting/php/phpcups.h
 
632
libphpcups_la_LIBADD = $(CUPS_LIBS)
 
633
libphpcups_la_CFLAGS = $(CUPS_CFLAGS)
 
634
libphpcups_la_LDFLAGS = -no-undefined
 
635
endif # WITH_PHP
 
636
 
 
637
EXTRA_DIST += \
 
638
        scripting/perl \
 
639
        scripting/php/README \
 
640
        scripting/php/phpcups.php
 
641
 
 
642
distclean-local:
 
643
        rm -rf *.cache *~
 
644
 
 
645
install-data-hook:
 
646
        $(LN_S) pdf.utf-8.simple \
 
647
                $(DESTDIR)$(pkgcharsetdir)/pdf.utf-8