blob: 0d42b90e71379e50e423569e8c46871907d8dfef [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001LIC_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
7require avahi.inc
8
Patrick Williamsf1e5d692016-03-30 15:21:19 -05009inherit python-dir pythonnative distro_features_check
10ANY_OF_DISTRO_FEATURES = "${GTK2DISTROFEATURES}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
12PACKAGECONFIG ??= "python"
13PACKAGECONFIG[python] = "--enable-python,--disable-python,python-native python"
14
15PR = "${INC_PR}.0"
16
17SRC_URI[md5sum] = "2f22745b8f7368ad5a0a3fddac343f2d"
18SRC_URI[sha256sum] = "8372719b24e2dd75de6f59bb1315e600db4fd092805bd1201ed0cb651a2dab48"
19
20DEPENDS += "avahi gtk+ libglade"
21
22AVAHI_GTK = "--enable-gtk --disable-gtk3"
23
24S = "${WORKDIR}/avahi-${PV}"
25
26PACKAGES = "${PN} ${PN}-utils ${PN}-dbg ${PN}-dev ${PN}-staticdev ${PN}-doc python-avahi avahi-discover avahi-discover-standalone"
27
28FILES_${PN} = "${libdir}/libavahi-ui*.so.*"
29FILES_${PN}-dbg += "${libdir}/.debug/libavah-ui*"
30FILES_${PN}-dev += "${libdir}/libavahi-ui${SOLIBSDEV}"
31FILES_${PN}-staticdev += "${libdir}/libavahi-ui.a"
32
33FILES_${PN}-utils = "${bindir}/b* ${datadir}/applications/b*"
34
35FILES_python-avahi = "${PYTHON_SITEPACKAGES_DIR}/avahi ${PYTHON_SITEPACKAGES_DIR}/avahi_discover"
36FILES_avahi-discover = "${bindir}/avahi-discover \
37 ${datadir}/applications/avahi-discover.desktop \
38 ${datadir}/avahi/interfaces/avahi-discover*"
39FILES_avahi-discover-standalone = "${bindir}/avahi-discover-standalone \
40 ${datadir}/avahi/interfaces/avahi-discover.glade"
41
42RDEPENDS_avahi-discover = "python-avahi python-pygtk"
43RDEPENDS_python-avahi = "python-core python-dbus"
44
45
46do_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