summaryrefslogtreecommitdiffstats
path: root/databases/libgda2
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2005-02-21 18:37:18 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2005-02-21 18:37:18 +0800
commit03cbe1e296b7b30d19df5798237d2e8bc4e51cce (patch)
tree74d265595526d30975a3807a53025ea48975c817 /databases/libgda2
parent242ce2b5feefa302f01e4fc0f983a69631c30120 (diff)
downloadmarcuscom-ports-03cbe1e296b7b30d19df5798237d2e8bc4e51cce.tar
marcuscom-ports-03cbe1e296b7b30d19df5798237d2e8bc4e51cce.tar.gz
marcuscom-ports-03cbe1e296b7b30d19df5798237d2e8bc4e51cce.tar.bz2
marcuscom-ports-03cbe1e296b7b30d19df5798237d2e8bc4e51cce.tar.lz
marcuscom-ports-03cbe1e296b7b30d19df5798237d2e8bc4e51cce.tar.xz
marcuscom-ports-03cbe1e296b7b30d19df5798237d2e8bc4e51cce.tar.zst
marcuscom-ports-03cbe1e296b7b30d19df5798237d2e8bc4e51cce.zip
Update to the new postgresql new world order.
Axe pg 7.0 and 7.2 support, and add 7.3, 7.4 and 8.0 support. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3688 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'databases/libgda2')
-rw-r--r--databases/libgda2/Makefile44
1 files changed, 30 insertions, 14 deletions
diff --git a/databases/libgda2/Makefile b/databases/libgda2/Makefile
index d507a706e..711de6484 100644
--- a/databases/libgda2/Makefile
+++ b/databases/libgda2/Makefile
@@ -46,12 +46,16 @@ post-patch:
WITH_MYSQL= yes
.endif
-.if exists(${LOCALBASE}/lib/libpq.so.3)
-WITH_POSTGRES7= yes
+.if exists(${LOCALBASE}/include/postgresql/server/access/subtrans.h)
+WITH_POSTGRES80=yes
.endif
-.if exists(${LOCALBASE}/lib/libpgeasy.so.2)
-WITH_POSTGRES72=yes
+.if exists(${LOCALBASE}/include/postgresql/server/access/strat.h)
+WITH_POSTGRES74=yes
+.endif
+
+.if exists(${LOCALBASE}/lib/libecpg.so.3)
+WITH_POSTGRES73=yes
.endif
.if exists(${LOCALBASE}/lib/libldap.so.2)
@@ -91,21 +95,30 @@ CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
PLIST_SUB+= MYSQL:=""
.endif
-.if !defined(WITHOUT_POSTGRES7) && defined(WITH_POSTGRES7)
-POSTGRESQL_PORT?= databases/postgresql7
+.if !defined(WITHOUT_POSTGRES73) && defined(WITH_POSTGRES73)
+POSTGRESQL_PORT?= databases/postgresql73-client
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
CONFIGURE_ARGS+= --with-postgres=${LOCALBASE}
PLIST_SUB+= POSTGRES:=""
.endif
-.if !defined(WITHOUT_POSTGRES72) && defined(WITH_POSTGRES72)
-POSTGRESQL_PORT?= databases/postgresql72
-LIB_DEPENDS+= pgeasy.2:${PORTSDIR}/${POSTGRESQL_PORT}
+.if !defined(WITHOUT_POSTGRES74) && defined(WITH_POSTGRES74)
+POSTGRESQL_PORT?= databases/postgresql74-client
+LIB_DEPENDS+= pg.3:${PORTSDIR}/${POSTGRESQL_PORT}
CONFIGURE_ARGS+= --with-postgres=${LOCALBASE}
PLIST_SUB+= POSTGRES:=""
.endif
-.if !defined(WITH_POSTGRES7) && !defined(WITH_POSTGRES72)
+.if !defined(WITHOUT_POSTGRES80) && defined(WITH_POSTGRES80)
+POSTGRESQL_PORT?= databases/postgresql80-client
+LIB_DEPENDS+= pg.3:${PORTSDIR}/${POSTGRESQL_PORT}
+CONFIGURE_ARGS+= --with-postgres=${LOCALBASE}
+PLIST_SUB+= POSTGRES:=""
+.endif
+
+
+.if !defined(WITH_POSTGRES73) && !defined(WITH_POSTGRES74) && \
+ !defined(WITH_POSTGRES80)
PLIST_SUB+= POSTGRES:="@comment "
CONFIGURE_ARGS+= --without-postgres
.endif
@@ -177,11 +190,14 @@ pre-everything::
.if !defined(WITH_MYSQL)
@${ECHO_MSG} "You can enable support for MySQL databases by defining WITH_MYSQL."
.endif
-.if !defined(WITH_POSTGRES7)
- @${ECHO_MSG} "You can enable support for Postgres 7.0 databases by defining WITH_POSTGRES7."
+.if !defined(WITH_POSTGRES73)
+ @${ECHO_MSG} "You can enable support for Postgres 7.3 databases by defining WITH_POSTGRES73."
+.endif
+.if !defined(WITH_POSTGRES74)
+ @${ECHO_MSG} "You can enable support for Postgres 7.4 databases by defining WITH_POSTGRES74."
.endif
-.if !defined(WITH_POSTGRES72)
- @${ECHO_MSG} "You can enable support for Postgres 7.2 databases by defining WITH_POSTGRES72."
+.if !defined(WITH_POSTGRES80)
+ @${ECHO_MSG} "You can enable support for Postgres 8.0 databases by defining WITH_POSTGRES80."
.endif
.if !defined(WITH_LDAP)
@${ECHO_MSG} "You can enable support for LDAP databases by defining WITH_LDAP."