Import of pkgsrc-2014Q1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# $NetBSD: pgsql.buildlink3.mk,v 1.35 2013/04/04 21:08:25 adam Exp $
|
||||
# $NetBSD: pgsql.buildlink3.mk,v 1.36 2013/09/10 15:35:30 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?= 91
|
||||
PGSQL_VERSIONS_ACCEPTED?= 92 91 90 84
|
||||
PGSQL_VERSIONS_ACCEPTED?= 93 92 91 90 84
|
||||
|
||||
# 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.5.dylib)
|
||||
_PGSQL_VERSION_93_INSTALLED= yes
|
||||
. endif
|
||||
. if exists(${LOCALBASE}/lib/libecpg.6.4.dylib)
|
||||
_PGSQL_VERSION_92_INSTALLED= yes
|
||||
. endif
|
||||
@@ -53,6 +56,9 @@ _PGSQL_VERSION_90_INSTALLED= yes
|
||||
_PGSQL_VERSION_84_INSTALLED= yes
|
||||
. endif
|
||||
.else
|
||||
. if exists(${LOCALBASE}/lib/libecpg.so.6.5)
|
||||
_PGSQL_VERSION_93_INSTALLED= yes
|
||||
. endif
|
||||
. if exists(${LOCALBASE}/lib/libecpg.so.6.4)
|
||||
_PGSQL_VERSION_92_INSTALLED= yes
|
||||
. endif
|
||||
@@ -102,7 +108,10 @@ _PGSQL_VERSION= ${_PGSQL_VERSION_FIRSTACCEPTED}
|
||||
.endif
|
||||
|
||||
# set variables for the version we decided to use:
|
||||
.if ${_PGSQL_VERSION} == "92"
|
||||
.if ${_PGSQL_VERSION} == "93"
|
||||
PGSQL_TYPE= postgresql93-client
|
||||
PGPKGSRCDIR= ../../databases/postgresql93-client
|
||||
.elif ${_PGSQL_VERSION} == "92"
|
||||
PGSQL_TYPE= postgresql92-client
|
||||
PGPKGSRCDIR= ../../databases/postgresql92-client
|
||||
.elif ${_PGSQL_VERSION} == "91"
|
||||
|
||||
Reference in New Issue
Block a user