# Avahi - Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour
[buildout]
extends =
  ../dbus/buildout.cfg
  ../glib/buildout.cfg
  ../pkgconfig/buildout.cfg

parts =
  avahi

[avahi]
recipe = slapos.recipe.cmmi
shared = true
url = https://github.com/lathiat/avahi/releases/download/v0.8/avahi-0.8.tar.gz
md5sum = 229c6aa30674fc43c202b22c5f8c2be7
configure-options =
  --disable-static
  --disable-libevent
  --disable-mono
  --disable-monodoc
  --disable-python
  --disable-qt3
  --disable-qt4
  --disable-qt5
  --disable-gtk
  --disable-gtk3
  --disable-libdaemon
  --disable-core-docs
  --with-distro=none
  --with-systemdsystemunitdir=no
environment =
  PATH=${pkgconfig:location}/bin:${glib:location}/bin:%(PATH)s
  CFLAGS=-I${gdbm:location}/include -I${libexpat:location}/include
  LDFLAGS=-L${gettext:location}/lib -lintl -Wl,-rpath=${gettext:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -L${glib:location}/lib -Wl,-rpath=${glib:location}/lib -L${gdbm:location}/lib -Wl,-rpath=${gdbm:location}/lib -L${libexpat:location}/lib -Wl,-rpath=${libexpat:location}/lib
  PKG_CONFIG_PATH=${glib:location}/lib/pkgconfig:${glib:pkg_config_depends}:${dbus:location}/lib/pkgconfig:${libexpat:location}/lib/pkgconfig
