Add files from parent branch HEAD:
[pkgsrc.git] / security / libprelude / options.mk
1 # $NetBSD: options.mk,v 1.8 2007/09/05 18:58:19 shannonjr Exp $
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.libprelude
4 PKG_SUPPORTED_OPTIONS=  perl python
5 PKG_OPTIONS.libprelude?=
6
7 .include "../../mk/bsd.options.mk"
8
9 ###
10 ### Whether to build with the perl and python plugins
11 ###
12 ###       python is needed for prewikka
13 ###
14
15 PLIST_SRC=              ${PKGDIR}/PLIST
16
17 .if !empty(PKG_OPTIONS:Mperl)
18 CONFIGURE_ARGS+=        --with-perl=${PERL5:Q} --with-perl-installdirs=vendor
19 USE_TOOLS+=             perl:run
20 PERL5_PACKLIST=         auto/Prelude/.packlist
21 PERL5_CONFIGURE=        no
22 .include "../../lang/perl5/module.mk"
23 .else
24 CONFIGURE_ARGS+=        --with-perl=no
25 .endif
26 .if !empty(PKG_OPTIONS:Mpython)
27 CONFIGURE_ARGS+=        --with-python
28 CONFIGURE_ENV+=         PYTHON=${PYTHONBIN:Q}
29 PY_PATCHPLIST=          yes
30 PLIST_SRC+=             ${PKGDIR}/PLIST.py
31 .include "../../lang/python/application.mk"
32 .include "../../lang/python/extension.mk"
33 .else
34 CONFIGURE_ARGS+=        --with-python=no
35 .endif