diff options
Diffstat (limited to 'finance/gnucash/options.mk')
-rw-r--r-- | finance/gnucash/options.mk | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/finance/gnucash/options.mk b/finance/gnucash/options.mk index bef7b64d39e..f1cbee9a69b 100644 --- a/finance/gnucash/options.mk +++ b/finance/gnucash/options.mk @@ -1,24 +1,42 @@ -# $NetBSD: options.mk,v 1.3 2016/08/30 04:13:13 jnemeth Exp $ +# $NetBSD: options.mk,v 1.4 2018/04/09 08:47:35 wiz Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.gnucash -PKG_SUPPORTED_OPTIONS= libdbi libofx -PKG_SUGGESTED_OPTIONS= libdbi libofx +PKG_SUPPORTED_OPTIONS= libdbi libofx python +PKG_SUGGESTED_OPTIONS= libdbi libofx python .include "../../mk/bsd.options.mk" -PLIST_VARS+= dbi ofx - .if !empty(PKG_OPTIONS:Mlibofx) -PLIST.ofx= yes +CMAKE_ARGS+= -DWITH_OFX=ON +PLIST_SRC+= PLIST.ofx .include "../../finance/libofx/buildlink3.mk" .else -CONFIGURE_ARGS+= --disable-ofx +CMAKE_ARGS+= -DWITH_OFX=OFF .endif .if !empty(PKG_OPTIONS:Mlibdbi) -CONFIGURE_ARGS+= --enable-dbi -PLIST.dbi= yes +CMAKE_ARGS+= -DWITH_SQL=ON +PLIST_SRC+= PLIST.dbi +BUILD_DEPENDS+= libdbi-driver-sqlite3-[0-9]*:../../databases/libdbi-driver-sqlite3 .include "../../databases/libdbi/buildlink3.mk" .else -CONFIGURE_ARGS+= --disable-dbi +CMAKE_ARGS+= -DWITH_SQL=OFF +.endif + +.if !empty(PKG_OPTIONS:Mpython) +CMAKE_ARGS+= -DWITH_PYTHON=ON +PYTHON_VERSIONS_INCOMPATIBLE= 27 +REPLACE_PYTHON+= bindings/python/example_scripts/*.py +REPLACE_PYTHON+= bindings/python/example_scripts/rest-api/*.py +REPLACE_PYTHON+= gnucash/python/pycons/*.py +PY_PATCHPLIST= yes +PLIST_SRC+= PLIST.python + +# /usr/pkg/share/gnucash/python/pycons/console.py imports readline +DEPENDS+= ${PYPKGPREFIX}-readline-[0-9]*:../../devel/py-readline + +.include "../../lang/python/application.mk" +.include "../../lang/python/extension.mk" +.else +CMAKE_ARGS+= -DWITH_PYTHON=OFF .endif |