pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk catch up with PostgreSQL 8.0.2 and support Darwin ....
details: https://anonhg.NetBSD.org/pkgsrc/rev/e721b38f845b
branches: trunk
changeset: 492405:e721b38f845b
user: recht <recht%pkgsrc.org@localhost>
date: Mon Apr 11 20:35:24 2005 +0000
description:
catch up with PostgreSQL 8.0.2 and support Darwin .dylib
diffstat:
mk/pgsql.buildlink3.mk | 24 +++++++++++++++++++++---
1 files changed, 21 insertions(+), 3 deletions(-)
diffs (53 lines):
diff -r e540183aaba1 -r e721b38f845b mk/pgsql.buildlink3.mk
--- a/mk/pgsql.buildlink3.mk Mon Apr 11 20:34:43 2005 +0000
+++ b/mk/pgsql.buildlink3.mk Mon Apr 11 20:35:24 2005 +0000
@@ -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_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 @@
.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 @@
#
.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
Home |
Main Index |
Thread Index |
Old Index