Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | require avahi.inc |
| 2 | |
| 3 | inherit distro_features_check |
| 4 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" |
| 5 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 6 | DEPENDS += "avahi" |
| 7 | |
| 8 | AVAHI_GTK = "gtk3" |
| 9 | |
| 10 | S = "${WORKDIR}/avahi-${PV}" |
| 11 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 12 | PACKAGES += "${PN}-utils avahi-discover" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 13 | |
| 14 | FILES_${PN} = "${libdir}/libavahi-ui*.so.*" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 15 | FILES_${PN}-utils = "${bindir}/b* ${datadir}/applications/b*" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 16 | FILES_avahi-discover = "${datadir}/applications/avahi-discover.desktop \ |
| 17 | ${datadir}/avahi/interfaces/avahi-discover.ui \ |
| 18 | ${bindir}/avahi-discover-standalone \ |
| 19 | " |
| 20 | |
| 21 | do_install_append () { |
| 22 | rm ${D}${sysconfdir} -rf |
| 23 | rm ${D}${base_libdir} -rf |
| 24 | rm ${D}${systemd_unitdir} -rf |
| 25 | # The ${systemd_unitdir} is /lib/systemd, so we need rmdir /lib, |
| 26 | # but not ${base_libdir} here. And the /lib may not exist |
| 27 | # whithout systemd. |
| 28 | [ ! -d ${D}/lib ] || rmdir ${D}/lib --ignore-fail-on-non-empty |
| 29 | rm ${D}${bindir}/avahi-b* |
| 30 | rm ${D}${bindir}/avahi-p* |
| 31 | rm ${D}${bindir}/avahi-r* |
| 32 | rm ${D}${bindir}/avahi-s* |
| 33 | rm ${D}${includedir}/avahi-c* -rf |
| 34 | rm ${D}${includedir}/avahi-g* -rf |
| 35 | rm ${D}${libdir}/libavahi-c* |
| 36 | rm ${D}${libdir}/libavahi-g* |
| 37 | rm ${D}${libdir}/pkgconfig/avahi-c* |
| 38 | rm ${D}${libdir}/pkgconfig/avahi-g* |
| 39 | rm ${D}${sbindir} -rf |
| 40 | rm ${D}${datadir}/avahi/a* |
| 41 | rm ${D}${datadir}/locale/ -rf |
| 42 | rm ${D}${datadir}/dbus* -rf |
| 43 | rm ${D}${mandir}/man1/a* |
| 44 | rm ${D}${mandir}/man5 -rf |
| 45 | rm ${D}${mandir}/man8 -rf |
| 46 | rm ${D}${libdir}/girepository-1.0/ -rf |
| 47 | rm ${D}${datadir}/gir-1.0/ -rf |
| 48 | } |