Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [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 | |
| 9 | inherit distro_features_check |
| 10 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" |
| 11 | |
| 12 | SRC_URI[md5sum] = "d76c59d0882ac6c256d70a2a585362a6" |
| 13 | SRC_URI[sha256sum] = "57a99b5dfe7fdae794e3d1ee7a62973a368e91e414bd0dfa5d84434de5b14804" |
| 14 | |
| 15 | DEPENDS += "avahi" |
| 16 | |
| 17 | AVAHI_GTK = "gtk3" |
| 18 | |
| 19 | S = "${WORKDIR}/avahi-${PV}" |
| 20 | |
| 21 | PACKAGES = "${PN} ${PN}-utils ${PN}-dbg ${PN}-dev ${PN}-staticdev ${PN}-doc avahi-discover" |
| 22 | |
| 23 | FILES_${PN} = "${libdir}/libavahi-ui*.so.*" |
| 24 | FILES_${PN}-dev += "${libdir}/libavahi-ui${SOLIBSDEV}" |
| 25 | FILES_${PN}-staticdev += "${libdir}/libavahi-ui.a" |
| 26 | |
| 27 | FILES_${PN}-utils = "${bindir}/b* ${datadir}/applications/b*" |
| 28 | |
| 29 | FILES_avahi-discover = "${datadir}/applications/avahi-discover.desktop \ |
| 30 | ${datadir}/avahi/interfaces/avahi-discover.ui \ |
| 31 | ${bindir}/avahi-discover-standalone \ |
| 32 | " |
| 33 | |
| 34 | do_install_append () { |
| 35 | rm ${D}${sysconfdir} -rf |
| 36 | rm ${D}${base_libdir} -rf |
| 37 | rm ${D}${systemd_unitdir} -rf |
| 38 | # The ${systemd_unitdir} is /lib/systemd, so we need rmdir /lib, |
| 39 | # but not ${base_libdir} here. And the /lib may not exist |
| 40 | # whithout systemd. |
| 41 | [ ! -d ${D}/lib ] || rmdir ${D}/lib --ignore-fail-on-non-empty |
| 42 | rm ${D}${bindir}/avahi-b* |
| 43 | rm ${D}${bindir}/avahi-p* |
| 44 | rm ${D}${bindir}/avahi-r* |
| 45 | rm ${D}${bindir}/avahi-s* |
| 46 | rm ${D}${includedir}/avahi-c* -rf |
| 47 | rm ${D}${includedir}/avahi-g* -rf |
| 48 | rm ${D}${libdir}/libavahi-c* |
| 49 | rm ${D}${libdir}/libavahi-g* |
| 50 | rm ${D}${libdir}/pkgconfig/avahi-c* |
| 51 | rm ${D}${libdir}/pkgconfig/avahi-g* |
| 52 | rm ${D}${sbindir} -rf |
| 53 | rm ${D}${datadir}/avahi/a* |
| 54 | rm ${D}${datadir}/locale/ -rf |
| 55 | rm ${D}${datadir}/dbus* -rf |
| 56 | rm ${D}${mandir}/man1/a* |
| 57 | rm ${D}${mandir}/man5 -rf |
| 58 | rm ${D}${mandir}/man8 -rf |
| 59 | rm ${D}${libdir}/girepository-1.0/ -rf |
| 60 | rm ${D}${datadir}/gir-1.0/ -rf |
| 61 | } |
| 62 | |