Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \ |
| 2 | file://avahi-common/address.h;endline=25;md5=b1d1d2cda1c07eb848ea7d6215712d9d \ |
| 3 | file://avahi-core/dns.h;endline=23;md5=6fe82590b81aa0ddea5095b548e2fdcb \ |
| 4 | file://avahi-daemon/main.c;endline=21;md5=9ee77368c5407af77caaef1b07285969 \ |
| 5 | file://avahi-client/client.h;endline=23;md5=f4ac741a25c4f434039ba3e18c8674cf" |
| 6 | |
| 7 | require avahi.inc |
| 8 | |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 9 | inherit python-dir pythonnative distro_features_check |
| 10 | ANY_OF_DISTRO_FEATURES = "${GTK2DISTROFEATURES}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | |
| 12 | PACKAGECONFIG ??= "python" |
| 13 | PACKAGECONFIG[python] = "--enable-python,--disable-python,python-native python" |
| 14 | |
| 15 | PR = "${INC_PR}.0" |
| 16 | |
| 17 | SRC_URI[md5sum] = "2f22745b8f7368ad5a0a3fddac343f2d" |
| 18 | SRC_URI[sha256sum] = "8372719b24e2dd75de6f59bb1315e600db4fd092805bd1201ed0cb651a2dab48" |
| 19 | |
| 20 | DEPENDS += "avahi gtk+ libglade" |
| 21 | |
| 22 | AVAHI_GTK = "--enable-gtk --disable-gtk3" |
| 23 | |
| 24 | S = "${WORKDIR}/avahi-${PV}" |
| 25 | |
| 26 | PACKAGES = "${PN} ${PN}-utils ${PN}-dbg ${PN}-dev ${PN}-staticdev ${PN}-doc python-avahi avahi-discover avahi-discover-standalone" |
| 27 | |
| 28 | FILES_${PN} = "${libdir}/libavahi-ui*.so.*" |
| 29 | FILES_${PN}-dbg += "${libdir}/.debug/libavah-ui*" |
| 30 | FILES_${PN}-dev += "${libdir}/libavahi-ui${SOLIBSDEV}" |
| 31 | FILES_${PN}-staticdev += "${libdir}/libavahi-ui.a" |
| 32 | |
| 33 | FILES_${PN}-utils = "${bindir}/b* ${datadir}/applications/b*" |
| 34 | |
| 35 | FILES_python-avahi = "${PYTHON_SITEPACKAGES_DIR}/avahi ${PYTHON_SITEPACKAGES_DIR}/avahi_discover" |
| 36 | FILES_avahi-discover = "${bindir}/avahi-discover \ |
| 37 | ${datadir}/applications/avahi-discover.desktop \ |
| 38 | ${datadir}/avahi/interfaces/avahi-discover*" |
| 39 | FILES_avahi-discover-standalone = "${bindir}/avahi-discover-standalone \ |
| 40 | ${datadir}/avahi/interfaces/avahi-discover.glade" |
| 41 | |
| 42 | RDEPENDS_avahi-discover = "python-avahi python-pygtk" |
| 43 | RDEPENDS_python-avahi = "python-core python-dbus" |
| 44 | |
| 45 | |
| 46 | do_install_append () { |
| 47 | rm ${D}${sysconfdir} -rf |
| 48 | rm ${D}${base_libdir} -rf |
| 49 | rm ${D}${systemd_unitdir} -rf |
| 50 | # The ${systemd_unitdir} is /lib/systemd, so we need rmdir /lib, |
| 51 | # but not ${base_libdir} here. And the /lib may not exist |
| 52 | # whithout systemd. |
| 53 | [ ! -d ${D}/lib ] || rmdir ${D}/lib --ignore-fail-on-non-empty |
| 54 | rm ${D}${bindir}/avahi-b* |
| 55 | rm ${D}${bindir}/avahi-p* |
| 56 | rm ${D}${bindir}/avahi-r* |
| 57 | rm ${D}${bindir}/avahi-s* |
| 58 | rm ${D}${includedir}/avahi-c* -rf |
| 59 | rm ${D}${includedir}/avahi-g* -rf |
| 60 | rm ${D}${libdir}/libavahi-c* |
| 61 | rm ${D}${libdir}/libavahi-g* |
| 62 | rm ${D}${libdir}/pkgconfig/avahi-c* |
| 63 | rm ${D}${libdir}/pkgconfig/avahi-g* |
| 64 | rm ${D}${sbindir} -rf |
| 65 | rm ${D}${datadir}/avahi/a* |
| 66 | rm ${D}${datadir}/avahi/s* |
| 67 | rm ${D}${datadir}/locale/ -rf |
| 68 | rm ${D}${datadir}/dbus* -rf |
| 69 | rm ${D}${mandir}/man1/a* |
| 70 | rm ${D}${mandir}/man5 -rf |
| 71 | rm ${D}${mandir}/man8 -rf |
| 72 | } |
| 73 | |