Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 1 | DESCRIPTION = "CUPS backends, filters, and other software" |
| 2 | HOMEPAGE = "http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters" |
| 3 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 4 | LICENSE = "GPL-2.0-only & LGPL-2.0-only & MIT & GPL-2.0-or-later & GPL-3.0-only" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=2d77679ce6a2cc4d873d4ebbf2a401e6" |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 6 | |
| 7 | SECTION = "console/utils" |
| 8 | |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 9 | DEPENDS = "cups glib-2.0 glib-2.0-native dbus dbus-glib lcms ghostscript poppler qpdf libpng libexif" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 10 | DEPENDS:class-native = "poppler-native glib-2.0-native dbus-native pkgconfig-native gettext-native libpng-native" |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 11 | |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 12 | SRC_URI = "https://github.com/OpenPrinting/${BPN}/releases/download/${PV}/${BP}.tar.xz \ |
| 13 | file://0001-use-noexcept-false-instead-of-throw-from-c-17-onward.patch" |
| 14 | SRC_URI[sha256sum] = "270a3752a960368aa99d431fb5d34f4039b2ac943c576d840612d1d8185c9bb9" |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 15 | |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 16 | inherit autotools-brokensep gettext pkgconfig github-releases |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 17 | |
| 18 | EXTRA_OECONF += " --enable-ghostscript --disable-ldap \ |
| 19 | --with-pdftops=hybrid --enable-imagefilters \ |
| 20 | --enable-ghostscript --with-gs-path=${bindir}/gs \ |
| 21 | --with-pdftops-path=${bindir}/gs \ |
| 22 | --with-fontdir=${datadir}/fonts --with-rcdir=no \ |
| 23 | --with-cups-rundir=${localstatedir}/run/cups \ |
| 24 | --localstatedir=${localstatedir}/var \ |
| 25 | --with-rcdir=no \ |
| 26 | --without-php" |
| 27 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 28 | EXTRA_OECONF:class-native += " --with-pdftops=pdftops \ |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 29 | --disable-avahi --disable-ghostscript \ |
| 30 | --disable-ldap \ |
| 31 | --with-png --without-jpeg --without-tiff" |
| 32 | |
| 33 | BBCLASSEXTEND = "native" |
| 34 | |
| 35 | PACKAGECONFIG[jpeg] = "--with-jpeg,--without-jpeg,jpeg" |
| 36 | PACKAGECONFIG[png] = "--with-png,--without-png,libpng" |
| 37 | PACKAGECONFIG[tiff] = "--with-tiff,--without-tiff,tiff" |
| 38 | |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 39 | PACKAGECONFIG ??= "dbus ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)}" |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 40 | |
| 41 | PACKAGECONFIG[avahi] = "--enable-avahi,--disable-avahi,avahi" |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 42 | PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,,dbus" |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 43 | |
| 44 | DIRFILES = "1" |
| 45 | |
| 46 | PACKAGES =+ "\ |
| 47 | ${PN}-gst \ |
| 48 | ${PN}-data \ |
| 49 | " |
| 50 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 51 | FILES:${PN}-gst = "\ |
Brad Bishop | 0e2770c | 2020-01-21 07:31:46 -0500 | [diff] [blame] | 52 | ${libexecdir}/cups/filter/gsto* \ |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 53 | " |
| 54 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 55 | FILES:${PN}-data = "\ |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 56 | ${datadir}/cups/data \ |
| 57 | " |
| 58 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 59 | FILES:${PN}-dbg += "\ |
Brad Bishop | 0e2770c | 2020-01-21 07:31:46 -0500 | [diff] [blame] | 60 | ${libexecdir}/cups/backend/.debug \ |
| 61 | ${libexecdir}/cups/driver/.debug \ |
| 62 | ${libexecdir}/cups/filter/.debug \ |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 63 | " |
| 64 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 65 | FILES:${PN} += "\ |
Brad Bishop | 0e2770c | 2020-01-21 07:31:46 -0500 | [diff] [blame] | 66 | ${libexecdir}/cups \ |
| 67 | ${datadir}/ppd/ \ |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 68 | ${datadir}/cups/charsets \ |
| 69 | ${datadir}/cups/drv \ |
| 70 | ${datadir}/cups/mime \ |
| 71 | ${datadir}/cups/ppdc \ |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 72 | ${datadir}/cups/banners \ |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 73 | " |
| 74 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 75 | do_install:append() { |
Brad Bishop | 0e2770c | 2020-01-21 07:31:46 -0500 | [diff] [blame] | 76 | # remove braille dir |
| 77 | rm -rf ${D}${datadir}/cups/braille |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 78 | |
| 79 | # remove sysroot path contamination from pkgconfig file |
| 80 | sed -i -e 's:${STAGING_DIR_TARGET}::' ${D}/${libdir}/pkgconfig/libcupsfilters.pc |
| 81 | } |
| 82 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 83 | RDEPENDS:${PN} += "bash" |