diff options
| -rw-r--r-- | meta-oe/recipes-printing/cups/cups-filters_1.28.17.bb | 84 | ||||
| -rw-r--r-- | meta-oe/recipes-printing/cups/cups-filters_2.0.0.bb | 27 | ||||
| -rw-r--r-- | meta-oe/recipes-printing/cups/libcupsfilters/0001-use-noexcept-false-instead-of-throw-from-c-17-onward.patch (renamed from meta-oe/recipes-printing/cups/cups-filters/0001-use-noexcept-false-instead-of-throw-from-c-17-onward.patch) | 14 | ||||
| -rw-r--r-- | meta-oe/recipes-printing/cups/libcupsfilters_2.0.0.bb | 17 | ||||
| -rw-r--r-- | meta-oe/recipes-printing/cups/libppd_2.0.0.bb | 18 |
5 files changed, 69 insertions, 91 deletions
diff --git a/meta-oe/recipes-printing/cups/cups-filters_1.28.17.bb b/meta-oe/recipes-printing/cups/cups-filters_1.28.17.bb deleted file mode 100644 index dc527bf721..0000000000 --- a/meta-oe/recipes-printing/cups/cups-filters_1.28.17.bb +++ /dev/null | |||
| @@ -1,84 +0,0 @@ | |||
| 1 | DESCRIPTION = "CUPS backends, filters, and other software" | ||
| 2 | HOMEPAGE = "http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters" | ||
| 3 | |||
| 4 | LICENSE = "GPL-2.0-only & LGPL-2.0-only & MIT & GPL-2.0-or-later & GPL-3.0-only" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=2d77679ce6a2cc4d873d4ebbf2a401e6" | ||
| 6 | |||
| 7 | SECTION = "console/utils" | ||
| 8 | |||
| 9 | DEPENDS = "cups glib-2.0 glib-2.0-native dbus dbus-glib lcms poppler qpdf libpng libexif" | ||
| 10 | DEPENDS:class-native = "poppler-native glib-2.0-native dbus-native pkgconfig-native gettext-native libpng-native" | ||
| 11 | |||
| 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" | ||
| 15 | |||
| 16 | inherit autotools-brokensep gettext pkgconfig github-releases | ||
| 17 | |||
| 18 | EXTRA_OECONF += " --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 | |||
| 28 | EXTRA_OECONF:class-native += " --with-pdftops=pdftops \ | ||
| 29 | --disable-avahi --disable-ghostscript \ | ||
| 30 | --disable-ldap \ | ||
| 31 | --with-png --without-jpeg --without-tiff" | ||
| 32 | |||
| 33 | CXXFLAGS += "-std=c++17" | ||
| 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 | |||
| 39 | PACKAGECONFIG ??= "dbus ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)}" | ||
| 40 | |||
| 41 | PACKAGECONFIG[avahi] = "--enable-avahi,--disable-avahi,avahi" | ||
| 42 | PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,,dbus" | ||
| 43 | |||
| 44 | DIRFILES = "1" | ||
| 45 | |||
| 46 | PACKAGES =+ "\ | ||
| 47 | ${PN}-gst \ | ||
| 48 | ${PN}-data \ | ||
| 49 | " | ||
| 50 | |||
| 51 | FILES:${PN}-gst = "\ | ||
| 52 | ${libexecdir}/cups/filter/gsto* \ | ||
| 53 | " | ||
| 54 | RDEPENDS:${PN}-gst += "ghostscript" | ||
| 55 | |||
| 56 | FILES:${PN}-data = "\ | ||
| 57 | ${datadir}/cups/data \ | ||
| 58 | " | ||
| 59 | |||
| 60 | FILES:${PN}-dbg += "\ | ||
| 61 | ${libexecdir}/cups/backend/.debug \ | ||
| 62 | ${libexecdir}/cups/driver/.debug \ | ||
| 63 | ${libexecdir}/cups/filter/.debug \ | ||
| 64 | " | ||
| 65 | |||
| 66 | FILES:${PN} += "\ | ||
| 67 | ${libexecdir}/cups \ | ||
| 68 | ${datadir}/ppd/ \ | ||
| 69 | ${datadir}/cups/charsets \ | ||
| 70 | ${datadir}/cups/drv \ | ||
| 71 | ${datadir}/cups/mime \ | ||
| 72 | ${datadir}/cups/ppdc \ | ||
| 73 | ${datadir}/cups/banners \ | ||
| 74 | " | ||
| 75 | RDEPENDS:${PN} += "bash" | ||
| 76 | RDEPENDS:${PN} += "ghostscript" | ||
| 77 | |||
| 78 | do_install:append() { | ||
| 79 | # remove braille dir | ||
| 80 | rm -rf ${D}${datadir}/cups/braille | ||
| 81 | |||
| 82 | # remove sysroot path contamination from pkgconfig file | ||
| 83 | sed -i -e 's:${STAGING_DIR_TARGET}::' ${D}/${libdir}/pkgconfig/libcupsfilters.pc | ||
| 84 | } | ||
diff --git a/meta-oe/recipes-printing/cups/cups-filters_2.0.0.bb b/meta-oe/recipes-printing/cups/cups-filters_2.0.0.bb new file mode 100644 index 0000000000..0370ae79d2 --- /dev/null +++ b/meta-oe/recipes-printing/cups/cups-filters_2.0.0.bb | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | DESCRIPTION = "CUPS backends, filters, and other software" | ||
| 2 | HOMEPAGE = "http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters" | ||
| 3 | LICENSE = "Apache-2.0" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6d5b952b53dbe7752199903d082e5f07" | ||
| 5 | |||
| 6 | DEPENDS = "libcupsfilters libppd glib-2.0 poppler" | ||
| 7 | |||
| 8 | SRC_URI = "https://github.com/OpenPrinting/${BPN}/releases/download/${PV}/${BP}.tar.xz" | ||
| 9 | SRC_URI[sha256sum] = "b5152e3dd148ed73835827ac2f219df7cf5808dbf9dbaec2aa0127b44de800d8" | ||
| 10 | |||
| 11 | inherit autotools gettext pkgconfig github-releases | ||
| 12 | |||
| 13 | EXTRA_OECONF += " \ | ||
| 14 | --enable-imagefilters \ | ||
| 15 | --enable-ghostscript --with-gs-path=${bindir}/gs \ | ||
| 16 | --with-fontdir=${datadir}/fonts \ | ||
| 17 | --localstatedir=${localstatedir} \ | ||
| 18 | " | ||
| 19 | |||
| 20 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)}" | ||
| 21 | PACKAGECONFIG[avahi] = "--enable-avahi,--disable-avahi,avahi" | ||
| 22 | |||
| 23 | FILES:${PN} += "${datadir}" | ||
| 24 | FILES:${PN}-dev += "${datadir}/ppdc" | ||
| 25 | |||
| 26 | RDEPENDS:${PN} += "bash" | ||
| 27 | RDEPENDS:${PN} += "ghostscript" | ||
diff --git a/meta-oe/recipes-printing/cups/cups-filters/0001-use-noexcept-false-instead-of-throw-from-c-17-onward.patch b/meta-oe/recipes-printing/cups/libcupsfilters/0001-use-noexcept-false-instead-of-throw-from-c-17-onward.patch index 5de8dae006..72bbf10a14 100644 --- a/meta-oe/recipes-printing/cups/cups-filters/0001-use-noexcept-false-instead-of-throw-from-c-17-onward.patch +++ b/meta-oe/recipes-printing/cups/libcupsfilters/0001-use-noexcept-false-instead-of-throw-from-c-17-onward.patch | |||
| @@ -15,22 +15,22 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 15 | filter/pdftoraster.cxx | 4 ++++ | 15 | filter/pdftoraster.cxx | 4 ++++ |
| 16 | 1 file changed, 4 insertions(+) | 16 | 1 file changed, 4 insertions(+) |
| 17 | 17 | ||
| 18 | diff --git a/filter/pdftoraster.cxx b/filter/pdftoraster.cxx | 18 | diff --git a/cupsfilters/pdftoraster.cxx b/cupsfilters/pdftoraster.cxx |
| 19 | index e8af184fb..e91e22459 100755 | 19 | index e8af184fb..e91e22459 100755 |
| 20 | --- a/filter/pdftoraster.cxx | 20 | @@ -2198,7 +2198,11 @@ |
| 21 | +++ b/filter/pdftoraster.cxx | 21 | // For compatibility with g++ >= 4.7 compilers _GLIBCXX_THROW |
| 22 | @@ -2148,7 +2148,11 @@ int main(int argc, char *argv[]) { | 22 | // should be used as a guard, otherwise use traditional definition |
| 23 | /* For compatibility with g++ >= 4.7 compilers _GLIBCXX_THROW | ||
| 24 | * should be used as a guard, otherwise use traditional definition */ | ||
| 25 | #ifndef _GLIBCXX_THROW | 23 | #ifndef _GLIBCXX_THROW |
| 24 | -#define _GLIBCXX_THROW throw | ||
| 26 | +#if __cplusplus < 201703L | 25 | +#if __cplusplus < 201703L |
| 27 | #define _GLIBCXX_THROW throw | 26 | +#define _GLIBCXX_THROW throw |
| 28 | +#else | 27 | +#else |
| 29 | +#define _GLIBCXX_THROW(x) noexcept(false) | 28 | +#define _GLIBCXX_THROW(x) noexcept(false) |
| 30 | +#endif | 29 | +#endif |
| 31 | #endif | 30 | #endif |
| 32 | 31 | ||
| 33 | void * operator new(size_t size) _GLIBCXX_THROW (std::bad_alloc) | 32 | void * operator new(size_t size) _GLIBCXX_THROW (std::bad_alloc) |
| 33 | |||
| 34 | -- | 34 | -- |
| 35 | 2.39.1 | 35 | 2.39.1 |
| 36 | 36 | ||
diff --git a/meta-oe/recipes-printing/cups/libcupsfilters_2.0.0.bb b/meta-oe/recipes-printing/cups/libcupsfilters_2.0.0.bb new file mode 100644 index 0000000000..7f7174d940 --- /dev/null +++ b/meta-oe/recipes-printing/cups/libcupsfilters_2.0.0.bb | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | DESCRIPTION = "OpenPrinting libcupsfilters" | ||
| 2 | HOMEPAGE = "https://github.com/OpenPrinting" | ||
| 3 | LICENSE = "Apache-2.0" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=aab2024bd2a475438a154cd1640c9684" | ||
| 5 | |||
| 6 | DEPENDS = "cups fontconfig libexif dbus lcms qpdf poppler libpng jpeg tiff" | ||
| 7 | |||
| 8 | SRC_URI = " \ | ||
| 9 | https://github.com/OpenPrinting/${BPN}/releases/download/${PV}/${BP}.tar.xz \ | ||
| 10 | file://0001-use-noexcept-false-instead-of-throw-from-c-17-onward.patch \ | ||
| 11 | " | ||
| 12 | SRC_URI[sha256sum] = "542f2bfbc58136a4743c11dc8c86cee03c9aca705612654e36ac34aa0d9aa601" | ||
| 13 | |||
| 14 | inherit autotools gettext pkgconfig github-releases | ||
| 15 | |||
| 16 | FILES:${PN} += "${datadir}" | ||
| 17 | RDEPENDS:${PN} += "ghostscript" | ||
diff --git a/meta-oe/recipes-printing/cups/libppd_2.0.0.bb b/meta-oe/recipes-printing/cups/libppd_2.0.0.bb new file mode 100644 index 0000000000..99b1f6e730 --- /dev/null +++ b/meta-oe/recipes-printing/cups/libppd_2.0.0.bb | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | DESCRIPTION = "OpenPrinting libppd" | ||
| 2 | HOMEPAGE = "https://github.com/OpenPrinting" | ||
| 3 | LICENSE = "Apache-2.0" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=c1fca671047153ce6825c4ab06f2ab49" | ||
| 5 | |||
| 6 | DEPENDS = "libcupsfilters" | ||
| 7 | |||
| 8 | SRC_URI = "https://github.com/OpenPrinting/${BPN}/releases/download/${PV}/${BP}.tar.xz" | ||
| 9 | SRC_URI[sha256sum] = "882d3c659a336e91559de8f3c76fc26197fe6e5539d9b484a596e29a5a4e0bc8" | ||
| 10 | |||
| 11 | inherit autotools gettext pkgconfig github-releases | ||
| 12 | |||
| 13 | do_install:append() { | ||
| 14 | rm -r ${D}${bindir} | ||
| 15 | } | ||
| 16 | |||
| 17 | FILES:${PN} += "${datadir}" | ||
| 18 | |||
