pkgsrc/net/avahi/options.mk
wiz 0458939a92 Initial import of avahi-0.6.23, packaged for pkgsrc-wip by Adrian Portelli,
then majorly reworked by myself. You can blame us both now ;)

Avahi is an Implementation the DNS Service Discovery and Multicast DNS
specifications for Zeroconf Computing. It uses D-BUS for communication
between user applications and a system daemon. The daemon is used to
coordinate application efforts in caching replies, necessary to minimize
the traffic imposed on networks.
2008-12-20 17:36:14 +00:00

48 lines
1.3 KiB
Makefile

# $NetBSD: options.mk,v 1.1.1.1 2008/12/20 17:36:14 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.avahi
PKG_SUPPORTED_OPTIONS= avahi-howl gdbm python
.include "../../mk/bsd.options.mk"
###
### Enable compatibility layer for HOWL
###
.if !empty(PKG_OPTIONS:Mavahi-howl)
CONFIGURE_ARGS+= --enable-compat-howl
PLIST_SRC+= ${PKGDIR}/PLIST.howl
.endif
###
### Enable gdbm support
###
.if !empty(PKG_OPTIONS:Mgdbm)
. include "../../databases/gdbm/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-gdbm
.endif
###
### Enable python support
###
.if !empty(PKG_OPTIONS:Mpython)
. include "../../lang/python/application.mk"
. include "../../lang/python/extension.mk"
PYTHON_VERSIONS_ACCEPTED= 25 24
PLIST_SUBST+= PYSITELIB=${PYSITELIB}
. include "../../sysutils/py-dbus/buildlink3.mk"
. include "../../x11/py-gtk2/buildlink3.mk"
DEPENDS+= ${PYPKGPREFIX}-libxml2-[0-9]*:../../textproc/py-libxml2
DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
### If python and gdbm are enabled we need py-gdbm as well
. if !empty(PKG_OPTIONS:Mgdbm)
DEPENDS+= ${PYPKGPREFIX}-gdbm-[0-9]*:../../databases/py-gdbm
PLIST_SRC+= ${PKGDIR}/PLIST.pygdbm
. endif
PLIST_SRC+= ${PKGDIR}/PLIST.python
.else
CONFIGURE_ARGS+= --disable-python
CONFIGURE_ARGS+= --disable-python-dbus
CONFIGURE_ARGS+= --disable-pygtk
.endif