blob: 5952b5a2a68f818062888776a044de1cdcb78ccb [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
Andrew Geissler9aee5002022-03-30 16:27:02 +00004LICENSE = "GPL-2.0-only & LGPL-2.0-only & MIT & GPL-2.0-or-later & GPL-3.0-only"
Andrew Geissler595f6302022-01-24 19:11:47 +00005LIC_FILES_CHKSUM = "file://COPYING;md5=2d77679ce6a2cc4d873d4ebbf2a401e6"
Brad Bishope42b3e32020-01-15 22:08:42 -05006
7SECTION = "console/utils"
8
9DEPENDS = "cups glib-2.0 glib-2.0-native dbus dbus-glib lcms ghostscript poppler qpdf libpng"
Patrick Williams213cb262021-08-07 19:21:33 -050010DEPENDS:class-native = "poppler-native glib-2.0-native dbus-native pkgconfig-native gettext-native libpng-native"
Brad Bishope42b3e32020-01-15 22:08:42 -050011
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
Patrick Williams213cb262021-08-07 19:21:33 -050026EXTRA_OECONF:class-native += " --with-pdftops=pdftops \
Brad Bishope42b3e32020-01-15 22:08:42 -050027 --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
Patrick Williams213cb262021-08-07 19:21:33 -050049FILES:${PN}-gst = "\
Brad Bishop0e2770c2020-01-21 07:31:46 -050050 ${libexecdir}/cups/filter/gsto* \
Brad Bishope42b3e32020-01-15 22:08:42 -050051 "
52
Patrick Williams213cb262021-08-07 19:21:33 -050053FILES:${PN}-data = "\
Brad Bishope42b3e32020-01-15 22:08:42 -050054 ${datadir}/cups/data \
55 "
56
Patrick Williams213cb262021-08-07 19:21:33 -050057FILES:${PN}-dbg += "\
Brad Bishop0e2770c2020-01-21 07:31:46 -050058 ${libexecdir}/cups/backend/.debug \
59 ${libexecdir}/cups/driver/.debug \
60 ${libexecdir}/cups/filter/.debug \
Brad Bishope42b3e32020-01-15 22:08:42 -050061 "
62
Patrick Williams213cb262021-08-07 19:21:33 -050063FILES:${PN} += "\
Brad Bishop0e2770c2020-01-21 07:31:46 -050064 ${libexecdir}/cups \
65 ${datadir}/ppd/ \
Brad Bishope42b3e32020-01-15 22:08:42 -050066 ${datadir}/cups/charsets \
67 ${datadir}/cups/drv \
68 ${datadir}/cups/mime \
69 ${datadir}/cups/ppdc \
Brad Bishope42b3e32020-01-15 22:08:42 -050070 ${datadir}/cups/banners \
Brad Bishope42b3e32020-01-15 22:08:42 -050071"
72
Patrick Williams213cb262021-08-07 19:21:33 -050073do_install:append() {
Brad Bishop0e2770c2020-01-21 07:31:46 -050074 # remove braille dir
75 rm -rf ${D}${datadir}/cups/braille
Brad Bishope42b3e32020-01-15 22:08:42 -050076
77 # remove sysroot path contamination from pkgconfig file
78 sed -i -e 's:${STAGING_DIR_TARGET}::' ${D}/${libdir}/pkgconfig/libcupsfilters.pc
79}
80
Patrick Williams213cb262021-08-07 19:21:33 -050081RDEPENDS:${PN} += "bash"