1 # $NetBSD: options.mk,v 1.8 2007/09/05 18:58:19 shannonjr Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.libprelude
4 PKG_SUPPORTED_OPTIONS= perl python
5 PKG_OPTIONS.libprelude?=
7 .include "../../mk/bsd.options.mk"
10 ### Whether to build with the perl and python plugins
12 ### python is needed for prewikka
15 PLIST_SRC= ${PKGDIR}/PLIST
17 .if !empty(PKG_OPTIONS:Mperl)
18 CONFIGURE_ARGS+= --with-perl=${PERL5:Q} --with-perl-installdirs=vendor
20 PERL5_PACKLIST= auto/Prelude/.packlist
22 .include "../../lang/perl5/module.mk"
24 CONFIGURE_ARGS+= --with-perl=no
26 .if !empty(PKG_OPTIONS:Mpython)
27 CONFIGURE_ARGS+= --with-python
28 CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q}
30 PLIST_SRC+= ${PKGDIR}/PLIST.py
31 .include "../../lang/python/application.mk"
32 .include "../../lang/python/extension.mk"
34 CONFIGURE_ARGS+= --with-python=no