pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Added support for PostgreSQL 10.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/49cf8bad453d
branches:  trunk
changeset: 370774:49cf8bad453d
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Oct 23 20:34:27 2017 +0000

description:
Added support for PostgreSQL 10.0

diffstat:

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

diffs (50 lines):

diff -r 30a8306f3203 -r 49cf8bad453d mk/pgsql.buildlink3.mk
--- a/mk/pgsql.buildlink3.mk    Mon Oct 23 20:33:49 2017 +0000
+++ b/mk/pgsql.buildlink3.mk    Mon Oct 23 20:34:27 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: pgsql.buildlink3.mk,v 1.45 2017/06/01 13:30:26 jlam Exp $
+# $NetBSD: pgsql.buildlink3.mk,v 1.46 2017/10/23 20:34:27 adam Exp $
 #
 # User-settable variables:
 #
@@ -25,7 +25,7 @@
 .include "../../mk/bsd.prefs.mk"
 
 PGSQL_VERSION_DEFAULT?=                95
-PGSQL_VERSIONS_ACCEPTED?=      96 95 94 93 92
+PGSQL_VERSIONS_ACCEPTED?=      10 96 95 94 93 92
 
 # transform the list into individual variables
 .for pv in ${PGSQL_VERSIONS_ACCEPTED}
@@ -40,6 +40,9 @@
 
 # check what is installed
 .if ${OPSYS} == "Darwin"
+.  if exists(${LOCALBASE}/lib/libecpg.6.10.dylib)
+_PGSQL_VERSION_10_INSTALLED=   yes
+.  endif
 .  if exists(${LOCALBASE}/lib/libecpg.6.8.dylib)
 _PGSQL_VERSION_96_INSTALLED=   yes
 .  endif
@@ -56,6 +59,9 @@
 _PGSQL_VERSION_92_INSTALLED=   yes
 .  endif
 .else
+.  if exists(${LOCALBASE}/lib/libecpg.so.6.10)
+_PGSQL_VERSION_10_INSTALLED=   yes
+.  endif
 .  if exists(${LOCALBASE}/lib/libecpg.so.6.8)
 _PGSQL_VERSION_96_INSTALLED=   yes
 .  endif
@@ -108,7 +114,10 @@
 .endif
 
 # set variables for the version we decided to use:
-.if ${_PGSQL_VERSION} == "96"
+.if ${_PGSQL_VERSION} == "10"
+PGSQL_TYPE=    postgresql10-client
+PGPKGSRCDIR=   ../../databases/postgresql10-client
+.elif ${_PGSQL_VERSION} == "96"
 PGSQL_TYPE=    postgresql96-client
 PGPKGSRCDIR=   ../../databases/postgresql96-client
 .elif ${_PGSQL_VERSION} == "95"



Home | Main Index | Thread Index | Old Index