| @@ -1,37 +1,44 @@ | | | @@ -1,37 +1,44 @@ |
1 | # $NetBSD: options.mk,v 1.20 2021/05/03 15:32:03 gdt Exp $ | | 1 | # $NetBSD: options.mk,v 1.21 2021/05/04 16:27:38 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 | # \todo After 2020Q2, drop python option (making it on). Python | | 5 | # \todo After 2020Q2, drop python option (making it on). Python |
6 | # within qgis is so huge that it is hard to imagine someone wanting to | | 6 | # within qgis is so huge that it is hard to imagine someone wanting to |
7 | # build qgis without python, and the cost of that theoretical person | | 7 | # build qgis without python, and the cost of that theoretical person |
8 | # putting up with a few more bits is smaller than the maintenance pain | | 8 | # putting up with a few more bits is smaller than the maintenance pain |
9 | # of having an option. | | 9 | # of having an option. |
10 | PKG_SUGGESTED_OPTIONS+= python | | 10 | PKG_SUGGESTED_OPTIONS+= python |
11 | | | 11 | |
12 | .include "../../mk/bsd.options.mk" | | 12 | .include "../../mk/bsd.options.mk" |
13 | | | 13 | |
14 | .if empty(PKG_OPTIONS:Mpython) | | 14 | .if empty(PKG_OPTIONS:Mpython) |
| | | 15 | |
15 | CMAKE_ARGS+= -DWITH_BINDINGS:BOOL=FALSE | | 16 | CMAKE_ARGS+= -DWITH_BINDINGS:BOOL=FALSE |
| | | 17 | |
16 | PYTHON_FOR_BUILD_ONLY= YES | | 18 | PYTHON_FOR_BUILD_ONLY= YES |
17 | .include "../../lang/python/application.mk" | | 19 | .include "../../lang/python/application.mk" |
| | | 20 | |
18 | .else | | 21 | .else |
| | | 22 | |
19 | CMAKE_ARGS+= -DWITH_BINDINGS:BOOL=TRUE | | 23 | CMAKE_ARGS+= -DWITH_BINDINGS:BOOL=TRUE |
20 | CMAKE_ARGS+= -DSIP_BINARY_PATH:PATH=${BUILDLINK_PREFIX.py-sip}/bin | | 24 | CMAKE_ARGS+= -DSIP_BINARY_PATH:PATH=${BUILDLINK_PREFIX.py-sip}/bin |
21 | CMAKE_ARGS+= -DWITH_INTERNAL_MARKUPSAFE=FALSE | | 25 | CMAKE_ARGS+= -DWITH_INTERNAL_MARKUPSAFE=FALSE |
22 | PLIST_SRC+= ${PKGDIR}/PLIST.python | | 26 | PLIST_SRC+= ${PKGDIR}/PLIST.python |
| | | 27 | |
23 | .include "../../lang/python/application.mk" | | 28 | .include "../../lang/python/application.mk" |
| | | 29 | PYTHON_VERSIONS_INCOMPATIBLE= 27 |
| | | 30 | |
24 | .include "../../math/py-numpy/buildlink3.mk" | | 31 | .include "../../math/py-numpy/buildlink3.mk" |
25 | .include "../../x11/py-qt5/buildlink3.mk" | | 32 | .include "../../x11/py-qt5/buildlink3.mk" |
26 | .include "../../x11/py-qt5-qscintilla/buildlink3.mk" | | 33 | .include "../../x11/py-qt5-qscintilla/buildlink3.mk" |
27 | .include "../../x11/py-sip/buildlink3.mk" | | 34 | .include "../../x11/py-sip/buildlink3.mk" |
| | | 35 | |
28 | DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests | | 36 | DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests |
29 | DEPENDS+= ${PYPKGPREFIX}-psycopg2-[0-9]*:../../databases/py-psycopg2 | | 37 | DEPENDS+= ${PYPKGPREFIX}-psycopg2-[0-9]*:../../databases/py-psycopg2 |
30 | DEPENDS+= ${PYPKGPREFIX}-gdal-[0-9]*:../../geography/py-gdal | | 38 | DEPENDS+= ${PYPKGPREFIX}-gdal-[0-9]*:../../geography/py-gdal |
31 | DEPENDS+= ${PYPKGPREFIX}-jinja2-[0-9]*:../../textproc/py-jinja2 | | 39 | DEPENDS+= ${PYPKGPREFIX}-jinja2-[0-9]*:../../textproc/py-jinja2 |
32 | DEPENDS+= ${PYPKGPREFIX}-markupsafe-[0-9]*:../../textproc/py-markupsafe | | 40 | DEPENDS+= ${PYPKGPREFIX}-markupsafe-[0-9]*:../../textproc/py-markupsafe |
33 | | | | |
34 | # py-owslib # metasearch | | 41 | # py-owslib # metasearch |
35 | # py-yaml # quickosm | | 42 | # py-yaml # quickosm |
36 | | | 43 | |
37 | .endif | | 44 | .endif |