| @@ -1,34 +1,34 @@ | | | @@ -1,34 +1,34 @@ |
1 | # $NetBSD: options.mk,v 1.1 2016/08/27 06:42:43 dholland Exp $ | | 1 | # $NetBSD: options.mk,v 1.2 2016/08/27 06:55:49 dholland Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.rrdtool | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.rrdtool |
4 | PKG_SUPPORTED_OPTIONS= lua python tcl | | 4 | PKG_SUPPORTED_OPTIONS= lua python tcl |
5 | PKG_SUGGESTED_OPTIONS= lua python tcl | | 5 | PKG_SUGGESTED_OPTIONS= lua python tcl |
6 | | | 6 | |
7 | # Note that there's another (apparently different) python library | | 7 | # Note that there's another (apparently different) python library |
8 | # in databases/py-python-rrdtool. | | 8 | # in databases/py-python-rrdtool. |
9 | | | 9 | |
10 | .include "../../mk/bsd.options.mk" | | 10 | .include "../../mk/bsd.options.mk" |
11 | | | 11 | |
12 | PLIST_VARS+= python tcl lua | | 12 | PLIST_VARS+= python tcl lua |
13 | | | 13 | |
14 | | | 14 | |
15 | # | | 15 | # |
16 | # XXX: this should include egg.mk, but that doesn't work: it includes | | 16 | # XXX: this should include egg.mk, but that doesn't work: it includes |
17 | # extension.mk, which sets do-build and do-install rules, in such a | | 17 | # extension.mk, which sets do-build and do-install rules, in such a |
18 | # way that we can't override it. Instead we need to cutpaste the | | 18 | # way that we can't override it. Instead we need to cutpaste the |
19 | # definition of EGG_INFODIR and its plist bits. Sigh. Probably the | | 19 | # definition of EGG_INFODIR and its plist bits. Sigh. Probably the |
20 | # right thing to do is make this a separate package. | | 20 | # right thing to do is make this a separate package. |
21 | # | | 21 | # |
22 | .if !empty(PKG_OPTIONS:Mpython) | | 22 | .if !empty(PKG_OPTIONS:Mpython) |
23 | CONFIGURE_ARGS+= --enable-python | | 23 | CONFIGURE_ARGS+= --enable-python |
24 | | | 24 | |
25 | REPLACE_PYTHON= examples/stripes.py | | 25 | REPLACE_PYTHON= examples/stripes.py |
26 | .include "../../lang/python/application.mk" | | 26 | .include "../../lang/python/application.mk" |
27 | | | 27 | |
28 | PLIST.python= yes | | 28 | PLIST.python= yes |
29 | EGG_NAME= py_rrdtool-0.2.2 | | 29 | EGG_NAME= py_rrdtool-0.2.2 |
30 | EGG_INFODIR?= ${EGG_NAME}-py${PYVERSSUFFIX}.egg-info | | 30 | EGG_INFODIR?= ${EGG_NAME}-py${PYVERSSUFFIX}.egg-info |
31 | PLIST_SUBST+= PYSITELIB=${PYSITELIB} | | 31 | PLIST_SUBST+= PYSITELIB=${PYSITELIB} |
32 | PLIST_SUBST+= EGG_INFODIR=${EGG_INFODIR} | | 32 | PLIST_SUBST+= EGG_INFODIR=${EGG_INFODIR} |
33 | #.include "../../lang/python/egg.mk" | | 33 | #.include "../../lang/python/egg.mk" |
34 | | | 34 | |