git: ae62aad22ef4 - main - graphics/qgis-ltr: Update to 3.28.7

From: Rainer Hurling <rhurlin_at_FreeBSD.org>
Date: Mon, 29 May 2023 17:26:39 UTC
The branch main has been updated by rhurlin:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ae62aad22ef4c3b63a718533cdee568f36fc4851

commit ae62aad22ef4c3b63a718533cdee568f36fc4851
Author:     Rainer Hurling <rhurlin@FreeBSD.org>
AuthorDate: 2023-05-29 17:23:15 +0000
Commit:     Rainer Hurling <rhurlin@FreeBSD.org>
CommitDate: 2023-05-29 17:26:15 +0000

    graphics/qgis-ltr: Update to 3.28.7
    
    Bugfix release. While here, also fix cmake configure:
    If PostgreSQL server and client are present, the 'About' dialog
    does not show the PostgreSQL version any more
    
    Changelog: https://github.com/qgis/QGIS/compare/final-3_28_6%5E...final-3_28_7
    
    Reported by:    portscout, Repology
    MFH:            2023Q2
---
 graphics/qgis-ltr/Makefile | 9 +++++++--
 graphics/qgis-ltr/distinfo | 6 +++---
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/graphics/qgis-ltr/Makefile b/graphics/qgis-ltr/Makefile
index 76a8f9eba832..f0df3f15c7b5 100644
--- a/graphics/qgis-ltr/Makefile
+++ b/graphics/qgis-ltr/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	qgis
-DISTVERSION=	3.28.6
-PORTREVISION=	1
+DISTVERSION=	3.28.7
 CATEGORIES=	graphics geography
 MASTER_SITES=	https://qgis.org/downloads/
 PKGNAMESUFFIX=	-ltr
@@ -119,6 +118,7 @@ USE_QT=		3d buildtools:build core concurrent dbus declarative \
 SHEBANG_FILES=	src/plugins/grass/scripts/*.py
 
 CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE:STRING=Release \
+		-DHAVE_PGCONFIG=1 \
 		-DLazPerf_INCLUDE_DIR:PATH=${LOCALBASE}/include/lazperf \
 		-DWITH_INTERNAL_MDAL:BOOL=false \
 		-DPYRCC_PROGRAM:FILEPATH=${LOCALBASE}/bin/pyrcc5-${PYTHON_VER} \
@@ -163,6 +163,11 @@ BUILD_DEPENDS+=	${LOCALBASE}/bin/flex:textproc/flex
 CMAKE_ARGS+=	-DFLEX_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/flex
 .endif
 
+pre-patch:
+	# Only PostgreSQL Client headers, not Server
+	@${REINPLACE_CMD} -e 's|set(POSTGRES_INCLUDE_DIR \$${PostgreSQL_INCLUDE_DIRS})|set(POSTGRES_INCLUDE ${LOCALBASE}/include)|g' \
+		${WRKSRC}/cmake/FindPostgres.cmake
+
 post-patch:
 # On i386, '-mllvm -inline-threshold=128' does not build under all circumstances
 # See bugs 242557 and 241687.
diff --git a/graphics/qgis-ltr/distinfo b/graphics/qgis-ltr/distinfo
index f79b3fbf1e6b..19a7a14dd2c7 100644
--- a/graphics/qgis-ltr/distinfo
+++ b/graphics/qgis-ltr/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1682860919
-SHA256 (qgis-3.28.6.tar.bz2) = 2dfacce09f59e6c8cac621dee94bba4c20aa303ca1a204ee70bbddd7c2a301e0
-SIZE (qgis-3.28.6.tar.bz2) = 158638644
+TIMESTAMP = 1685370449
+SHA256 (qgis-3.28.7.tar.bz2) = 6798c941745f233112d2e93cb531d9a5fc750812d1a6facaa6d0457cf32bf4fa
+SIZE (qgis-3.28.7.tar.bz2) = 159079126