git: 4d011bdbc64a - main - databases/postgis32: enforce pgsql version limit

From: Kevin Bowling <kbowling_at_FreeBSD.org>
Date: Sat, 06 Jul 2024 23:41:18 UTC
The branch main has been updated by kbowling:

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

commit 4d011bdbc64aecb5d158822b01a1d242cb865fa6
Author:     Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2024-07-06 23:21:13 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2024-07-06 23:21:13 +0000

    databases/postgis32: enforce pgsql version limit
    
    PR:             278885
    Reported by:    antoine
---
 databases/postgis32/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/databases/postgis32/Makefile b/databases/postgis32/Makefile
index 5d7cc06b3046..c6d023a2e94a 100644
--- a/databases/postgis32/Makefile
+++ b/databases/postgis32/Makefile
@@ -18,7 +18,7 @@ LIB_DEPENDS=	libproj.so:graphics/proj \
 		libgdal.so:graphics/gdal
 
 USES=		alias compiler:c++14-lang cpe gmake gnome iconv:wchar_t libtool:keepla \
-		localbase perl5 pkgconfig pgsql:11-15 shebangfix
+		localbase perl5 pkgconfig pgsql shebangfix
 USE_GNOME=	libxml2
 USE_PERL5=	build
 
@@ -69,6 +69,10 @@ PLIST_SUB=	PORTVERSION=${PORTVERSION}${DISTVERSIONSUFFIX} \
 
 .include <bsd.port.pre.mk>
 
+.if ${PGSQL_VER} > 15
+IGNORE=		Only supported up to pgsql 15
+.endif
+
 .if ${CHOSEN_COMPILER_TYPE} == gcc
 post-patch:
 	${REINPLACE_CMD} -e '/^#pragma GCC diagnostic/d' \