blob: 0fb3f318ae4f0e345c6bf013a4c69468f1292713 (
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
|
# $NetBSD: options.mk,v 1.7 2006/08/31 18:02:41 rillig Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libprelude
PKG_SUPPORTED_OPTIONS= perl python
.include "../../mk/bsd.options.mk"
###
### Whether to build with the perl and python plugins
###
### python is needed for prewikka
###
PLIST_SRC= ${PKGDIR}/PLIST
.if !empty(PKG_OPTIONS:Mperl)
CONFIGURE_ARGS+= --with-perl=${PERL5:Q}
USE_TOOLS+= perl:run
PLIST_SRC+= ${PKGDIR}/PLIST.perl
.include "../../lang/perl5/buildlink3.mk"
.else
CONFIGURE_ARGS+= --with-perl=no
.endif
.if !empty(PKG_OPTIONS:Mpython)
CONFIGURE_ARGS+= --with-python
CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q}
PY_PATCHPLIST= yes
PLIST_SRC+= ${PKGDIR}/PLIST.py
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.else
CONFIGURE_ARGS+= --with-python=no
.endif
|