Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | LIC_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 | |
| 7 | require avahi.inc |
| 8 | |
| 9 | inherit python-dir pythonnative distro_features_check |
| 10 | ANY_OF_DISTRO_FEATURES = "${GTK2DISTROFEATURES}" |
| 11 | |
| 12 | PACKAGECONFIG ??= "dbus python" |
| 13 | PACKAGECONFIG[python] = "--enable-python,--disable-python,python-native python" |
| 14 | |
| 15 | SRC_URI[md5sum] = "22b5e705d3eabb31d26f2e1e7b074013" |
| 16 | SRC_URI[sha256sum] = "d54991185d514a0aba54ebeb408d7575b60f5818a772e28fa0e18b98bc1db454" |
| 17 | |
| 18 | DEPENDS += "avahi gtk+ libglade" |
| 19 | |
| 20 | AVAHI_GTK = "--enable-gtk --disable-gtk3 --disable-pygtk" |
| 21 | |
| 22 | S = "${WORKDIR}/avahi-${PV}" |
| 23 | |
| 24 | PACKAGES = "${PN} ${PN}-utils ${PN}-dbg ${PN}-dev ${PN}-staticdev ${PN}-doc python-avahi avahi-discover" |
| 25 | |
| 26 | FILES_${PN} = "${libdir}/libavahi-ui*.so.*" |
| 27 | FILES_${PN}-dev += "${libdir}/libavahi-ui${SOLIBSDEV}" |
| 28 | FILES_${PN}-staticdev += "${libdir}/libavahi-ui.a" |
| 29 | |
| 30 | FILES_${PN}-utils = "${bindir}/b* ${datadir}/applications/b*" |
| 31 | |
| 32 | FILES_python-avahi = "${PYTHON_SITEPACKAGES_DIR}/avahi ${PYTHON_SITEPACKAGES_DIR}/avahi_discover" |
| 33 | FILES_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 | |
| 38 | RDEPENDS_python-avahi = "python-core python-dbus" |
| 39 | |
| 40 | |
| 41 | do_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 | |