[BACK]Return to pgsql.buildlink3.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / mk

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /pkgsrc/mk/pgsql.buildlink3.mk between version 1.40 and 1.44

version 1.40, 2015/10/24 21:21:26 version 1.44, 2017/05/24 19:51:12
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?=         93  PGSQL_VERSION_DEFAULT?=         95
 PGSQL_VERSIONS_ACCEPTED?=       94 93 92 91  PGSQL_VERSIONS_ACCEPTED?=       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}
Line 40  PG_LIB_EXT=so
Line 40  PG_LIB_EXT=so
   
 # check what is installed  # check what is installed
 .if ${OPSYS} == "Darwin"  .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
 .  if exists(${LOCALBASE}/lib/libecpg.6.6.dylib)  .  if exists(${LOCALBASE}/lib/libecpg.6.6.dylib)
 _PGSQL_VERSION_94_INSTALLED=    yes  _PGSQL_VERSION_94_INSTALLED=    yes
 .  endif  .  endif
Line 49  _PGSQL_VERSION_93_INSTALLED= yes
Line 55  _PGSQL_VERSION_93_INSTALLED= yes
 .  if exists(${LOCALBASE}/lib/libecpg.6.4.dylib)  .  if exists(${LOCALBASE}/lib/libecpg.6.4.dylib)
 _PGSQL_VERSION_92_INSTALLED=    yes  _PGSQL_VERSION_92_INSTALLED=    yes
 .  endif  .  endif
 .  if exists(${LOCALBASE}/lib/libecpg.6.3.dylib)  .else
 _PGSQL_VERSION_91_INSTALLED=    yes  .  if exists(${LOCALBASE}/lib/libecpg.so.6.8)
 .  endif  _PGSQL_VERSION_96_INSTALLED=    yes
 .  if exists(${LOCALBASE}/lib/libecpg.6.2.dylib)  
 _PGSQL_VERSION_90_INSTALLED=    yes  
 .  endif  .  endif
 .  if exists(${LOCALBASE}/lib/libecpg.6.1.dylib)  .  if exists(${LOCALBASE}/lib/libecpg.so.6.7)
 _PGSQL_VERSION_84_INSTALLED=    yes  _PGSQL_VERSION_95_INSTALLED=    yes
 .  endif  .  endif
 .else  
 .  if exists(${LOCALBASE}/lib/libecpg.so.6.6)  .  if exists(${LOCALBASE}/lib/libecpg.so.6.6)
 _PGSQL_VERSION_94_INSTALLED=    yes  _PGSQL_VERSION_94_INSTALLED=    yes
 .  endif  .  endif
Line 68  _PGSQL_VERSION_93_INSTALLED= yes
Line 71  _PGSQL_VERSION_93_INSTALLED= yes
 .  if exists(${LOCALBASE}/lib/libecpg.so.6.4)  .  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)  
 _PGSQL_VERSION_91_INSTALLED=    yes  
 .  endif  
 .  if exists(${LOCALBASE}/lib/libecpg.so.6.2)  
 _PGSQL_VERSION_90_INSTALLED=    yes  
 .  endif  
 .  if exists(${LOCALBASE}/lib/libecpg.so.6.1)  
 _PGSQL_VERSION_84_INSTALLED=    yes  
 .  endif  
 .endif  .endif
   
 # if a version is explicitely required, take it  # if a version is explicitely required, take it
Line 114  _PGSQL_VERSION= ${_PGSQL_VERSION_FIRSTAC
Line 108  _PGSQL_VERSION= ${_PGSQL_VERSION_FIRSTAC
 .endif  .endif
   
 # set variables for the version we decided to use:  # set variables for the version we decided to use:
 .if ${_PGSQL_VERSION} == "94"  .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"
 PGSQL_TYPE=     postgresql94-client  PGSQL_TYPE=     postgresql94-client
 PGPKGSRCDIR=    ../../databases/postgresql94-client  PGPKGSRCDIR=    ../../databases/postgresql94-client
 .elif ${_PGSQL_VERSION} == "93"  .elif ${_PGSQL_VERSION} == "93"
Line 123  PGPKGSRCDIR= ../../databases/postgresql9
Line 123  PGPKGSRCDIR= ../../databases/postgresql9
 .elif ${_PGSQL_VERSION} == "92"  .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  
 .else  .else
 # force an error  # force an error
 PGSQL_TYPE=             none  PGSQL_TYPE=             none

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.44

CVSweb <webmaster@jp.NetBSD.org>