# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python class Recipe(recipe.Recipe): name = 'avahi' version = '0.6.31' licenses = [License.GPLv2Plus] remotes = { 'origin':'git://git.collabora.com/git/user/asoliver/avahi' } deps = ['glib', 'dbus-glib', 'libdaemon'] configure_sh = 'sh autogen.sh' can_use_configure_cache = False files_libs = ['libavahi-common', 'libavahi-core', 'libavahi-client', 'libavahi-glib', 'libavahi-gobject'] files_bins = ['avahi-daemon', 'avahi-browse', 'avahi-resolve', 'avahi-publish', 'avahi-set-host-name'] files_devel = ['lib/pkgconfig/avahi-core.pc', 'lib/pkgconfig/avahi-client.pc', 'lib/pkgconfig/avahi-glib.pc', 'lib/pkgconfig/avahi-gobject.pc', 'include/avahi-client/client.h', 'include/avahi-client', 'include/avahi-common', 'include/avahi-core', 'include/avahi-glib', 'include/avahi-gobject'] def prepare(self): self.config_sh = './autogen.sh' if self.config.target_platform == Platform.ANDROID: self.configure_options = ' --with-system-socket=/var/run/dbus/system_bus_socket ' \ ' --with-distro=none ' \ ' --disable-qt3 --disable-qt4 ' \ ' --disable-gtk --disable-gtk3 ' \ ' --disable-gdbm ' \ ' --disable-python --disable-pygtk --disable-python-dbus ' \ ' --disable-mono --disable-monodoc --disable-doxygen-doc ' \ ' --disable-doxygen-dot --disable-manpages ' \ ' ac_cv_func_dbus_connection_close=yes ' \ ' ac_cv_func_dbus_bus_get_private=yes ' \ ' ac_cv_lib_expat_XML_ParserCreate=yes ' \ ' --disable-Werror '