1
ACLOCAL_AMFLAGS = -I m4
3
pkgconfdir = $(libdir)/pkgconfig
18
libcupsfilters.pc.in \
24
pkgbackenddir = $(CUPS_SERVERBIN)/backend
25
pkgbackend_PROGRAMS = parallel serial
27
check_PROGRAMS = test1284
28
# We need ieee1284 up and running.
29
# Leave it to the user to run if they have the bus.
33
backend/backend-private.h \
36
parallel_LDADD = $(CUPS_LIBS)
37
parallel_CFLAGS = $(CUPS_CFLAGS)
40
backend/backend-private.h \
42
serial_LDADD = $(CUPS_LIBS)
43
serial_CFLAGS = $(CUPS_CFLAGS)
46
backend/backend-private.h \
49
test1284_LDADD = $(CUPS_LIBS)
50
test1284_CFLAGS = $(CUPS_CFLAGS)
55
pkgbannerdir = $(CUPS_DATADIR)/banners
58
banners/confidential \
64
EXTRA_DIST += $(pkgbanner_DATA)
69
pkgcharsetdir = $(CUPS_DATADIR)/charsets
71
charset/pdf.utf-8.heavy \
72
charset/pdf.utf-8.simple
74
EXTRA_DIST += $(pkgcharset_DATA)
76
# ====================
77
# CUPS Filters library
78
# ====================
79
pkgfiltersincludedir = $(includedir)/cupsfilters
80
pkgfiltersinclude_DATA = \
81
cupsfilters/driver.h \
84
lib_LTLIBRARIES = libcupsfilters.la
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
107
libcupsfilters_la_SOURCES = \
109
cupsfilters/check.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 \
132
$(pkgfiltersinclude_DATA)
133
libcupsfilters_la_LIBADD = \
139
libcupsfilters_la_CFLAGS = \
145
libcupsfilters_la_LDFLAGS = \
150
cupsfilters/testcmyk.c \
151
$(pkgfiltersinclude_DATA)
156
testdither_SOURCES = \
157
cupsfilters/testdither.c \
158
$(pkgfiltersinclude_DATA)
163
testimage_SOURCES = \
164
cupsfilters/testimage.c \
165
$(pkgfiltersinclude_DATA)
178
cupsfilters/testrgb.c \
179
$(pkgfiltersinclude_DATA)
185
$(pkgfiltersinclude_DATA) \
186
cupsfilters/image.pgm \
187
cupsfilters/image.ppm
192
pkgcupsdatadir = $(CUPS_DATADIR)/data
195
data/default-testpage.pdf \
198
EXTRA_DIST += $(pkgcupsdata_DATA)
203
pkgdriverdir = $(CUPS_DATADIR)/drv
207
EXTRA_DIST += $(pkgdriver_DATA)
212
pkgmimedir = $(CUPS_DATADIR)/mime
214
mime/cupsfilters.convs \
215
mime/cupsfilters.types
217
EXTRA_DIST += $(pkgmime_DATA)
222
pkgfontembedincludedir = $(includedir)/fontembed
223
pkgfontembedinclude_DATA = \
226
fontembed/fontfile.h \
230
lib_LTLIBRARIES += libfontembed.la
232
bin_PROGRAMS = ttfread
243
libfontembed_la_SOURCES = \
244
fontembed/aglfn13.c \
246
fontembed/dynstring.c \
247
fontembed/dynstring.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 \
260
fontembed/macroman.h \
263
fontembed/sfnt_int.h \
264
fontembed/sfnt_subset.c
265
libfontembed_la_LDFLAGS = \
269
ttfread_SOURCES = fontembed/main.c
270
ttfread_LDADD = libfontembed.la
272
test_analyze_SOURCES = fontembed/test_analyze.c
273
test_analyze_LDADD = libfontembed.la
275
test_pdf_SOURCES = fontembed/test_pdf.c
276
test_pdf_LDADD = libfontembed.la
278
test_ps_SOURCES = fontembed/test_ps.c
279
test_ps_LDADD = libfontembed.la
282
$(pkgfontembedinclude_DATA) \
288
pkgfilterdir = $(CUPS_SERVERBIN)/filter
289
pkgfilter_PROGRAMS = pdftoopvp
291
pkgfontconfigdir = $(sysconfdir)/$(FONTDIR)
292
pkgfontconfig_DATA = filter/pdftoopvp/99pdftoopvp.conf
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
321
$(FONTCONFIG_CFLAGS) \
324
-I$(srcdir)/filter/pdftoopvp/oprs \
325
-I$(srcdir)/filter/pdftoopvp/opvp
326
pdftoopvp_CXXFLAGS = $(pdftoopvp_CFLAGS)
335
EXTRA_DIST += $(pkgfontconfig_DATA)
339
pkgfilter_PROGRAMS += pdftopdf
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
385
pdftopdf_CXXFLAGS = $(pdftopdf_CFLAGS)
391
# ======================
392
# Simple filter binaries
393
# ======================
394
pkgfilter_SCRIPTS = \
399
pkgfilter_PROGRAMS += \
409
if ENABLE_IMAGEFILTERS
410
pkgfilter_PROGRAMS += \
423
bannertopdf_SOURCES = \
426
filter/bannertopdf.c \
429
EXTRA_bannertopdf_SOURCES = filter/getline.c
430
bannertopdf_CFLAGS = \
436
bannertopdf_CXXFLAGS = $(bannertopdf_CFLAGS)
437
bannertopdf_LDADD = \
444
bannertopdf_DEPENDENCIES = $(GETLINE)
446
commandtoescpx_SOURCES = \
447
cupsfilters/driver.h \
448
filter/commandtoescpx.c \
450
commandtoescpx_CFLAGS= \
452
-I$(srcdir)/cupsfilters/
453
commandtoescpx_LDADD = $(CUPS_LIBS)
455
commandtopclx_SOURCES = \
456
cupsfilters/driver.h \
457
filter/commandtopclx.c \
459
commandtopclx_CFLAGS = \
461
-I$(srcdir)/cupsfilters/
462
commandtopclx_LDADD = $(CUPS_LIBS)
464
imagetopdf_SOURCES = \
465
cupsfilters/image.h \
469
imagetopdf_CFLAGS = \
474
-I$(srcdir)/cupsfilters/
482
imagetoraster_SOURCES = \
483
cupsfilters/image.h \
484
cupsfilters/image-private.h \
487
filter/imagetoraster.c
488
imagetoraster_CFLAGS = \
490
-I$(srcdir)/cupsfilters/
491
imagetoraster_LDADD = \
496
filter/pdftoijs.cxx \
502
pdftoijs_CXXFLAGS = $(pdftoijs_CFLAGS)
512
EXTRA_pdftops_SOURCES = filter/strcasestr.c
513
pdftops_CFLAGS = $(CUPS_CFLAGS)
514
pdftops_LDADD = $(STRCASESTR) $(CUPS_LIBS)
515
pdftops_DEPENDENCIES = $(STRCASESTR)
517
pdftoraster_SOURCES = \
518
filter/pdftoraster.cxx \
520
pdftoraster_CFLAGS = \
527
-I$(srcdir)/cupsfilters/
528
pdftoraster_CXXFLAGS = $(pdftoraster_CFLAGS)
529
pdftoraster_LDADD = \
538
rastertoescpx_SOURCES = \
539
cupsfilters/driver.h \
541
filter/rastertoescpx.c
542
rastertoescpx_CFLAGS = \
544
-I$(srcdir)/cupsfilters/
545
rastertoescpx_LDADD = \
549
rastertopclx_SOURCES = \
550
cupsfilters/driver.h \
552
filter/pcl-common.c \
553
filter/pcl-common.h \
554
filter/rastertopclx.c
555
rastertopclx_CFLAGS = \
558
-I$(srcdir)/cupsfilters/
559
rastertopclx_LDADD = \
564
test_pdf1_SOURCES = \
570
test_pdf1_CFLAGS = -I$(srcdir)/fontembed/
571
test_pdf1_LDADD = libfontembed.la
573
test_pdf2_SOURCES = \
579
test_pdf2_CFLAGS = -I$(srcdir)/fontembed/
580
test_pdf2_LDADD = libfontembed.la
582
texttopdf_SOURCES = \
587
filter/textcommon.c \
588
filter/textcommon.h \
592
fontembed/fontfile.h \
597
$(FONTCONFIG_CFLAGS) \
598
-I$(srcdir)/fontembed/
604
# Not reliable bash script
605
#TESTS += filter/test.sh
608
$(pkgfilter_SCRIPTS) \
614
ppddir = $(datadir)/ppd/cupsfilters
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 \
621
EXTRA_DIST += $(ppd_DATA)
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
639
scripting/php/README \
640
scripting/php/phpcups.php
646
$(LN_S) pdf.utf-8.simple \
647
$(DESTDIR)$(pkgcharsetdir)/pdf.utf-8