pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Added postgresql96 support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d5a6f0cf475b
branches:  trunk
changeset: 354440:d5a6f0cf475b
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun Oct 30 08:57:12 2016 +0000

description:
Added postgresql96 support

diffstat:

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

diffs (50 lines):

diff -r 20578b629295 -r d5a6f0cf475b mk/pgsql.buildlink3.mk
--- a/mk/pgsql.buildlink3.mk    Sun Oct 30 05:22:50 2016 +0000
+++ b/mk/pgsql.buildlink3.mk    Sun Oct 30 08:57:12 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: pgsql.buildlink3.mk,v 1.42 2016/10/09 21:08:18 wiz Exp $
+# $NetBSD: pgsql.buildlink3.mk,v 1.43 2016/10/30 08:57:12 adam Exp $
 #
 # User-settable variables:
 #
@@ -25,7 +25,7 @@
 .include "../../mk/bsd.prefs.mk"
 
 PGSQL_VERSION_DEFAULT?=                95
-PGSQL_VERSIONS_ACCEPTED?=      95 94 93 92 91
+PGSQL_VERSIONS_ACCEPTED?=      96 95 94 93 92 91
 
 # 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.8.dylib)
+_PGSQL_VERSION_96_INSTALLED=   yes
+.  endif
 .  if exists(${LOCALBASE}/lib/libecpg.6.7.dylib)
 _PGSQL_VERSION_95_INSTALLED=   yes
 .  endif
@@ -62,6 +65,9 @@
 _PGSQL_VERSION_84_INSTALLED=   yes
 .  endif
 .else
+.  if exists(${LOCALBASE}/lib/libecpg.so.6.8)
+_PGSQL_VERSION_96_INSTALLED=   yes
+.  endif
 .  if exists(${LOCALBASE}/lib/libecpg.so.6.7)
 _PGSQL_VERSION_95_INSTALLED=   yes
 .  endif
@@ -120,7 +126,10 @@
 .endif
 
 # set variables for the version we decided to use:
-.if ${_PGSQL_VERSION} == "95"
+.if ${_PGSQL_VERSION} == "96"
+PGSQL_TYPE=    postgresql96-client
+PGPKGSRCDIR=   ../../databases/postgresql96-client
+.elif ${_PGSQL_VERSION} == "95"
 PGSQL_TYPE=    postgresql95-client
 PGPKGSRCDIR=   ../../databases/postgresql95-client
 .elif ${_PGSQL_VERSION} == "94"



Home | Main Index | Thread Index | Old Index