diff options
| -rw-r--r-- | meta-oe/recipes-printing/cups/cups-filters.inc | 95 | ||||
| -rw-r--r-- | meta-oe/recipes-printing/cups/cups-filters_1.26.0.bb | 4 |
2 files changed, 99 insertions, 0 deletions
diff --git a/meta-oe/recipes-printing/cups/cups-filters.inc b/meta-oe/recipes-printing/cups/cups-filters.inc new file mode 100644 index 0000000000..45bdab3836 --- /dev/null +++ b/meta-oe/recipes-printing/cups/cups-filters.inc | |||
| @@ -0,0 +1,95 @@ | |||
| 1 | DESCRIPTION = "CUPS backends, filters, and other software" | ||
| 2 | HOMEPAGE = "http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters" | ||
| 3 | |||
| 4 | LICENSE = "GPLv2 & LGPLv2 & MIT & GPLv2+ & GPLv3" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=516215fd57564996d70327db19b368ff" | ||
| 6 | |||
| 7 | SECTION = "console/utils" | ||
| 8 | |||
| 9 | DEPENDS = "cups glib-2.0 glib-2.0-native dbus dbus-glib lcms ghostscript poppler qpdf libpng" | ||
| 10 | DEPENDS_class-native = "poppler-native glib-2.0-native dbus-native pkgconfig-native gettext-native libpng-native" | ||
| 11 | |||
| 12 | SRC_URI = "http://openprinting.org/download/cups-filters/cups-filters-${PV}.tar.gz" | ||
| 13 | |||
| 14 | inherit autotools-brokensep gettext pkgconfig | ||
| 15 | |||
| 16 | EXTRA_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 | |||
| 26 | EXTRA_OECONF_class-native += " --with-pdftops=pdftops \ | ||
| 27 | --disable-avahi --disable-ghostscript \ | ||
| 28 | --disable-ldap \ | ||
| 29 | --with-png --without-jpeg --without-tiff" | ||
| 30 | |||
| 31 | BBCLASSEXTEND = "native" | ||
| 32 | |||
| 33 | PACKAGECONFIG[jpeg] = "--with-jpeg,--without-jpeg,jpeg" | ||
| 34 | PACKAGECONFIG[png] = "--with-png,--without-png,libpng" | ||
| 35 | PACKAGECONFIG[tiff] = "--with-tiff,--without-tiff,tiff" | ||
| 36 | |||
| 37 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)}" | ||
| 38 | |||
| 39 | PACKAGECONFIG[avahi] = "--enable-avahi,--disable-avahi,avahi" | ||
| 40 | PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus" | ||
| 41 | |||
| 42 | DIRFILES = "1" | ||
| 43 | |||
| 44 | PACKAGES =+ "\ | ||
| 45 | ${PN}-gst \ | ||
| 46 | ${PN}-data \ | ||
| 47 | " | ||
| 48 | |||
| 49 | FILES_${PN}-gst = "\ | ||
| 50 | ${libdir}/cups/filter/gstopxl \ | ||
| 51 | ${libdir}/cups/filter/gstoraster \ | ||
| 52 | " | ||
| 53 | |||
| 54 | FILES_${PN}-data = "\ | ||
| 55 | ${datadir}/cups/data \ | ||
| 56 | " | ||
| 57 | |||
| 58 | FILES_${PN}-dbg += "\ | ||
| 59 | ${libdir}/cups/filter/.debug \ | ||
| 60 | ${libdir}/cups/backend/.debug \ | ||
| 61 | " | ||
| 62 | |||
| 63 | FILES_${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 | |||
| 87 | do_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 | |||
| 95 | RDEPENDS_${PN} += "bash" | ||
diff --git a/meta-oe/recipes-printing/cups/cups-filters_1.26.0.bb b/meta-oe/recipes-printing/cups/cups-filters_1.26.0.bb new file mode 100644 index 0000000000..619602a6cc --- /dev/null +++ b/meta-oe/recipes-printing/cups/cups-filters_1.26.0.bb | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | include cups-filters.inc | ||
| 2 | |||
| 3 | SRC_URI[md5sum] = "afb278c77bb195c2a32fc64e5c8378fb" | ||
| 4 | SRC_URI[sha256sum] = "ff8679fcd0c31c25d229262c7ad100ba161ef6b2aa455a2df673dd74ef93f488" | ||
