version 1.34, 2012/10/05 21:09:02 |
version 1.46, 2017/10/23 20:34:27 |
Line 24 _SYS_VARS.pgsql= PG_LIB_EXT PGSQL_TYPE P |
|
Line 24 _SYS_VARS.pgsql= PG_LIB_EXT PGSQL_TYPE P |
|
|
|
.include "../../mk/bsd.prefs.mk" |
.include "../../mk/bsd.prefs.mk" |
|
|
PGSQL_VERSION_DEFAULT?= 91 |
PGSQL_VERSION_DEFAULT?= 95 |
PGSQL_VERSIONS_ACCEPTED?= 92 91 90 84 83 |
PGSQL_VERSIONS_ACCEPTED?= 10 96 95 94 93 92 |
|
|
# transform the list into individual variables |
# transform the list into individual variables |
.for pv in ${PGSQL_VERSIONS_ACCEPTED} |
.for pv in ${PGSQL_VERSIONS_ACCEPTED} |
_PGSQL_VERSION_${pv}_OK= yes |
_PGSQL_VERSION_${pv}_OK= yes |
.endfor |
.endfor |
|
|
.if ${_OPSYS_SHLIB_TYPE} == "dylib" |
.if ${SHLIB_TYPE} == "dylib" |
PG_LIB_EXT=dylib |
PG_LIB_EXT=dylib |
.else |
.else |
PG_LIB_EXT=so |
PG_LIB_EXT=so |
|
|
|
|
# check what is installed |
# check what is installed |
.if ${OPSYS} == "Darwin" |
.if ${OPSYS} == "Darwin" |
. if exists(${LOCALBASE}/lib/libecpg.6.4.dylib) |
. if exists(${LOCALBASE}/lib/libecpg.6.10.dylib) |
_PGSQL_VERSION_92_INSTALLED= yes |
_PGSQL_VERSION_10_INSTALLED= yes |
. endif |
. endif |
. if exists(${LOCALBASE}/lib/libecpg.6.3.dylib) |
. if exists(${LOCALBASE}/lib/libecpg.6.8.dylib) |
_PGSQL_VERSION_91_INSTALLED= yes |
_PGSQL_VERSION_96_INSTALLED= yes |
. endif |
. endif |
. if exists(${LOCALBASE}/lib/libecpg.6.2.dylib) |
. if exists(${LOCALBASE}/lib/libecpg.6.7.dylib) |
_PGSQL_VERSION_90_INSTALLED= yes |
_PGSQL_VERSION_95_INSTALLED= yes |
. endif |
. endif |
. if exists(${LOCALBASE}/lib/libecpg.6.1.dylib) |
. if exists(${LOCALBASE}/lib/libecpg.6.6.dylib) |
_PGSQL_VERSION_84_INSTALLED= yes |
_PGSQL_VERSION_94_INSTALLED= yes |
. endif |
. endif |
. if exists(${LOCALBASE}/lib/libecpg.6.0.dylib) |
. if exists(${LOCALBASE}/lib/libecpg.6.5.dylib) |
_PGSQL_VERSION_83_INSTALLED= yes |
_PGSQL_VERSION_93_INSTALLED= yes |
. endif |
. endif |
.else |
. if exists(${LOCALBASE}/lib/libecpg.6.4.dylib) |
. if exists(${LOCALBASE}/lib/libecpg.so.6.4) |
|
_PGSQL_VERSION_92_INSTALLED= yes |
_PGSQL_VERSION_92_INSTALLED= yes |
. endif |
. endif |
. if exists(${LOCALBASE}/lib/libecpg.so.6.3) |
.else |
_PGSQL_VERSION_91_INSTALLED= yes |
. 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 |
|
. if exists(${LOCALBASE}/lib/libecpg.so.6.7) |
|
_PGSQL_VERSION_95_INSTALLED= yes |
. endif |
. endif |
. if exists(${LOCALBASE}/lib/libecpg.so.6.2) |
. if exists(${LOCALBASE}/lib/libecpg.so.6.6) |
_PGSQL_VERSION_90_INSTALLED= yes |
_PGSQL_VERSION_94_INSTALLED= yes |
. endif |
. endif |
. if exists(${LOCALBASE}/lib/libecpg.so.6.1) |
. if exists(${LOCALBASE}/lib/libecpg.so.6.5) |
_PGSQL_VERSION_84_INSTALLED= yes |
_PGSQL_VERSION_93_INSTALLED= yes |
. endif |
. endif |
. if exists(${LOCALBASE}/lib/libecpg.so.6.0) |
. if exists(${LOCALBASE}/lib/libecpg.so.6.4) |
_PGSQL_VERSION_83_INSTALLED= yes |
_PGSQL_VERSION_92_INSTALLED= yes |
. endif |
. endif |
.endif |
.endif |
|
|
Line 107 _PGSQL_VERSION= ${PGSQL_VERSION_DEFAULT} |
|
Line 113 _PGSQL_VERSION= ${PGSQL_VERSION_DEFAULT} |
|
_PGSQL_VERSION= ${_PGSQL_VERSION_FIRSTACCEPTED} |
_PGSQL_VERSION= ${_PGSQL_VERSION_FIRSTACCEPTED} |
.endif |
.endif |
|
|
# |
|
# set variables for the version we decided to use: |
# set variables for the version we decided to use: |
# |
.if ${_PGSQL_VERSION} == "10" |
.if ${_PGSQL_VERSION} == "92" |
PGSQL_TYPE= postgresql10-client |
|
PGPKGSRCDIR= ../../databases/postgresql10-client |
|
.elif ${_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" |
|
PGSQL_TYPE= postgresql94-client |
|
PGPKGSRCDIR= ../../databases/postgresql94-client |
|
.elif ${_PGSQL_VERSION} == "93" |
|
PGSQL_TYPE= postgresql93-client |
|
PGPKGSRCDIR= ../../databases/postgresql93-client |
|
.elif ${_PGSQL_VERSION} == "92" |
PGSQL_TYPE= postgresql92-client |
PGSQL_TYPE= postgresql92-client |
PGPKGSRCDIR= ../../databases/postgresql92-client |
PGPKGSRCDIR= ../../databases/postgresql92-client |
.elif ${_PGSQL_VERSION} == "91" |
|
PGSQL_TYPE= postgresql91-client |
|
PGPKGSRCDIR= ../../databases/postgresql91-client |
|
.elif ${_PGSQL_VERSION} == "90" |
|
PGSQL_TYPE= postgresql90-client |
|
PGPKGSRCDIR= ../../databases/postgresql90-client |
|
.elif ${_PGSQL_VERSION} == "84" |
|
PGSQL_TYPE= postgresql84-client |
|
PGPKGSRCDIR= ../../databases/postgresql84-client |
|
.elif ${_PGSQL_VERSION} == "83" |
|
PGSQL_TYPE= postgresql83-client |
|
PGPKGSRCDIR= ../../databases/postgresql83-client |
|
.else |
.else |
# force an error |
# force an error |
PGSQL_TYPE= none |
PGSQL_TYPE= none |