blob: a77653bf55d76173325440f078806e2060ff25c5 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001require avahi.inc
2
3inherit distro_features_check
4ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
5
Brad Bishop316dfdd2018-06-25 12:45:53 -04006DEPENDS += "avahi"
7
8AVAHI_GTK = "gtk3"
9
10S = "${WORKDIR}/avahi-${PV}"
11
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080012PACKAGES += "${PN}-utils avahi-discover"
Brad Bishop316dfdd2018-06-25 12:45:53 -040013
14FILES_${PN} = "${libdir}/libavahi-ui*.so.*"
Brad Bishop316dfdd2018-06-25 12:45:53 -040015FILES_${PN}-utils = "${bindir}/b* ${datadir}/applications/b*"
Brad Bishop316dfdd2018-06-25 12:45:53 -040016FILES_avahi-discover = "${datadir}/applications/avahi-discover.desktop \
17 ${datadir}/avahi/interfaces/avahi-discover.ui \
18 ${bindir}/avahi-discover-standalone \
19 "
20
21do_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}