blob: 77c995b57a856239524194850ead12a6834f47a1 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "HP Linux Imaging and Printing"
2LICENSE="GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=442bb3cbbeeb60643a87325718b8a8ee"
4
5PR = "r1"
6
7SRC_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 Bishop7f28bc52017-12-03 23:42:40 -050012 file://0001-include-cups-ppd.h-for-missing-ppd-definitions.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050013"
14
15DEPENDS += "cups python libusb"
16
17inherit autotools-brokensep python-dir pythonnative pkgconfig
18
Patrick Williamsb48b7b42016-08-17 15:04:38 -050019export STAGING_INCDIR
20export STAGING_LIBDIR
21
22EXTRA_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
41PACKAGES += "${PN}-ppd ${PN}-cups ${PN}-backend ${PN}-filter ${PN}-hal"
42
43RDEPENDS_${PN} += " \
Brad Bishop90ca7472019-08-20 09:15:15 -040044 python \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050045 python-syslog \
46 python-pprint \
47 python-compression \
48 python-shell \
49 python-xml \
50 python-unixadmin \
51 python-html \
52 python-resource \
53 python-terminal \
54 python-subprocess\
55"
56RDEPENDS_${PN}-filter += "perl"
57
58# need to snag the debug file or OE will fail on backend package
59FILES_${PN}-dbg += "\
60 ${libdir}/cups/backend/.debug \
61 ${PYTHON_SITEPACKAGES_DIR}/.debug \
62 ${libdir}/cups/filter/.debug "
63
64FILES_${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/*.la"
65FILES_${PN}-ppd = "${datadir}/ppd"
66FILES_${PN}-cups = "${datadir}/cups"
67FILES_${PN}-backend = "${libdir}/cups/backend"
68FILES_${PN}-filter = "${libdir}/cups/filter"
69FILES_${PN}-hal = "${datadir}/hal"
70
71FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}/*.so"
72
73SRC_URI[md5sum] = "5303938e8630775ea6fb383af85775e5"
74SRC_URI[sha256sum] = "54578000792969adb583e75efeacb9c46ab69659ec7e9424de390613f3595775"
75