| @@ -1,45 +1,51 @@ | | | @@ -1,45 +1,51 @@ |
1 | # $NetBSD: Makefile,v 1.160 2022/11/30 21:12:28 gdt Exp $ | | 1 | # $NetBSD: Makefile,v 1.161 2022/12/02 15:44:27 wiz Exp $ |
2 | | | 2 | |
3 | # This is intentionally 3.28 Long Term Release. Please do not update | | 3 | # This is intentionally 3.28 Long Term Release. Please do not update |
4 | # to later branches, and instead discuss whether/how we want multiple | | 4 | # to later branches, and instead discuss whether/how we want multiple |
5 | # versions. | | 5 | # versions. |
6 | DISTNAME= qgis-3.28.1 | | 6 | DISTNAME= qgis-3.28.1 |
| | | 7 | PKGREVISION= 1 |
7 | CATEGORIES= geography | | 8 | CATEGORIES= geography |
8 | MASTER_SITES= https://qgis.org/downloads/ | | 9 | MASTER_SITES= https://qgis.org/downloads/ |
9 | EXTRACT_SUFX= .tar.bz2 | | 10 | EXTRACT_SUFX= .tar.bz2 |
10 | | | 11 | |
11 | MAINTAINER= gdt@NetBSD.org | | 12 | MAINTAINER= gdt@NetBSD.org |
12 | #MAINTAINER+= brook@nmsu.edu | | 13 | #MAINTAINER+= brook@nmsu.edu |
13 | #MAINTAINER+= bouyer@NetBSD.orrg | | 14 | #MAINTAINER+= bouyer@NetBSD.orrg |
14 | HOMEPAGE= http://www.qgis.org/ | | 15 | HOMEPAGE= http://www.qgis.org/ |
15 | COMMENT= Geographic Information System (GIS) | | 16 | COMMENT= Geographic Information System (GIS) |
16 | LICENSE= gnu-gpl-v2 | | 17 | LICENSE= gnu-gpl-v2 |
17 | | | 18 | |
18 | USE_CMAKE= yes | | 19 | USE_CMAKE= yes |
19 | USE_LANGUAGES= c c++17 fortran77 | | 20 | USE_LANGUAGES= c c++17 fortran77 |
20 | USE_LIBTOOL= yes | | 21 | USE_LIBTOOL= yes |
21 | USE_PKGLOCALEDIR= yes | | 22 | USE_PKGLOCALEDIR= yes |
22 | USE_TOOLS+= cmake bison flex perl pkg-config | | 23 | USE_TOOLS+= cmake bison flex perl pkg-config |
23 | # Building 3.28.1 fails with BSD make. One issue seem to be a | | 24 | # Building 3.28.1 fails with BSD make. One issue seem to be a |
24 | # difference of opinion about quoting of $, with gmake wanting | | 25 | # difference of opinion about quoting of $, with gmake wanting |
25 | # "$$area" vs bmake perhaps wanting "$$$$area". Another is filenames | | 26 | # "$$area" vs bmake perhaps wanting "$$$$area". Another is filenames |
26 | # with spaces, which are \-quoted in Makefiles, but bmake sees them as | | 27 | # with spaces, which are \-quoted in Makefiles, but bmake sees them as |
27 | # separate files. | | 28 | # separate files. |
28 | USE_TOOLS+= gmake | | 29 | USE_TOOLS+= gmake |
29 | | | 30 | |
30 | PLIST_SRC= PLIST | | 31 | PLIST_SRC= PLIST |
31 | | | 32 | |
32 | DEPENDS+= qca2-qt5-ossl-[0-9]*:../../security/qca2-qt5-ossl | | 33 | DEPENDS+= qca2-qt5-ossl-[0-9]*:../../security/qca2-qt5-ossl |
| | | 34 | TOOL_DEPENDS+= ${PYPKGPREFIX}-sip6-[0-9]*:../../x11/py-sip6 |
| | | 35 | TOOL_DEPENDS+= ${PYPKGPREFIX}-qt-builder-[0-9]*:../../x11/py-qt-builder |
| | | 36 | DEPENDS+= ${PYPKGPREFIX}-qt5-[0-9]*:../../x11/py-qt5 |
| | | 37 | DEPENDS+= ${PYPKGPREFIX}-qt5-qscintilla-[0-9]*:../../x11/py-qt5-qscintilla |
| | | 38 | |
33 | # This is needed to find qca2. | | 39 | # This is needed to find qca2. |
34 | CMAKE_PREFIX_PATH+= ${QTDIR} | | 40 | CMAKE_PREFIX_PATH+= ${QTDIR} |
35 | | | 41 | |
36 | # This could be used if we want to build pdf doc, which is currently false | | 42 | # This could be used if we want to build pdf doc, which is currently false |
37 | #BUILD_DEPENDS+= txt2tags-[0-9]*:../../wip/txt2tags | | 43 | #BUILD_DEPENDS+= txt2tags-[0-9]*:../../wip/txt2tags |
38 | | | 44 | |
39 | # Disable building of QGIS.app | | 45 | # Disable building of QGIS.app |
40 | # (XXX For now, we might want to find a way to do this later.) | | 46 | # (XXX For now, we might want to find a way to do this later.) |
41 | SUBST_CLASSES+= xapple | | 47 | SUBST_CLASSES+= xapple |
42 | SUBST_STAGE.xapple= pre-configure | | 48 | SUBST_STAGE.xapple= pre-configure |
43 | SUBST_MESSAGE.xapple= Disabling APPLE App in cmake scripts | | 49 | SUBST_MESSAGE.xapple= Disabling APPLE App in cmake scripts |
44 | xapple_FIND_CMD= cd ${WRKSRC} && \ | | 50 | xapple_FIND_CMD= cd ${WRKSRC} && \ |
45 | find . -name '*.cmake' -o -name CMakeLists.txt | | 51 | find . -name '*.cmake' -o -name CMakeLists.txt |
| @@ -47,70 +53,65 @@ SUBST_FILES.xapple= ${xapple_FIND_CMD:s | | | @@ -47,70 +53,65 @@ SUBST_FILES.xapple= ${xapple_FIND_CMD:s |
47 | SUBST_SED.xapple+= -e 's,APPLE,XAPPLE,' | | 53 | SUBST_SED.xapple+= -e 's,APPLE,XAPPLE,' |
48 | SUBST_SED.xapple+= -e 's,MACOSX_BUNDLE ,,' | | 54 | SUBST_SED.xapple+= -e 's,MACOSX_BUNDLE ,,' |
49 | SUBST_NOOP_OK.xapple= yes # since SUBST_FILES is generated | | 55 | SUBST_NOOP_OK.xapple= yes # since SUBST_FILES is generated |
50 | | | 56 | |
51 | SUBST_CLASSES+= pyqt | | 57 | SUBST_CLASSES+= pyqt |
52 | SUBST_STAGE.pyqt= pre-configure | | 58 | SUBST_STAGE.pyqt= pre-configure |
53 | SUBST_MESSAGE.pyqt= Use correct python version for PyQt5 programs | | 59 | SUBST_MESSAGE.pyqt= Use correct python version for PyQt5 programs |
54 | SUBST_FILES.pyqt= cmake/PyQtMacros.cmake cmake/FindPyQt5.cmake | | 60 | SUBST_FILES.pyqt= cmake/PyQtMacros.cmake cmake/FindPyQt5.cmake |
55 | SUBST_SED.pyqt+= -e '/^SET/s,pyuic5,&-${PYVERSSUFFIX},' | | 61 | SUBST_SED.pyqt+= -e '/^SET/s,pyuic5,&-${PYVERSSUFFIX},' |
56 | SUBST_SED.pyqt+= -e '/^SET/s,pyrcc5,&-${PYVERSSUFFIX},' | | 62 | SUBST_SED.pyqt+= -e '/^SET/s,pyrcc5,&-${PYVERSSUFFIX},' |
57 | SUBST_SED.pyqt+= -e '/ *FIND_PROGRAM(__pyuic5 /s,"pyuic5,&-${PYVERSSUFFIX},' | | 63 | SUBST_SED.pyqt+= -e '/ *FIND_PROGRAM(__pyuic5 /s,"pyuic5,&-${PYVERSSUFFIX},' |
58 | | | 64 | |
59 | CMAKE_ARGS+= -DWITH_BINDINGS:BOOL=TRUE | | 65 | CMAKE_ARGS+= -DWITH_BINDINGS:BOOL=TRUE |
60 | CMAKE_ARGS+= -DSIP_BINARY_PATH:PATH=${BUILDLINK_PREFIX.py-sip}/bin | | | |
61 | CMAKE_ARGS+= -DWITH_INTERNAL_MARKUPSAFE=FALSE | | 66 | CMAKE_ARGS+= -DWITH_INTERNAL_MARKUPSAFE=FALSE |
62 | | | 67 | |
63 | .include "../../lang/python/application.mk" | | | |
64 | PYTHON_VERSIONS_INCOMPATIBLE= 27 37 # py-gdal | | 68 | PYTHON_VERSIONS_INCOMPATIBLE= 27 37 # py-gdal |
65 | PYTHON_VERSIONS_INCOMPATIBLE+= 311 # py-sip | | | |
66 | | | 69 | |
67 | DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests | | 70 | DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests |
68 | DEPENDS+= ${PYPKGPREFIX}-psycopg2-[0-9]*:../../databases/py-psycopg2 | | 71 | DEPENDS+= ${PYPKGPREFIX}-psycopg2-[0-9]*:../../databases/py-psycopg2 |
69 | DEPENDS+= ${PYPKGPREFIX}-gdal-[0-9]*:../../geography/py-gdal | | 72 | DEPENDS+= ${PYPKGPREFIX}-gdal-[0-9]*:../../geography/py-gdal |
70 | DEPENDS+= ${PYPKGPREFIX}-jinja2-[0-9]*:../../textproc/py-jinja2 | | 73 | DEPENDS+= ${PYPKGPREFIX}-jinja2-[0-9]*:../../textproc/py-jinja2 |
71 | DEPENDS+= ${PYPKGPREFIX}-markupsafe-[0-9]*:../../textproc/py-markupsafe | | 74 | DEPENDS+= ${PYPKGPREFIX}-markupsafe-[0-9]*:../../textproc/py-markupsafe |
72 | # for quickosm | | 75 | # for quickosm |
73 | DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml | | 76 | DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml |
74 | # for metasearch | | 77 | # for metasearch |
75 | #DEPENDS+= ${PYPKGPREFIX}-wip-[0-9]*:../../wip/py-owslib | | 78 | #DEPENDS+= ${PYPKGPREFIX}-wip-[0-9]*:../../wip/py-owslib |
76 | | | 79 | |
77 | CMAKE_ARGS+= -DWITH_QTWEBKIT=FALSE | | 80 | CMAKE_ARGS+= -DWITH_QTWEBKIT=FALSE |
78 | CMAKE_ARGS+= -DQWT_DIR=${QWT_DIR} | | 81 | CMAKE_ARGS+= -DQWT_DIR=${QWT_DIR} |
79 | # Useful for package development: | | 82 | # Useful for package development: |
80 | #CMAKE_ARGS+= -DCMAKE_VERBOSE_MAKEFILE=TRUE | | 83 | #CMAKE_ARGS+= -DCMAKE_VERBOSE_MAKEFILE=TRUE |
81 | | | 84 | |
82 | CONFIGURE_DIRS= build | | 85 | CONFIGURE_DIRS= build |
83 | CMAKE_ARG_PATH= .. | | 86 | CMAKE_ARG_PATH= .. |
84 | | | 87 | |
85 | pre-configure: | | 88 | pre-configure: |
86 | ${MKDIR} ${WRKSRC}/build | | 89 | ${MKDIR} ${WRKSRC}/build |
87 | | | 90 | |
| | | 91 | .include "../../lang/python/pyversion.mk" |
88 | .include "../../archivers/libzip/buildlink3.mk" | | 92 | .include "../../archivers/libzip/buildlink3.mk" |
89 | .include "../../archivers/zstd/buildlink3.mk" | | 93 | .include "../../archivers/zstd/buildlink3.mk" |
90 | ##.include "../../devel/qjson/buildlink3.mk" | | 94 | ##.include "../../devel/qjson/buildlink3.mk" |
91 | .include "../../devel/protobuf/buildlink3.mk" | | 95 | .include "../../devel/protobuf/buildlink3.mk" |
92 | .include "../../geography/gdal-lib/buildlink3.mk" | | 96 | .include "../../geography/gdal-lib/buildlink3.mk" |
93 | .include "../../geography/proj/buildlink3.mk" | | 97 | .include "../../geography/proj/buildlink3.mk" |
94 | .include "../../graphics/exiv2/buildlink3.mk" | | 98 | .include "../../graphics/exiv2/buildlink3.mk" |
95 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" | | 99 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" |
96 | .include "../../graphics/tiff/buildlink3.mk" | | 100 | .include "../../graphics/tiff/buildlink3.mk" |
97 | .include "../../math/gsl/buildlink3.mk" | | 101 | .include "../../math/gsl/buildlink3.mk" |
98 | .include "../../math/py-numpy/buildlink3.mk" | | 102 | .include "../../math/py-numpy/buildlink3.mk" |
99 | .include "../../textproc/expat/buildlink3.mk" | | 103 | .include "../../textproc/expat/buildlink3.mk" |
100 | .include "../../www/fcgi/buildlink3.mk" | | 104 | .include "../../www/fcgi/buildlink3.mk" |
101 | .include "../../databases/sqlite3/buildlink3.mk" | | 105 | .include "../../databases/sqlite3/buildlink3.mk" |
102 | .include "../../geography/libspatialite/buildlink3.mk" | | 106 | .include "../../geography/libspatialite/buildlink3.mk" |
103 | .include "../../geography/spatialindex/buildlink3.mk" | | 107 | .include "../../geography/spatialindex/buildlink3.mk" |
104 | .include "../../security/qca2-qt5/buildlink3.mk" | | 108 | .include "../../security/qca2-qt5/buildlink3.mk" |
105 | .include "../../security/qt5-qtkeychain/buildlink3.mk" | | 109 | .include "../../security/qt5-qtkeychain/buildlink3.mk" |
106 | .include "../../x11/py-sip/buildlink3.mk" | | | |
107 | .include "../../x11/py-qt5/buildlink3.mk" | | | |
108 | .include "../../x11/py-qt5-qscintilla/buildlink3.mk" | | | |
109 | .include "../../x11/qt5-qtbase/buildlink3.mk" | | 110 | .include "../../x11/qt5-qtbase/buildlink3.mk" |
110 | .include "../../x11/qt5-qttools/buildlink3.mk" | | 111 | .include "../../x11/qt5-qttools/buildlink3.mk" |
111 | .include "../../x11/qwt6-qt5/buildlink3.mk" | | 112 | .include "../../x11/qwt6-qt5/buildlink3.mk" |
112 | .include "../../x11/qt5-qscintilla/buildlink3.mk" | | 113 | .include "../../x11/qt5-qscintilla/buildlink3.mk" |
113 | .include "../../x11/qt5-qtserialport/buildlink3.mk" | | 114 | .include "../../x11/qt5-qtserialport/buildlink3.mk" |
114 | .include "../../x11/qt5-qtlocation/buildlink3.mk" | | 115 | .include "../../x11/qt5-qtlocation/buildlink3.mk" |
115 | .include "../../mk/pgsql.buildlink3.mk" | | 116 | .include "../../mk/pgsql.buildlink3.mk" |
116 | .include "../../mk/bsd.pkg.mk" | | 117 | .include "../../mk/bsd.pkg.mk" |