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 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083
|
ACLOCAL_AMFLAGS = -I m4
pkgconfdir = $(libdir)/pkgconfig
pkgconf_DATA = \
libcupsfilters.pc \
libfontembed.pc
doc_DATA = \
ABOUT-NLS \
AUTHORS \
COPYING \
NEWS \
INSTALL \
README
EXTRA_DIST = \
$(doc_DATA) \
autogen.sh \
config.rpath \
ln-srf \
libcupsfilters.pc.in \
libfontembed.pc.in \
utils/cups-browsed.service \
utils/cups-browsed-upstart.conf \
utils/driverless-fax.in \
filter/braille/drivers/index/ubrlto4dot.c \
filter/braille/filters/TODO.txt
EXTRA_DIST += \
cupsfilters/kmdevices.cpp \
cupsfilters/kmdevices.h \
cupsfilters/testdriver.c \
data/makePDFfromPS.sh \
data/classified.ps \
data/confidential.ps \
data/secret.ps \
data/standard.ps \
data/topsecret.ps \
data/unclassified.ps \
drv/custom-media-lines
# ========
# Backends
# ========
pkgbackenddir = $(CUPS_SERVERBIN)/backend
pkgbackend_PROGRAMS = parallel serial beh implicitclass
check_PROGRAMS = test1284
# We need ieee1284 up and running.
# Leave it to the user to run if they have the bus.
#TESTS = test1284
parallel_SOURCES = \
backend/backend-private.h \
backend/ieee1284.c \
backend/parallel.c
parallel_LDADD = $(CUPS_LIBS)
parallel_CFLAGS = $(CUPS_CFLAGS)
serial_SOURCES = \
backend/backend-private.h \
backend/serial.c
serial_LDADD = $(CUPS_LIBS)
serial_CFLAGS = $(CUPS_CFLAGS)
beh_SOURCES = \
backend/backend-private.h \
backend/beh.c
beh_LDADD = $(CUPS_LIBS)
beh_CFLAGS = $(CUPS_CFLAGS)
implicitclass_SOURCES = \
backend/backend-private.h \
backend/implicitclass.c
implicitclass_LDADD = $(CUPS_LIBS)\
libcupsfilters.la
implicitclass_CFLAGS = $(CUPS_CFLAGS)\
-I$(srcdir)/cupsfilters/
test1284_SOURCES = \
backend/backend-private.h \
backend/ieee1284.c \
backend/test1284.c
test1284_LDADD = $(CUPS_LIBS)
test1284_CFLAGS = $(CUPS_CFLAGS)
if ENABLE_BRAILLE
pkgbackend_PROGRAMS += cups-brf
endif
cups_brf_SOURCES = \
backend/cups-brf.c
# ==============
# PPD Generators
# ==============
utils/driverless-fax: utils/driverless-fax.in Makefile
sed \
-e "s|\@CUPS_SERVERBIN\@|$(CUPS_SERVERBIN)|" \
$< >$@
pkgppdgendir = $(CUPS_SERVERBIN)/driver
driverlessfaxscripts = \
utils/driverless-fax
if ENABLE_DRIVERLESS
pkgppdgen_PROGRAMS = driverless
pkgppdgen_SCRIPTS = \
$(driverlessfaxscripts)
endif
driverless_SOURCES = \
utils/driverless.c
driverless_CFLAGS = \
$(CUPS_CFLAGS) \
-I$(srcdir)/cupsfilters/
driverless_CXXFLAGS = $(driverless_CFLAGS)
driverless_LDADD = \
$(CUPS_LIBS) \
libcupsfilters.la
# =======
# Banners
# =======
pkgbannerdir = $(CUPS_DATADIR)/banners
pkgbanner_DATA =
bannerfiles = \
banners/classified \
banners/confidential \
banners/secret \
banners/standard \
banners/form \
banners/topsecret \
banners/unclassified
pkgbanner_DATA += $(bannerfiles)
EXTRA_DIST += $(bannerfiles)
# ========
# Charsets
# ========
pkgcharsetdir = $(CUPS_DATADIR)/charsets
pkgcharset_DATA = \
charset/pdf.utf-8.heavy \
charset/pdf.utf-8.simple
EXTRA_DIST += $(pkgcharset_DATA)
# ====================
# CUPS Filters library
# ====================
pkgfiltersincludedir = $(includedir)/cupsfilters
pkgfiltersinclude_DATA = \
cupsfilters/colord.h \
cupsfilters/colormanager.h \
cupsfilters/driver.h \
cupsfilters/image.h \
cupsfilters/ipp.h \
cupsfilters/raster.h \
cupsfilters/ppdgenerator.h \
cupsfilters/pdftoippprinter.h
lib_LTLIBRARIES = libcupsfilters.la
check_PROGRAMS += \
testcmyk \
testdither \
testimage \
testrgb
TESTS = \
testdither
# testcmyk # fails as it opens some image.ppm which is nowerhe to be found.
# testimage # requires also some ppm file as argument
# testrgb # same error
# FIXME: run old testdither
# ./testdither > test/0-255.pgm 2>test/0-255.log
# ./testdither 0 127 255 > test/0-127-255.pgm 2>test/0-127-255.log
# ./testdither 0 85 170 255 > test/0-85-170-255.pgm 2>test/0-85-170-255.log
# ./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
# ./testdither 0 210 383 > test/0-210-383.pgm 2>test/0-210-383.log
# ./testdither 0 82 255 > test/0-82-255.pgm 2>test/0-82-255.log
# ./testdither 0 510 > test/0-510.pgm 2>test/0-510.log
# ./testdither 0 1020 > test/0-1020.pgm 2>test/0-1020.log
libcupsfilters_la_SOURCES = \
cupsfilters/attr.c \
cupsfilters/check.c \
cupsfilters/cmyk.c \
cupsfilters/colord.c \
cupsfilters/colormanager.c \
cupsfilters/dither.c \
cupsfilters/image.c \
cupsfilters/pdftoippprinter.c \
cupsfilters/image-bmp.c \
cupsfilters/image-colorspace.c \
cupsfilters/image-gif.c \
cupsfilters/image-jpeg.c \
cupsfilters/image-photocd.c \
cupsfilters/image-pix.c \
cupsfilters/image-png.c \
cupsfilters/image-pnm.c \
cupsfilters/image-private.h \
cupsfilters/image-sgi.c \
cupsfilters/image-sgi.h \
cupsfilters/image-sgilib.c \
cupsfilters/image-sun.c \
cupsfilters/image-tiff.c \
cupsfilters/image-zoom.c \
cupsfilters/ipp.c \
cupsfilters/lut.c \
cupsfilters/pack.c \
cupsfilters/ppdgenerator.c \
cupsfilters/raster.c \
cupsfilters/rgb.c \
cupsfilters/srgb.c \
$(pkgfiltersinclude_DATA)
libcupsfilters_la_LIBADD = \
$(CUPS_LIBS) \
$(LIBJPEG_LIBS) \
$(EXIF_LIBS) \
$(LIBPNG_LIBS) \
$(TIFF_LIBS) \
-lm
libcupsfilters_la_CFLAGS = \
$(CUPS_CFLAGS) \
$(LIBJPEG_CFLAGS) \
$(EXIF_CFLAGS) \
$(LIBPNG_CFLAGS) \
$(TIFF_CFLAGS)
libcupsfilters_la_LDFLAGS = \
-no-undefined \
-version-info 1
if BUILD_DBUS
libcupsfilters_la_CFLAGS += $(DBUS_CFLAGS) -DHAVE_DBUS
libcupsfilters_la_LIBADD += $(DBUS_LIBS)
endif
testcmyk_SOURCES = \
cupsfilters/testcmyk.c \
$(pkgfiltersinclude_DATA)
testcmyk_LDADD = \
libcupsfilters.la \
-lm
testdither_SOURCES = \
cupsfilters/testdither.c \
$(pkgfiltersinclude_DATA)
testdither_LDADD = \
libcupsfilters.la \
-lm
testimage_SOURCES = \
cupsfilters/testimage.c \
$(pkgfiltersinclude_DATA)
testimage_LDADD = \
$(LIBJPEG_LIBS) \
$(LIBPNG_LIBS) \
$(TIFF_LIBS) \
libcupsfilters.la \
-lm
testimage_CFLAGS = \
$(LIBJPEG_CFLAGS) \
$(LIBPNG_CFLAGS) \
$(TIFF_CFLAGS)
testrgb_SOURCES = \
cupsfilters/testrgb.c \
$(pkgfiltersinclude_DATA)
testrgb_LDADD = \
libcupsfilters.la \
-lm
EXTRA_DIST += \
$(pkgfiltersinclude_DATA) \
cupsfilters/image.pgm \
cupsfilters/image.ppm
# =========
# CUPS Data
# =========
pkgcupsdatadir = $(CUPS_DATADIR)/data
pkgcupsdata_DATA = \
data/default.pdf \
data/form_russian.pdf \
data/form_english.pdf \
data/form_english_in.odt \
data/form_russian_in.odt \
data/default-testpage.pdf \
data/testprint \
data/classified.pdf \
data/confidential.pdf \
data/secret.pdf \
data/standard.pdf \
data/topsecret.pdf \
data/unclassified.pdf
EXTRA_DIST += $(pkgcupsdata_DATA)
# ===========
# CUPS Config
# ===========
pkgcupsserverrootdir = $(CUPS_SERVERROOT)
pkgcupsserverroot_DATA = \
utils/cups-browsed.conf
# =======
# Drivers
# =======
pkgdriverdir = $(CUPS_DATADIR)/drv
gendrvfiles = \
drv/cupsfilters.drv
pkgdriver_DATA = $(gendrvfiles)
brldrvfiles = \
drv/generic-brf.drv \
drv/generic-ubrl.drv \
drv/indexv3.drv \
drv/indexv4.drv
if ENABLE_BRAILLE
pkgdriver_DATA += $(brldrvfiles)
endif
EXTRA_DIST += $(gendrvfiles) $(brldrvfiles)
# =======
# Definitions for drivers
# =======
pkgppdcdir = $(CUPS_DATADIR)/ppdc
genppdcfiles = \
filter/pcl.h \
filter/escp.h
pkgppdc_DATA = $(genppdcfiles)
GENERATED_LIBLOUIS = \
filter/braille/filters/liblouis3.defs \
filter/braille/filters/liblouis4.defs
GENERATED_DEFS = \
filter/braille/filters/liblouis1.defs \
filter/braille/filters/liblouis2.defs \
$(GENERATED_LIBLOUIS)
filter/braille/filters/liblouis1.defs: filter/braille/filters/liblouis1.defs.gen
$< > $@
filter/braille/filters/liblouis2.defs: filter/braille/filters/liblouis1.defs
sed -e "s/Braille transcription/Additional Braille transcription (2)/" \
-e "s/^ \\*Choice / Choice /" \
-e "s/^ Choice \"HyphLocale\// *Choice \"HyphLocale\//" \
-e s/LibLouis/LibLouis2/ \
< $< > $@
$(GENERATED_LIBLOUIS): filter/braille/filters/liblouis%.defs: filter/braille/filters/liblouis1.defs
sed -e "s/Braille transcription/Additional Braille transcription ($*)/" \
-e "s/^ \\*Choice / Choice /" \
-e "s/^ Choice \"None\// *Choice \"None\//" \
-e s/LibLouis/LibLouis$*/ \
< $< > $@
brlppdcfiles = \
filter/braille/drivers/common/media-braille.defs \
filter/braille/drivers/index/index.defs \
filter/braille/filters/braille.defs \
filter/braille/filters/imagemagick.defs \
filter/braille/filters/liblouis.defs \
filter/braille/drivers/common/fr-braille.po
if ENABLE_BRAILLE
pkgppdc_DATA += $(brlppdcfiles)
nodist_pkgppdc_DATA = \
$(GENERATED_DEFS)
endif
EXTRA_DIST += \
filter/braille/filters/liblouis1.defs.gen.in \
$(genppdcfiles) \
$(brlppdcfiles)
# =====
# MIMEs
# =====
pkgmimedir = $(CUPS_DATADIR)/mime
genmimefiles = \
mime/cupsfilters.types
pkgmime_DATA = \
$(genmimefiles) \
mime/cupsfilters.convs
popplermimefiles = \
mime/cupsfilters-poppler.convs
if ENABLE_POPPLER
pkgmime_DATA += $(popplermimefiles)
endif
gsmimefiles = \
mime/cupsfilters-ghostscript.convs
if ENABLE_GHOSTSCRIPT
pkgmime_DATA += $(gsmimefiles)
endif
mutoolmimefiles = \
mime/cupsfilters-mupdf.convs
if ENABLE_MUTOOL
pkgmime_DATA += $(mutoolmimefiles)
endif
brlmimefiles = \
mime/braille.convs \
mime/braille.types
if ENABLE_BRAILLE
pkgmime_DATA += $(brlmimefiles)
endif
EXTRA_DIST += \
$(genmimefiles) \
$(popplermimefiles) \
$(gsmimefiles) \
$(mutoolmimefiles) \
$(brlmimefiles) \
mime/cupsfilters.convs.in
# =================
# Braille aux files
# =================
if ENABLE_BRAILLE
pkgbrailledir = $(CUPS_DATADIR)/braille
nodist_pkgbraille_SCRIPTS = \
filter/braille/drivers/index/indexv4.sh \
filter/braille/drivers/index/indexv3.sh \
filter/braille/drivers/index/index.sh \
filter/braille/filters/cups-braille.sh
endif
# =================
# Fontembed library
# =================
pkgfontembedincludedir = $(includedir)/fontembed
pkgfontembedinclude_DATA = \
fontembed/bitset.h \
fontembed/embed.h \
fontembed/fontfile.h \
fontembed/iofn.h \
fontembed/sfnt.h
lib_LTLIBRARIES += libfontembed.la
check_PROGRAMS += \
test_analyze \
test_pdf \
test_ps
TESTS += \
test_analyze \
test_pdf \
test_ps
libfontembed_la_SOURCES = \
fontembed/aglfn13.c \
fontembed/bitset.h \
fontembed/dynstring.c \
fontembed/dynstring.h \
fontembed/embed.c \
fontembed/embed.h \
fontembed/embed_sfnt.c \
fontembed/embed_sfnt_int.h \
fontembed/embed_pdf.c \
fontembed/embed_pdf.h \
fontembed/embed_pdf_int.h \
fontembed/fontfile.c \
fontembed/fontfile.h \
fontembed/frequent.c \
fontembed/frequent.h \
fontembed/iofn.h \
fontembed/macroman.h \
fontembed/sfnt.c \
fontembed/sfnt.h \
fontembed/sfnt_int.h \
fontembed/sfnt_subset.c
libfontembed_la_LDFLAGS = \
-no-undefined \
-version-info 1
test_analyze_SOURCES = fontembed/test_analyze.c
test_analyze_LDADD = libfontembed.la
test_pdf_SOURCES = fontembed/test_pdf.c
test_pdf_LDADD = libfontembed.la
test_ps_SOURCES = fontembed/test_ps.c
test_ps_LDADD = libfontembed.la
EXTRA_DIST += \
$(pkgfontembedinclude_DATA) \
fontembed/README
pkgfilter_PROGRAMS =
pkgfilterdir = $(CUPS_SERVERBIN)/filter
# ==========
# PDF to PDF
# ==========
pkgfilter_PROGRAMS += pdftopdf
pdftopdf_SOURCES = \
filter/pdftopdf/pdftopdf.cc \
filter/pdftopdf/pdftopdf_jcl.cc \
filter/pdftopdf/pdftopdf_jcl.h \
filter/pdftopdf/pdftopdf_processor.cc \
filter/pdftopdf/pdftopdf_processor.h \
filter/pdftopdf/qpdf_pdftopdf_processor.cc \
filter/pdftopdf/qpdf_pdftopdf_processor.h \
filter/pdftopdf/pptypes.cc \
filter/pdftopdf/pptypes.h \
filter/pdftopdf/nup.cc \
filter/pdftopdf/nup.h \
filter/pdftopdf/intervalset.cc \
filter/pdftopdf/intervalset.h \
filter/pdftopdf/qpdf_tools.cc \
filter/pdftopdf/qpdf_tools.h \
filter/pdftopdf/qpdf_xobject.cc \
filter/pdftopdf/qpdf_xobject.h \
filter/pdftopdf/qpdf_pdftopdf.cc \
filter/pdftopdf/qpdf_pdftopdf.h \
filter/pdftopdf/qpdf_cm.cc \
filter/pdftopdf/qpdf_cm.h
pdftopdf_CFLAGS = \
$(LIBQPDF_CFLAGS) \
$(CUPS_CFLAGS)
# qpdf now needs at least c++17
#pdftopdf_CXXFLAGS = -std=c++0x $(pdftopdf_CFLAGS) # -std=c++11
pdftopdf_CXXFLAGS = $(pdftopdf_CFLAGS)
pdftopdf_LDADD = \
$(LIBQPDF_LIBS) \
$(CUPS_LIBS)
# ======================
# Simple filter binaries
# ======================
genfilterscripts = \
filter/imagetops \
filter/texttops \
filter/rastertopclm
pkgfilter_SCRIPTS = $(genfilterscripts)
gsfilterscripts = \
filter/gstopxl \
filter/gstopdf
if ENABLE_GHOSTSCRIPT
pkgfilter_SCRIPTS += $(gsfilterscripts)
endif
if ENABLE_BRAILLE
nodist_pkgfilter_SCRIPTS = \
filter/braille/drivers/generic/brftoembosser \
filter/braille/drivers/index/imageubrltoindexv3 \
filter/braille/drivers/index/imageubrltoindexv4 \
filter/braille/drivers/index/textbrftoindexv3 \
filter/braille/filters/imagetobrf \
filter/braille/filters/vectortopdf \
filter/braille/filters/vectortobrf \
filter/braille/filters/texttobrf \
filter/braille/filters/brftopagedbrf \
filter/braille/filters/musicxmltobrf
endif
pkgfilter_PROGRAMS += \
commandtoescpx \
commandtopclx \
sys5ippprinter \
texttotext \
pdftops \
rastertoescpx \
rastertopclx \
texttopdf \
rastertopdf \
bannertopdf \
rastertops
if ENABLE_URFTOPDF
pkgfilter_PROGRAMS += \
urftopdf
endif
if ENABLE_POPPLER
pkgfilter_PROGRAMS += \
pdftoraster
endif
if ENABLE_GHOSTSCRIPT
pkgfilter_PROGRAMS += \
gstoraster
endif
if ENABLE_MUTOOL
pkgfilter_PROGRAMS += \
mupdftoraster
endif
if ENABLE_FOOMATIC
pkgfilter_PROGRAMS += \
foomatic-rip
endif
if ENABLE_IMAGEFILTERS
pkgfilter_PROGRAMS += \
imagetopdf \
imagetoraster
endif
check_PROGRAMS += \
test_pdf1 \
test_pdf2
TESTS += \
test_pdf1 \
test_pdf2
# Not reliable bash script
#TESTS += filter/test.sh
EXTRA_DIST += \
$(genfilterscripts) \
$(gsfilterscripts) \
filter/test.sh
bannertopdf_SOURCES = \
filter/banner.c \
filter/banner.h \
filter/bannertopdf.c \
filter/pdf.cxx \
filter/pdf.h \
fontembed/embed.h \
fontembed/sfnt.h
EXTRA_bannertopdf_SOURCES = filter/getline.c
bannertopdf_CFLAGS = \
$(CUPS_CFLAGS) \
$(LIBJPEG_CFLAGS) \
$(LIBPNG_CFLAGS) \
$(LIBQPDF_CFLAGS) \
$(TIFF_CFLAGS) \
$(FONTCONFIG_CFLAGS) \
-I$(srcdir)/fontembed/
bannertopdf_CXXFLAGS = $(bannertopdf_CFLAGS)
bannertopdf_LDADD = \
$(GETLINE) \
$(CUPS_LIBS) \
$(LIBJPEG_LIBS) \
$(LIBPNG_LIBS) \
$(LIBQPDF_LIBS) \
$(TIFF_LIBS) \
$(FONTCONFIG_LIBS) \
libfontembed.la
bannertopdf_DEPENDENCIES = \
$(GETLINE) \
libfontembed.la
commandtoescpx_SOURCES = \
cupsfilters/driver.h \
filter/commandtoescpx.c \
filter/pcl.h
commandtoescpx_CFLAGS= \
$(CUPS_CFLAGS) \
-I$(srcdir)/cupsfilters/
commandtoescpx_LDADD = $(CUPS_LIBS)
commandtopclx_SOURCES = \
cupsfilters/driver.h \
filter/commandtopclx.c \
filter/pcl.h
commandtopclx_CFLAGS = \
$(CUPS_CFLAGS) \
-I$(srcdir)/cupsfilters/
commandtopclx_LDADD = $(CUPS_LIBS)
foomatic_rip_SOURCES = \
filter/foomatic-rip/foomaticrip.c \
filter/foomatic-rip/foomaticrip.h \
filter/foomatic-rip/options.c \
filter/foomatic-rip/options.h \
filter/foomatic-rip/pdf.c \
filter/foomatic-rip/pdf.h \
filter/foomatic-rip/postscript.c \
filter/foomatic-rip/postscript.h \
filter/foomatic-rip/process.c \
filter/foomatic-rip/process.h \
filter/foomatic-rip/renderer.c \
filter/foomatic-rip/renderer.h \
filter/foomatic-rip/spooler.c \
filter/foomatic-rip/spooler.h \
filter/foomatic-rip/util.c \
filter/foomatic-rip/util.h \
cupsfilters/colord.h
foomatic_rip_CFLAGS = \
-DCONFIG_PATH='"$(sysconfdir)/foomatic"' \
$(CUPS_CFLAGS) \
-I$(srcdir)/cupsfilters/
foomatic_rip_LDADD = \
$(CUPS_LIBS) \
-lm \
libcupsfilters.la
gstoraster_SOURCES = \
filter/gstoraster.c \
cupsfilters/colord.h \
cupsfilters/raster.h \
filter/pdf.cxx \
filter/pdf.h
gstoraster_CFLAGS = \
$(CUPS_CFLAGS) \
$(LIBQPDF_CFLAGS) \
-I$(srcdir)/cupsfilters/
gstoraster_LDADD = \
$(CUPS_LIBS) \
$(LIBQPDF_LIBS) \
libcupsfilters.la
imagetopdf_SOURCES = \
cupsfilters/image.h \
filter/common.c \
filter/common.h \
filter/imagetopdf.c
imagetopdf_CFLAGS = \
$(CUPS_CFLAGS) \
$(LIBJPEG_CFLAGS) \
$(LIBPNG_CFLAGS) \
$(TIFF_CFLAGS) \
-I$(srcdir)/cupsfilters/
imagetopdf_LDADD = \
$(CUPS_LIBS) \
$(LIBJPEG_LIBS) \
$(LIBPNG_LIBS) \
$(TIFF_LIBS) \
-lm \
libcupsfilters.la
imagetoraster_SOURCES = \
cupsfilters/image.h \
cupsfilters/image-private.h \
filter/common.c \
filter/common.h \
filter/imagetoraster.c
imagetoraster_CFLAGS = \
$(CUPS_CFLAGS) \
-I$(srcdir)/cupsfilters/
imagetoraster_LDADD = \
$(CUPS_LIBS) \
-lm \
libcupsfilters.la
urftopdf_SOURCES = \
filter/urftopdf.cpp \
filter/unirast.h
urftopdf_CXXFLAGS = \
$(LIBQPDF_CFLAGS)
urftopdf_LDADD = \
$(LIBQPDF_LIBS)
rastertopdf_SOURCES = \
filter/rastertopdf.cpp
rastertopdf_CXXFLAGS = \
$(CUPS_CFLAGS) \
$(LCMS_CFLAGS) \
$(LIBQPDF_CFLAGS) \
-I$(srcdir)/cupsfilters/
rastertopdf_LDADD = \
$(CUPS_LIBS) \
$(LCMS_LIBS) \
$(LIBQPDF_LIBS) \
libcupsfilters.la
mupdftoraster_SOURCES = \
filter/mupdftoraster.c
mupdftoraster_CFLAGS = \
$(CUPS_CFLAGS) \
-I$(srcdir)/cupsfilters/
mupdftoraster_LDADD = \
$(CUPS_LIBS) \
libcupsfilters.la
rastertops_SOURCES = \
filter/rastertops.c
rastertops_CFLAGS = \
$(CUPS_CFLAGS) \
-I$(srcdir)/cupsfilters/
rastertops_LDADD = \
$(CUPS_LIBS) \
-lz \
libcupsfilters.la
sys5ippprinter_SOURCES = \
filter/common.c \
filter/common.h \
filter/sys5ippprinter.c
EXTRA_sys5ippprinter_SOURCES = filter/strcasestr.c
sys5ippprinter_CFLAGS = $(CUPS_CFLAGS)
sys5ippprinter_LDADD = $(STRCASESTR) $(CUPS_LIBS)
sys5ippprinter_DEPENDENCIES = $(STRCASESTR)
texttotext_SOURCES = \
filter/texttotext.c
EXTRA_texttotext_SOURCES = filter/strcasestr.c
texttotext_CFLAGS = $(CUPS_CFLAGS)
texttotext_LDADD = $(STRCASESTR) $(CUPS_LIBS) $(LIBICONV)
texttotext_DEPENDENCIES = $(STRCASESTR)
pdftops_SOURCES = \
filter/common.c \
filter/common.h \
filter/pdftops.c \
filter/pdf.cxx \
filter/pdf.h
EXTRA_pdftops_SOURCES = filter/strcasestr.c
pdftops_CFLAGS = \
$(CUPS_CFLAGS) \
$(LIBQPDF_CFLAGS)
pdftops_LDADD = \
$(STRCASESTR) \
$(CUPS_LIBS) \
$(LIBQPDF_LIBS)
pdftops_DEPENDENCIES = $(STRCASESTR)
pdftoraster_SOURCES = \
filter/pdftoraster.cxx
pdftoraster_CFLAGS = \
$(CUPS_CFLAGS) \
$(LCMS_CFLAGS) \
$(LIBJPEG_CFLAGS) \
$(LIBPNG_CFLAGS) \
$(POPPLER_CFLAGS) \
$(TIFF_CFLAGS) \
-I$(srcdir)/cupsfilters/
pdftoraster_CXXFLAGS = $(pdftoraster_CFLAGS)
pdftoraster_LDADD = \
$(CUPS_LIBS) \
$(LCMS_LIBS) \
$(LIBJPEG_LIBS) \
$(LIBPNG_LIBS) \
$(POPPLER_LIBS) \
$(TIFF_LIBS) \
libcupsfilters.la
rastertoescpx_SOURCES = \
cupsfilters/driver.h \
filter/escp.h \
filter/rastertoescpx.c
rastertoescpx_CFLAGS = \
$(CUPS_CFLAGS) \
-I$(srcdir)/cupsfilters/
rastertoescpx_LDADD = \
$(CUPS_LIBS) \
libcupsfilters.la
rastertopclx_SOURCES = \
cupsfilters/driver.h \
filter/pcl.h \
filter/pcl-common.c \
filter/pcl-common.h \
filter/rastertopclx.c
rastertopclx_CFLAGS = \
$(CUPS_CFLAGS) \
$(LIBPNG_CFLAGS) \
-I$(srcdir)/cupsfilters/
rastertopclx_LDADD = \
$(CUPS_LIBS) \
$(LIBPNG_LIBS) \
libcupsfilters.la
test_pdf1_SOURCES = \
filter/pdfutils.c \
filter/pdfutils.h \
filter/test_pdf1.c \
fontembed/embed.h \
fontembed/sfnt.h
test_pdf1_CFLAGS = -I$(srcdir)/fontembed/
test_pdf1_LDADD = libfontembed.la
test_pdf2_SOURCES = \
filter/pdfutils.c \
filter/pdfutils.h \
filter/test_pdf2.c \
fontembed/embed.h \
fontembed/sfnt.h
test_pdf2_CFLAGS = -I$(srcdir)/fontembed/
test_pdf2_LDADD = libfontembed.la
texttopdf_SOURCES = \
filter/common.c \
filter/common.h \
filter/pdfutils.c \
filter/pdfutils.h \
filter/textcommon.c \
filter/textcommon.h \
filter/texttopdf.c \
fontembed/bitset.h \
fontembed/embed.h \
fontembed/fontfile.h \
fontembed/iofn.h \
fontembed/sfnt.h
texttopdf_CFLAGS = \
$(CUPS_CFLAGS) \
$(FONTCONFIG_CFLAGS) \
-I$(srcdir)/fontembed/
texttopdf_LDADD = \
$(CUPS_LIBS) \
$(FONTCONFIG_LIBS) \
libfontembed.la
# =====
# UTILS
# =====
cups_notifier_sources = \
cups-notifier.c \
cups-notifier.h
$(cups_notifier_sources): utils/org.cups.cupsd.Notifier.xml
gdbus-codegen \
--interface-prefix org.cups.cupsd \
--c-namespace Cups \
--generate-c-code cups-notifier \
utils/org.cups.cupsd.Notifier.xml
sbin_PROGRAMS = \
cups-browsed
cups_browsed_SOURCES = \
utils/cups-browsed.c
nodist_cups_browsed_SOURCES = \
$(cups_notifier_sources)
cups_browsed_CFLAGS = \
$(CUPS_CFLAGS) \
$(AVAHI_CFLAGS) \
$(AVAHI_GLIB_CFLAGS) \
$(GLIB_CFLAGS) \
$(GIO_CFLAGS) \
$(GIO_UNIX_CFLAGS) \
-I$(srcdir)/cupsfilters/
cups_browsed_CXXFLAGS = $(cups_browsed_CFLAGS)
cups_browsed_LDADD = \
$(CUPS_LIBS) \
$(AVAHI_LIBS) \
$(AVAHI_GLIB_LIBS) \
$(GLIB_LIBS) \
$(GIO_LIBS) \
$(GIO_UNIX_LIBS) \
libcupsfilters.la
initrcdir = $(INITDDIR)
initrc_SCRIPTS = utils/cups-browsed
cupsbrowsedmanpages = \
utils/cups-browsed.8 \
utils/cups-browsed.conf.5
man_MANS = $(cupsbrowsedmanpages)
driverlessmanpages = \
utils/driverless.1
if ENABLE_DRIVERLESS
man_MANS += $(driverlessmanpages)
endif
foomaticmanpages = \
filter/foomatic-rip/foomatic-rip.1
if ENABLE_FOOMATIC
man_MANS += $(foomaticmanpages)
endif
EXTRA_DIST += utils/cups-browsed.in \
$(cupsbrowsedmanpages) \
$(driverlessmanpages) \
filter/foomatic-rip/foomatic-rip.1.in \
utils/org.cups.cupsd.Notifier.xml
BUILT_SOURCES = $(cups_notifier_sources)
CLEANFILES = $(BUILT_SOURCES) $(GENERATED_DEFS)
# ===
# PPD
# ===
ppddir = $(datadir)/ppd/cupsfilters
genppdfiles = \
ppd/Fuji_Xerox-DocuPrint_CM305_df-PDF.ppd \
ppd/Generic-PDF_Printer-PDF.ppd \
ppd/HP-Color_LaserJet_CM3530_MFP-PDF.ppd \
ppd/Ricoh-PDF_Printer-PDF.ppd
ppd_DATA = $(genppdfiles)
gsppdfiles = \
ppd/pxlcolor.ppd \
ppd/pxlmono.ppd
if ENABLE_GHOSTSCRIPT
ppd_DATA += $(gsppdfiles)
endif
EXTRA_DIST += \
$(genppdfiles) \
$(gsppdfiles)
# =========
# Scripting
# =========
if WITH_PHP
phpextensiondir = $(PHPDIR)
phpextension_LTLIBRARIES = libphpcups.la
endif
libphpcups_la_SOURCES = \
scripting/php/phpcups.c \
scripting/php/phpcups.h
libphpcups_la_LIBADD = $(CUPS_LIBS)
libphpcups_la_CFLAGS = $(CUPS_CFLAGS)
libphpcups_la_LDFLAGS = -no-undefined
EXTRA_DIST += \
scripting/perl \
scripting/php/README \
scripting/php/phpcups.php
distclean-local:
rm -rf *.cache *~
install-exec-hook:
$(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
$(INSTALL) -d -m 755 $(DESTDIR)$(pkgfilterdir)
$(INSTALL) -d -m 755 $(DESTDIR)$(pkgbackenddir)
if ENABLE_FOOMATIC
$(LN_SRF) $(DESTDIR)$(pkgfilterdir)/foomatic-rip $(DESTDIR)$(bindir)
endif
if ENABLE_DRIVERLESS
$(LN_SRF) $(DESTDIR)$(pkgppdgendir)/driverless $(DESTDIR)$(bindir)
$(LN_SRF) $(DESTDIR)$(pkgppdgendir)/driverless $(DESTDIR)$(pkgbackenddir)
$(LN_SRF) $(DESTDIR)$(pkgppdgendir)/driverless-fax $(DESTDIR)$(bindir)
$(LN_SRF) $(DESTDIR)$(pkgppdgendir)/driverless-fax $(DESTDIR)$(pkgbackenddir)
endif
if ENABLE_BRAILLE
$(LN_S) -f imagetobrf $(DESTDIR)$(pkgfilterdir)/imagetoubrl
$(LN_S) -f vectortopdf $(DESTDIR)$(pkgfilterdir)/svgtopdf
$(LN_S) -f vectortopdf $(DESTDIR)$(pkgfilterdir)/xfigtopdf
$(LN_S) -f vectortopdf $(DESTDIR)$(pkgfilterdir)/wmftopdf
$(LN_S) -f vectortopdf $(DESTDIR)$(pkgfilterdir)/emftopdf
$(LN_S) -f vectortopdf $(DESTDIR)$(pkgfilterdir)/cgmtopdf
$(LN_S) -f vectortopdf $(DESTDIR)$(pkgfilterdir)/cmxtopdf
$(LN_S) -f vectortobrf $(DESTDIR)$(pkgfilterdir)/vectortoubrl
$(LN_S) -f textbrftoindexv3 $(DESTDIR)$(pkgfilterdir)/textbrftoindexv4
endif
install-data-hook:
if RCLINKS
for level in $(RCLEVELS); do \
$(INSTALL) -d -m 755 $(DESTDIR)$(INITDIR)/rc$${level}.d; \
$(LN_S) -f ../init.d/cups-browsed $(DESTDIR)$(INITDIR)/rc$${level}.d/S$(RCSTART)cups-browsed; \
$(LN_S) -f ../init.d/cups-browsed $(DESTDIR)$(INITDIR)/rc$${level}.d/K$(RCSTOP)cups-browsed; \
done; \
$(INSTALL) -d -m 755 $(DESTDIR)$(INITDIR)/rc0.d; \
$(LN_S) -f ../init.d/cups-browsed $(DESTDIR)$(INITDIR)/rc0.d/K$(RCSTOP)cups-browsed;
endif
$(LN_S) -f pdf.utf-8.simple \
$(DESTDIR)$(pkgcharsetdir)/pdf.utf-8
chmod 700 $(DESTDIR)/$(pkgbackenddir)/implicitclass
if ENABLE_BRAILLE
chmod 700 $(DESTDIR)/$(pkgbackenddir)/cups-brf
endif
uninstall-hook:
if RCLINKS
if test "x$(INITDIR)" != x; then \
$(RM) $(DESTDIR)$(BUILDROOT)$(INITDIR)/rc?.d/[SK]??cups-browsed || :; \
rmdir $(DESTDIR)$(BUILDROOT)$(INITDIR)/rc?.d || :;\
fi
endif
$(RM) $(DESTDIR)$(pkgcharsetdir)/pdf.utf-8
if ENABLE_FOOMATIC
$(RM) $(DESTDIR)$(bindir)/foomatic-rip
endif
if ENABLE_DRIVERLESS
$(RM) $(DESTDIR)$(bindir)/driverless
$(RM) $(DESTDIR)$(pkgbackenddir)/driverless
$(RM) $(DESTDIR)$(bindir)/driverless-fax
$(RM) $(DESTDIR)$(pkgbackenddir)/driverless-fax
endif
if ENABLE_BRAILLE
$(RM) $(DESTDIR)$(pkgfilterdir)/imagetoubrl
$(RM) $(DESTDIR)$(pkgfilterdir)/svgtopdf
$(RM) $(DESTDIR)$(pkgfilterdir)/xfigtopdf
$(RM) $(DESTDIR)$(pkgfilterdir)/wmftopdf
$(RM) $(DESTDIR)$(pkgfilterdir)/emftopdf
$(RM) $(DESTDIR)$(pkgfilterdir)/cgmtopdf
$(RM) $(DESTDIR)$(pkgfilterdir)/cmxtopdf
$(RM) $(DESTDIR)$(pkgfilterdir)/vectortoubrl
$(RM) $(DESTDIR)$(pkgfilterdir)/textbrftoindexv4
endif
SUBDIRS =
|