blob: eea4d70fabf120cb8fcb44b145fd1adb6ac7e2e3 [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
9inherit python-dir pythonnative
10
11PACKAGECONFIG ??= "python"
12PACKAGECONFIG[python] = "--enable-python,--disable-python,python-native python"
13
14PR = "${INC_PR}.0"
15
16SRC_URI[md5sum] = "2f22745b8f7368ad5a0a3fddac343f2d"
17SRC_URI[sha256sum] = "8372719b24e2dd75de6f59bb1315e600db4fd092805bd1201ed0cb651a2dab48"
18
19DEPENDS += "avahi gtk+ libglade"
20
21AVAHI_GTK = "--enable-gtk --disable-gtk3"
22
23S = "${WORKDIR}/avahi-${PV}"
24
25PACKAGES = "${PN} ${PN}-utils ${PN}-dbg ${PN}-dev ${PN}-staticdev ${PN}-doc python-avahi avahi-discover avahi-discover-standalone"
26
27FILES_${PN} = "${libdir}/libavahi-ui*.so.*"
28FILES_${PN}-dbg += "${libdir}/.debug/libavah-ui*"
29FILES_${PN}-dev += "${libdir}/libavahi-ui${SOLIBSDEV}"
30FILES_${PN}-staticdev += "${libdir}/libavahi-ui.a"
31
32FILES_${PN}-utils = "${bindir}/b* ${datadir}/applications/b*"
33
34FILES_python-avahi = "${PYTHON_SITEPACKAGES_DIR}/avahi ${PYTHON_SITEPACKAGES_DIR}/avahi_discover"
35FILES_avahi-discover = "${bindir}/avahi-discover \
36 ${datadir}/applications/avahi-discover.desktop \
37 ${datadir}/avahi/interfaces/avahi-discover*"
38FILES_avahi-discover-standalone = "${bindir}/avahi-discover-standalone \
39 ${datadir}/avahi/interfaces/avahi-discover.glade"
40
41RDEPENDS_avahi-discover = "python-avahi python-pygtk"
42RDEPENDS_python-avahi = "python-core python-dbus"
43
44
45do_install_append () {
46 rm ${D}${sysconfdir} -rf
47 rm ${D}${base_libdir} -rf
48 rm ${D}${systemd_unitdir} -rf
49 # The ${systemd_unitdir} is /lib/systemd, so we need rmdir /lib,
50 # but not ${base_libdir} here. And the /lib may not exist
51 # whithout systemd.
52 [ ! -d ${D}/lib ] || rmdir ${D}/lib --ignore-fail-on-non-empty
53 rm ${D}${bindir}/avahi-b*
54 rm ${D}${bindir}/avahi-p*
55 rm ${D}${bindir}/avahi-r*
56 rm ${D}${bindir}/avahi-s*
57 rm ${D}${includedir}/avahi-c* -rf
58 rm ${D}${includedir}/avahi-g* -rf
59 rm ${D}${libdir}/libavahi-c*
60 rm ${D}${libdir}/libavahi-g*
61 rm ${D}${libdir}/pkgconfig/avahi-c*
62 rm ${D}${libdir}/pkgconfig/avahi-g*
63 rm ${D}${sbindir} -rf
64 rm ${D}${datadir}/avahi/a*
65 rm ${D}${datadir}/avahi/s*
66 rm ${D}${datadir}/locale/ -rf
67 rm ${D}${datadir}/dbus* -rf
68 rm ${D}${mandir}/man1/a*
69 rm ${D}${mandir}/man5 -rf
70 rm ${D}${mandir}/man8 -rf
71}
72