avahi: Add PACKAGECONFIG for libdns_sd
PATCH 1/1 avahi: Add PACKAGECONFIG for libdns_sd
Adds a PACKAGECONFIG option to enable the libdns_sd compatibility library.
Signed-off-by Joshua Watt <[email protected]>
--- meta/recipes-connectivity/avahi/avahi.inc | 7 +++++++ 1 file changed, 7 insertions(+)
meta/recipes-connectivity/avahi/avahi.inc +7 -0
@@ -36,6 +36,7 @@ PACKAGECONFIG ??= "dbus ${AVAHI_GTK}" PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus" PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+" PACKAGECONFIG[gtk3] = "--enable-gtk3,--disable-gtk3,gtk+3" +PACKAGECONFIG[libdns_sd] = "--enable-compat-libdns_sd --enable-dbus,,dbus" inherit autotools pkgconfig gettext gobject-introspection
@@ -77,3 +78,9 @@ do_install() { test -d ${D}${datadir}/dbus-1 && rmdir --ignore-fail-on-non-empty ${D}${datadir}/dbus-1 rm -rf ${D}${libdir}/avahi } + +PACKAGES =+ "${@bb.utils.contains("PACKAGECONFIG", "libdns_sd", "libavahi-compat-libdnssd", "", d)}" + +FILES_libavahi-compat-libdnssd = "${libdir}/libdns_sd.so.*" + +RPROVIDES_libavahi-compat-libdnssd = "libdns-sd"
Signature · 1 line
2.21.0