blob: 1f1e80ce824e698861e48ebb27d2ee4c5c6b8239 [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} += " \
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"
55RDEPENDS_${PN}-filter += "perl"
56
57# need to snag the debug file or OE will fail on backend package
58FILES_${PN}-dbg += "\
59 ${libdir}/cups/backend/.debug \
60 ${PYTHON_SITEPACKAGES_DIR}/.debug \
61 ${libdir}/cups/filter/.debug "
62
63FILES_${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/*.la"
64FILES_${PN}-ppd = "${datadir}/ppd"
65FILES_${PN}-cups = "${datadir}/cups"
66FILES_${PN}-backend = "${libdir}/cups/backend"
67FILES_${PN}-filter = "${libdir}/cups/filter"
68FILES_${PN}-hal = "${datadir}/hal"
69
70FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}/*.so"
71
72SRC_URI[md5sum] = "5303938e8630775ea6fb383af85775e5"
73SRC_URI[sha256sum] = "54578000792969adb583e75efeacb9c46ab69659ec7e9424de390613f3595775"
74