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