summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2016-10-30 08:57:12 +0000
committeradam <adam@pkgsrc.org>2016-10-30 08:57:12 +0000
commiteda19000455617baa6c2208fd68de87e65df70c2 (patch)
treedda06dc1cddef11981830a8afad3b846ab99e3fc /mk
parent41edf8285fb7a435323519227b81543218a52f82 (diff)
downloadpkgsrc-eda19000455617baa6c2208fd68de87e65df70c2.tar.gz
Added postgresql96 support
Diffstat (limited to 'mk')
-rw-r--r--mk/pgsql.buildlink3.mk15
1 files changed, 12 insertions, 3 deletions
diff --git a/mk/pgsql.buildlink3.mk b/mk/pgsql.buildlink3.mk
index acfd62adff1..d564bc6776d 100644
--- a/mk/pgsql.buildlink3.mk
+++ b/mk/pgsql.buildlink3.mk
@@ -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 @@ _SYS_VARS.pgsql= PG_LIB_EXT PGSQL_TYPE PGPKGSRCDIR
.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 @@ PG_LIB_EXT=so
# 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_90_INSTALLED= yes
_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 @@ _PGSQL_VERSION= ${_PGSQL_VERSION_FIRSTACCEPTED}
.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"