version 1.26, 2009/07/29 06:33:03 |
version 1.27, 2009/08/14 19:40:48 |
Line 26 _SYS_VARS.pgsql= PG_LIB_EXT PGSQL_TYPE P |
|
Line 26 _SYS_VARS.pgsql= PG_LIB_EXT PGSQL_TYPE P |
|
.include "../../mk/bsd.prefs.mk" |
.include "../../mk/bsd.prefs.mk" |
|
|
PGSQL_VERSION_DEFAULT?= 82 |
PGSQL_VERSION_DEFAULT?= 82 |
PGSQL_VERSIONS_ACCEPTED?= 84 83 82 81 |
PGSQL_VERSIONS_ACCEPTED?= 84 83 82 |
|
|
# transform the list into individual variables |
# transform the list into individual variables |
.for pv in ${PGSQL_VERSIONS_ACCEPTED} |
.for pv in ${PGSQL_VERSIONS_ACCEPTED} |
Line 50 _PGSQL_VERSION_83_INSTALLED= yes |
|
Line 50 _PGSQL_VERSION_83_INSTALLED= yes |
|
.if exists(${LOCALBASE}/lib/libecpg.5.0.2.dylib) |
.if exists(${LOCALBASE}/lib/libecpg.5.0.2.dylib) |
_PGSQL_VERSION_82_INSTALLED= yes |
_PGSQL_VERSION_82_INSTALLED= yes |
.endif |
.endif |
.if exists(${LOCALBASE}/lib/libecpg.5.0.1.dylib) |
|
_PGSQL_VERSION_81_INSTALLED= yes |
|
.endif |
|
.if exists(${LOCALBASE}/lib/libecpg.5.0.dylib) |
|
_PGSQL_VERSION_80_INSTALLED= yes |
|
.endif |
|
.if exists(${LOCALBASE}/lib/libecpg.4.1.dylib) |
|
_PGSQL_VERSION_74_INSTALLED= yes |
|
.endif |
|
.if exists(${LOCALBASE}/lib/libecpg.3.dylib) |
|
_PGSQL_VERSION_73_INSTALLED=yes |
|
.endif |
|
.else |
.else |
.if exists(${LOCALBASE}/lib/libecpg.so.6.0.1) |
.if exists(${LOCALBASE}/lib/libecpg.so.6.0.1) |
_PGSQL_VERSION_84_INSTALLED= yes |
_PGSQL_VERSION_84_INSTALLED= yes |
Line 72 _PGSQL_VERSION_83_INSTALLED= yes |
|
Line 60 _PGSQL_VERSION_83_INSTALLED= yes |
|
.if exists(${LOCALBASE}/lib/libecpg.so.5.0.2) |
.if exists(${LOCALBASE}/lib/libecpg.so.5.0.2) |
_PGSQL_VERSION_82_INSTALLED= yes |
_PGSQL_VERSION_82_INSTALLED= yes |
.endif |
.endif |
.if exists(${LOCALBASE}/lib/libecpg.so.5.0.1) |
|
_PGSQL_VERSION_81_INSTALLED= yes |
|
.endif |
|
.if exists(${LOCALBASE}/lib/libecpg.so.5.0.0) |
|
_PGSQL_VERSION_80_INSTALLED= yes |
|
.endif |
|
.if exists(${LOCALBASE}/lib/libecpg.so.4.1) |
|
_PGSQL_VERSION_74_INSTALLED= yes |
|
.endif |
|
.if exists(${LOCALBASE}/lib/libecpg.so.3) |
|
_PGSQL_VERSION_73_INSTALLED=yes |
|
.endif |
|
.endif |
.endif |
|
|
# if a version is explicitely required, take it |
# if a version is explicitely required, take it |
Line 132 PGPKGSRCDIR= ../../databases/postgresql8 |
|
Line 108 PGPKGSRCDIR= ../../databases/postgresql8 |
|
.elif ${_PGSQL_VERSION} == "82" |
.elif ${_PGSQL_VERSION} == "82" |
PGSQL_TYPE= postgresql82-client |
PGSQL_TYPE= postgresql82-client |
PGPKGSRCDIR= ../../databases/postgresql82-client |
PGPKGSRCDIR= ../../databases/postgresql82-client |
.elif ${_PGSQL_VERSION} == "81" |
|
PGSQL_TYPE= postgresql81-client |
|
PGPKGSRCDIR= ../../databases/postgresql81-client |
|
.elif ${_PGSQL_VERSION} == "80" |
|
PGSQL_TYPE= postgresql80-client |
|
PGPKGSRCDIR= ../../databases/postgresql80-client |
|
.else |
.else |
# force an error |
# force an error |
PGSQL_TYPE= none |
PGSQL_TYPE= none |