| @@ -1,33 +1,33 @@ | | | @@ -1,33 +1,33 @@ |
1 | # $NetBSD: options.mk,v 1.12 2019/04/26 14:12:39 maya Exp $ | | 1 | # $NetBSD: options.mk,v 1.13 2019/05/14 01:39:30 gdt Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.qgis | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.qgis |
4 | PKG_SUPPORTED_OPTIONS= python | | 4 | PKG_SUPPORTED_OPTIONS= python |
5 | # Don't enable python by default because it is not | | 5 | # Don't enable python by default because it is not |
6 | # supported by gdal-lib and as a result we get a | | 6 | # supported by gdal-lib and as a result we get a |
7 | # warning when qgis is launched. | | 7 | # warning when qgis is launched. |
8 | # XXX fix gdal-lib and reenable this. | | 8 | # XXX fix gdal-lib and reenable this. |
9 | PKG_SUGGESTED_OPTIONS+= python | | 9 | PKG_SUGGESTED_OPTIONS+= python |
10 | | | 10 | |
11 | .include "../../mk/bsd.options.mk" | | 11 | .include "../../mk/bsd.options.mk" |
12 | | | 12 | |
13 | .if empty(PKG_OPTIONS:Mpython) | | 13 | .if empty(PKG_OPTIONS:Mpython) |
14 | CMAKE_ARGS+= -DWITH_BINDINGS:BOOL=FALSE | | 14 | CMAKE_ARGS+= -DWITH_BINDINGS:BOOL=FALSE |
15 | PYTHON_FOR_BUILD_ONLY= YES | | 15 | PYTHON_FOR_BUILD_ONLY= YES |
16 | .include "../../lang/python/application.mk" | | 16 | .include "../../lang/python/application.mk" |
17 | .else | | 17 | .else |
18 | CMAKE_ARGS+= -DWITH_BINDINGS:BOOL=TRUE | | 18 | CMAKE_ARGS+= -DWITH_BINDINGS:BOOL=TRUE |
19 | CMAKE_ARGS+= -DSIP_BINARY_PATH:PATH=${BUILDLINK_PREFIX.py-sip}/bin | | 19 | CMAKE_ARGS+= -DSIP_BINARY_PATH:PATH=${BUILDLINK_PREFIX.py-sip}/bin |
20 | CMAKE_ARGS+= -DWITH_INTERNAL_MARKUPSAFE=FALSE | | 20 | CMAKE_ARGS+= -DWITH_INTERNAL_MARKUPSAFE=FALSE |
21 | PLIST_SRC+= ${PKGDIR}/PLIST.python | | 21 | PLIST_SRC+= ${PKGDIR}/PLIST.python |
22 | #PYTHON_VERSIONS_INCOMPATIBLE= 36 # ?not yet ported as of ? | | 22 | PYTHON_VERSIONS_INCOMPATIBLE= 36 37 # Documentation implies 27 is supported, 3x not. |
23 | .include "../../lang/python/application.mk" | | 23 | .include "../../lang/python/application.mk" |
24 | .include "../../math/py-numpy/buildlink3.mk" | | 24 | .include "../../math/py-numpy/buildlink3.mk" |
25 | .include "../../x11/py-qt4/buildlink3.mk" | | 25 | .include "../../x11/py-qt4/buildlink3.mk" |
26 | .include "../../x11/py-qt4-qscintilla/buildlink3.mk" | | 26 | .include "../../x11/py-qt4-qscintilla/buildlink3.mk" |
27 | .include "../../x11/py-sip/buildlink3.mk" | | 27 | .include "../../x11/py-sip/buildlink3.mk" |
28 | DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests | | 28 | DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests |
29 | DEPENDS+= ${PYPKGPREFIX}-psycopg2-[0-9]*:../../databases/py-psycopg2 | | 29 | DEPENDS+= ${PYPKGPREFIX}-psycopg2-[0-9]*:../../databases/py-psycopg2 |
30 | DEPENDS+= ${PYPKGPREFIX}-gdal-[0-9]*:../../geography/py-gdal | | 30 | DEPENDS+= ${PYPKGPREFIX}-gdal-[0-9]*:../../geography/py-gdal |
31 | DEPENDS+= ${PYPKGPREFIX}-jinja2-[0-9]*:../../textproc/py-jinja2 | | 31 | DEPENDS+= ${PYPKGPREFIX}-jinja2-[0-9]*:../../textproc/py-jinja2 |
32 | DEPENDS+= ${PYPKGPREFIX}-markupsafe-[0-9]*:../../textproc/py-markupsafe | | 32 | DEPENDS+= ${PYPKGPREFIX}-markupsafe-[0-9]*:../../textproc/py-markupsafe |
33 | .endif | | 33 | .endif |