|
1 | 1 | # Template file for 'qgis' |
2 | 2 | pkgname=qgis |
3 | | -version=3.44.4 |
4 | | -revision=6 |
| 3 | +version=4.2.2 |
| 4 | +revision=1 |
5 | 5 | build_style=cmake |
6 | | -configure_args="-DENABLE_TESTS=OFF -DWITH_3D=True -DWITH_PDAL=True |
7 | | - -DBUILD_WITH_QT6=ON -DWITH_PDF4QT=ON -DWITH_QTWEBKIT=NO |
| 6 | +configure_args="-DENABLE_TESTS=OFF |
| 7 | + -DWITH_3D=True |
| 8 | + -DWITH_PDAL=True |
| 9 | + -DWITH_PDF4QT=ON |
8 | 10 | -DPDF4QT_INSTALL_TO_USR=OFF |
9 | | - -DGRASS_PREFIX8=${XBPS_CROSS_BASE}/usr/lib/grass" |
| 11 | + $(vopt_bool qtwebengine WITH_QTWEBENGINE) |
| 12 | + $(vopt_bool grass WITH_GRASS8) |
| 13 | + $(vopt_if grass -DGRASS_PREFIX8=${XBPS_CROSS_BASE}/usr/lib/grass)" |
10 | 14 | _pyqt="python3-pyqt6 python3-pyqt6-gui python3-pyqt6-serialport |
11 | 15 | python3-pyqt6-printsupport python3-pyqt6-multimedia python3-pyqt6-network |
12 | 16 | python3-pyqt6-xml python3-pyqt6-declarative python3-pyqt6-sql |
13 | 17 | python3-pyqt6-widgets python3-pyqt6-position python3-pyqt6-devel-tools |
14 | | - python3-pyqt6-svg python3-pyqt6-qsci" |
| 18 | + python3-pyqt6-svg python3-pyqt6-qsci python3-pyqt6-webchannel" |
15 | 19 | hostmakedepends="bison flex pkg-config protobuf python3 python3-pyqt6-sip sip" |
16 | 20 | makedepends="exiv2-devel draco-devel expat-devel freexl-devel geos-devel |
17 | | - gsl-devel grass-devel hdf5-devel libgdal-devel libpdal-devel librttopo-devel |
| 21 | + gsl-devel $(vopt_if grass grass-devel) hdf5-devel libblend2d-devel |
| 22 | + libgdal-devel libpdal-devel librttopo-devel |
18 | 23 | libspatialindex-devel libspatialite-devel libxml2-devel libzip-devel |
19 | | - minizip-devel netcdf-devel ocl-icd-devel postgresql-libs-devel |
| 24 | + libzstd-devel minizip-devel netcdf-devel ocl-icd-devel OpenCL-CLHPP |
| 25 | + postgresql-libs-devel |
20 | 26 | proj-devel protobuf-devel python3-devel python3-PyQt-builder |
21 | 27 | qt6-base-private-devel qt6-svg-devel qt6-position-devel qt6-qt5compat-devel |
22 | 28 | qt6-declarative-devel qt6-serialport-devel qt6-3d-devel |
23 | | - qt6-multimedia-devel |
| 29 | + qt6-multimedia-devel $(vopt_if qtwebengine qt6-webengine-devel) |
24 | 30 | qt6-plugin-odbc qt6-plugin-pgsql qt6-plugin-sqlite |
25 | 31 | qscintilla-qt6-devel qtkeychain-qt6-devel qca-qt6-devel qwt-qt6-devel |
26 | 32 | python3-pyqt6-bindings python3-pyqt6-qsci-devel python3-pyqt6-sip ${_pyqt} |
27 | | - python3-devel sqlite-devel zlib-devel libopenjpeg2-devel" |
28 | | -depends="libgdal-python3 python3-dateutil python3-dateutil python3-yaml |
29 | | - python3-Jinja2 python3-numpy python3-numpy python3-owslib python3-Pillow |
| 33 | + $(vopt_if qtwebengine python3-pyqt6-webengine) |
| 34 | + sqlite-devel zlib-devel libopenjpeg2-devel" |
| 35 | +depends="libgdal-python3 python3-dateutil python3-yaml |
| 36 | + python3-Jinja2 python3-numpy python3-owslib python3-packaging python3-Pillow |
30 | 37 | python3-psycopg2 python3-Pygments python3-pytz python3-requests python3-urllib3 |
31 | | - ${_pyqt} qca-qt6 qt6-plugin-sqlite qt6-plugin-tls-openssl" |
| 38 | + ${_pyqt} $(vopt_if qtwebengine python3-pyqt6-webengine) |
| 39 | + qca-qt6 qt6-plugin-sqlite qt6-plugin-tls-openssl" |
32 | 40 | short_desc="Open Source Geographic Information System" |
33 | 41 | maintainer="Arjan Mossel <arjanmossel@gmail.com>" |
34 | 42 | license="GPL-2.0-only" |
35 | 43 | homepage="https://qgis.org" |
36 | 44 | distfiles="https://github.com/qgis/QGIS/archive/final-${version//./_}.tar.gz" |
37 | | -checksum=1396c84dd6c9c89c026de8b564319e0f6206c8bbc1b160bfdc0fdf49adb61748 |
38 | | -nocross="due to grass" |
| 45 | +checksum=b97bdf0e882f996be5a6fd36d965e27d6d68b0fb89fdd5fe1fc0ebeb3f4c8192 |
39 | 46 |
|
40 | | -post_configure() { |
41 | | - # No idea why the patch was removed on generated files |
42 | | - sed -i 's/[.]sip[.]in$/.sip/' ftbfs.patch |
43 | | - cd build |
44 | | - patch -Np1 -s -i ../ftbfs.patch |
45 | | -} |
| 47 | +build_options="grass qtwebengine" |
| 48 | +desc_option_grass="Enable GRASS GIS support" |
| 49 | +desc_option_qtwebengine="Enable Qt6 WebEngine support" |
| 50 | + |
| 51 | +if [ -z "$CROSS_BUILD" ]; then |
| 52 | + build_options_default="grass" |
| 53 | +fi |
| 54 | + |
| 55 | +if [ "$XBPS_WORDSIZE$XBPS_WORDSIZE" = "64$XBPS_TARGET_WORDSIZE" ]; then |
| 56 | + build_options_default+=" qtwebengine" |
| 57 | +fi |
| 58 | + |
| 59 | +if [ "$CROSS_BUILD" ]; then |
| 60 | + hostmakedepends+=" python3-PyQt-builder python3-pyqt6-devel |
| 61 | + python3-pyqt6-gui python3-pyqt6-printsupport python3-pyqt6-qsci-devel |
| 62 | + python3-pyqt6-widgets qt6-base qt6-declarative-host-tools qt6-tools" |
| 63 | + configure_args+=" -DQt6LinguistTools_DIR=/usr/lib/cmake/Qt6LinguistTools" |
| 64 | +fi |
46 | 65 |
|
47 | 66 | post_install() { |
48 | 67 | mv ${DESTDIR}/usr/share/qgis/python ${DESTDIR}/usr/lib/qgis/ |
|
0 commit comments