blob: 45bdab3836cd14b31dc626744716b5bc460565dd [file] [log] [blame]
Brad Bishope42b3e32020-01-15 22:08:42 -05001DESCRIPTION = "CUPS backends, filters, and other software"
2HOMEPAGE = "http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters"
3
4LICENSE = "GPLv2 & LGPLv2 & MIT & GPLv2+ & GPLv3"
5LIC_FILES_CHKSUM = "file://COPYING;md5=516215fd57564996d70327db19b368ff"
6
7SECTION = "console/utils"
8
9DEPENDS = "cups glib-2.0 glib-2.0-native dbus dbus-glib lcms ghostscript poppler qpdf libpng"
10DEPENDS_class-native = "poppler-native glib-2.0-native dbus-native pkgconfig-native gettext-native libpng-native"
11
12SRC_URI = "http://openprinting.org/download/cups-filters/cups-filters-${PV}.tar.gz"
13
14inherit autotools-brokensep gettext pkgconfig
15
16EXTRA_OECONF += " --enable-ghostscript --disable-ldap \
17 --with-pdftops=hybrid --enable-imagefilters \
18 --enable-ghostscript --with-gs-path=${bindir}/gs \
19 --with-pdftops-path=${bindir}/gs \
20 --with-fontdir=${datadir}/fonts --with-rcdir=no \
21 --with-cups-rundir=${localstatedir}/run/cups \
22 --localstatedir=${localstatedir}/var \
23 --with-rcdir=no \
24 --without-php"
25
26EXTRA_OECONF_class-native += " --with-pdftops=pdftops \
27 --disable-avahi --disable-ghostscript \
28 --disable-ldap \
29 --with-png --without-jpeg --without-tiff"
30
31BBCLASSEXTEND = "native"
32
33PACKAGECONFIG[jpeg] = "--with-jpeg,--without-jpeg,jpeg"
34PACKAGECONFIG[png] = "--with-png,--without-png,libpng"
35PACKAGECONFIG[tiff] = "--with-tiff,--without-tiff,tiff"
36
37PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)}"
38
39PACKAGECONFIG[avahi] = "--enable-avahi,--disable-avahi,avahi"
40PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus"
41
42DIRFILES = "1"
43
44PACKAGES =+ "\
45 ${PN}-gst \
46 ${PN}-data \
47 "
48
49FILES_${PN}-gst = "\
50 ${libdir}/cups/filter/gstopxl \
51 ${libdir}/cups/filter/gstoraster \
52 "
53
54FILES_${PN}-data = "\
55 ${datadir}/cups/data \
56 "
57
58FILES_${PN}-dbg += "\
59 ${libdir}/cups/filter/.debug \
60 ${libdir}/cups/backend/.debug \
61 "
62
63FILES_${PN} += "\
64 ${libdir}/cups/filter \
65 ${libdir}/cups/backend \
66 ${libdir}/cups/driver \
67 ${datadir}/cups/charsets \
68 ${datadir}/cups/drv \
69 ${datadir}/cups/mime \
70 ${datadir}/cups/ppdc \
71 ${datadir}/ppd/cupsfilters \
72 ${datadir}/cups/braille \
73 ${datadir}/cups/banners \
74 ${datadir}/cups/braille/index.sh \
75 ${datadir}/cups/braille/cups-braille.sh \
76 ${datadir}/cups/braille/indexv3.sh \
77 ${datadir}/cups/braille/indexv4.sh \
78 ${datadir}/cups/banners/topsecret \
79 ${datadir}/cups/banners/secret \
80 ${datadir}/cups/banners/confidential \
81 ${datadir}/cups/banners/unclassified \
82 ${datadir}/cups/banners/form \
83 ${datadir}/cups/banners/classified \
84 ${datadir}/cups/banners/standard \
85"
86
87do_install_append() {
88 # remove banners, braille dirs
89 rm -rf ${D}${datadir}/cups/{banners,braille}
90
91 # remove sysroot path contamination from pkgconfig file
92 sed -i -e 's:${STAGING_DIR_TARGET}::' ${D}/${libdir}/pkgconfig/libcupsfilters.pc
93}
94
95RDEPENDS_${PN} += "bash"