Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "HP Linux Imaging and Printing" |
| 2 | LICENSE="GPLv2" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=442bb3cbbeeb60643a87325718b8a8ee" |
| 4 | |
| 5 | PR = "r1" |
| 6 | |
| 7 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz \ |
| 8 | file://setup-add-sleep-after-cups-reset.patch \ |
| 9 | file://fix-libusb-paths.patch \ |
| 10 | file://cups-1.6.patch \ |
| 11 | file://configure.patch \ |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 12 | file://0001-include-cups-ppd.h-for-missing-ppd-definitions.patch \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 13 | " |
| 14 | |
| 15 | DEPENDS += "cups python libusb" |
| 16 | |
| 17 | inherit autotools-brokensep python-dir pythonnative pkgconfig |
| 18 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 19 | export STAGING_INCDIR |
| 20 | export STAGING_LIBDIR |
| 21 | |
| 22 | EXTRA_OECONF += "\ |
| 23 | LIBUSBINCLUDEROOT=${STAGING_INCDIR} \ |
| 24 | --disable-network-build \ |
| 25 | --disable-doc-build \ |
| 26 | --disable-pp-build \ |
| 27 | --disable-scan-build \ |
| 28 | --disable-gui-build \ |
| 29 | --disable-fax-build \ |
| 30 | --disable-policykit \ |
| 31 | --disable-qt4 \ |
| 32 | --disable-qt3 \ |
| 33 | --disable-dbus-build \ |
| 34 | --disable-foomatic-drv-install \ |
| 35 | --enable-foomatic-ppd-install \ |
| 36 | --enable-foomatic-rip-hplip-install \ |
| 37 | --with-cupsbackenddir=${libdir}/cups/backend \ |
| 38 | --with-cupsfilterdir=${libdir}/cups/filter \ |
| 39 | " |
| 40 | |
| 41 | PACKAGES += "${PN}-ppd ${PN}-cups ${PN}-backend ${PN}-filter ${PN}-hal" |
| 42 | |
| 43 | RDEPENDS_${PN} += " \ |
| 44 | python-syslog \ |
| 45 | python-pprint \ |
| 46 | python-compression \ |
| 47 | python-shell \ |
| 48 | python-xml \ |
| 49 | python-unixadmin \ |
| 50 | python-html \ |
| 51 | python-resource \ |
| 52 | python-terminal \ |
| 53 | python-subprocess\ |
| 54 | " |
| 55 | RDEPENDS_${PN}-filter += "perl" |
| 56 | |
| 57 | # need to snag the debug file or OE will fail on backend package |
| 58 | FILES_${PN}-dbg += "\ |
| 59 | ${libdir}/cups/backend/.debug \ |
| 60 | ${PYTHON_SITEPACKAGES_DIR}/.debug \ |
| 61 | ${libdir}/cups/filter/.debug " |
| 62 | |
| 63 | FILES_${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/*.la" |
| 64 | FILES_${PN}-ppd = "${datadir}/ppd" |
| 65 | FILES_${PN}-cups = "${datadir}/cups" |
| 66 | FILES_${PN}-backend = "${libdir}/cups/backend" |
| 67 | FILES_${PN}-filter = "${libdir}/cups/filter" |
| 68 | FILES_${PN}-hal = "${datadir}/hal" |
| 69 | |
| 70 | FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}/*.so" |
| 71 | |
| 72 | SRC_URI[md5sum] = "5303938e8630775ea6fb383af85775e5" |
| 73 | SRC_URI[sha256sum] = "54578000792969adb583e75efeacb9c46ab69659ec7e9424de390613f3595775" |
| 74 | |