diff options
author | recht <recht> | 2005-04-11 20:35:24 +0000 |
---|---|---|
committer | recht <recht> | 2005-04-11 20:35:24 +0000 |
commit | c152e2b2bd19d55ec66b1eaa29f77b76efd10679 (patch) | |
tree | eb4a0e4b069d4a64c25bc972174f8822498e94db /mk/pgsql.buildlink3.mk | |
parent | e4c14c171f22fee582956e037d5ec7a73c90aab4 (diff) | |
download | pkgsrc-c152e2b2bd19d55ec66b1eaa29f77b76efd10679.tar.gz |
catch up with PostgreSQL 8.0.2 and support Darwin .dylib
Diffstat (limited to 'mk/pgsql.buildlink3.mk')
-rw-r--r-- | mk/pgsql.buildlink3.mk | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/mk/pgsql.buildlink3.mk b/mk/pgsql.buildlink3.mk index d1b4c69ffe7..82687eca120 100644 --- a/mk/pgsql.buildlink3.mk +++ b/mk/pgsql.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: pgsql.buildlink3.mk,v 1.8 2005/03/24 17:46:01 tv Exp $ +# $NetBSD: pgsql.buildlink3.mk,v 1.9 2005/04/11 20:35:24 recht Exp $ .if !defined(PGVERSION_MK) PGVERSION_MK= defined @@ -13,8 +13,25 @@ PGSQL_VERSIONS_ACCEPTED?= 80 74 73 _PGSQL_VERSION_${pv}_OK= yes .endfor +.if ${_OPSYS_SHLIB_TYPE} == "dylib" +PG_LIB_EXT=dylib +.else +PG_LIB_EXT=so +.endif + # check what is installed -.if exists(${LOCALBASE}/lib/libecpg.so.4.2) +.if ${OPSYS} == "Darwin" +.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 +.if exists(${LOCALBASE}/lib/libecpg.so.5.0) _PGSQL_VERSION_80_INSTALLED= yes .endif .if exists(${LOCALBASE}/lib/libecpg.so.4.1) @@ -23,6 +40,7 @@ _PGSQL_VERSION_74_INSTALLED= yes .if exists(${LOCALBASE}/lib/libecpg.so.3) _PGSQL_VERSION_73_INSTALLED=yes .endif +.endif # if a version is explicitely required, take it .if defined(PGSQL_VERSION_REQD) @@ -63,7 +81,7 @@ _PGSQL_VERSION= ${_PGSQL_VERSION_FIRSTACCEPTED} # .if ${_PGSQL_VERSION} == "80" PGSQL_TYPE= postgresql80-lib -PGPKGSRCDIR= ../../databases/postgresql80-lib +PGPKGSRCDIR= ../../databases/postgresql80-client .elif ${_PGSQL_VERSION} == "74" PGSQL_TYPE= postgresql74-lib PGPKGSRCDIR= ../../databases/postgresql74-lib |