blob: 0e80d725a932e30c8a859c24ffcb1e6b01e73161 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# $NetBSD: options.mk,v 1.2 2010/07/24 13:42:12 obache 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"
PY_PATCHPLIST= yes
. include "../../lang/python/extension.mk"
. 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
|