pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Handle PostgreSQL 15.x



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f694ef5d8d2b
branches:  trunk
changeset: 387199:f694ef5d8d2b
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Oct 24 19:52:35 2022 +0000

description:
Handle PostgreSQL 15.x

diffstat:

 mk/pgsql.buildlink3.mk |  15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diffs (50 lines):

diff -r cb4ff4a31d73 -r f694ef5d8d2b mk/pgsql.buildlink3.mk
--- a/mk/pgsql.buildlink3.mk    Mon Oct 24 18:18:34 2022 +0000
+++ b/mk/pgsql.buildlink3.mk    Mon Oct 24 19:52:35 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: pgsql.buildlink3.mk,v 1.59 2022/06/28 09:38:38 nia Exp $
+# $NetBSD: pgsql.buildlink3.mk,v 1.60 2022/10/24 19:52:35 adam Exp $
 #
 # User-settable variables:
 #
@@ -26,7 +26,7 @@
 .include "../../mk/bsd.prefs.mk"
 
 PGSQL_VERSION_DEFAULT?=                14
-PGSQL_VERSIONS_ACCEPTED?=      14 13 12 11 10
+PGSQL_VERSIONS_ACCEPTED?=      15 14 13 12 11 10
 
 # transform the list into individual variables
 .for pv in ${PGSQL_VERSIONS_ACCEPTED}
@@ -41,6 +41,9 @@
 
 # check what is installed
 .if ${OPSYS} == "Darwin"
+.  if exists(${LOCALBASE}/lib/libecpg.6.15.dylib)
+_PGSQL_VERSION_15_INSTALLED=   yes
+.  endif
 .  if exists(${LOCALBASE}/lib/libecpg.6.14.dylib)
 _PGSQL_VERSION_14_INSTALLED=   yes
 .  endif
@@ -57,6 +60,9 @@
 _PGSQL_VERSION_10_INSTALLED=   yes
 .  endif
 .else
+.  if exists(${LOCALBASE}/lib/libecpg.so.6.15)
+_PGSQL_VERSION_15_INSTALLED=   yes
+.  endif
 .  if exists(${LOCALBASE}/lib/libecpg.so.6.14)
 _PGSQL_VERSION_14_INSTALLED=   yes
 .  endif
@@ -109,7 +115,10 @@
 .endif
 
 # set variables for the version we decided to use:
-.if ${_PGSQL_VERSION} == "14"
+.if ${_PGSQL_VERSION} == "15"
+PGSQL_TYPE=    postgresql15-client
+PGPKGSRCDIR=   ../../databases/postgresql15-client
+.elif ${_PGSQL_VERSION} == "14"
 PGSQL_TYPE=    postgresql14-client
 PGPKGSRCDIR=   ../../databases/postgresql14-client
 .elif ${_PGSQL_VERSION} == "13"



Home | Main Index | Thread Index | Old Index