aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@FreeBSD.org>2008-04-11 13:52:57 +0000
committerVsevolod Stakhov <vsevolod@FreeBSD.org>2008-04-11 13:52:57 +0000
commit2db89a42eb1e91e57cfbf0a3f25f7a0fb3ddd204 (patch)
tree94b2e798ed24c231784225486eb285a4ceb118a0 /Mk
parent0a630e891e2847aa4a9c2494646be30989efa67c (diff)
downloadports-2db89a42eb1e91e57cfbf0a3f25f7a0fb3ddd204.tar.gz
ports-2db89a42eb1e91e57cfbf0a3f25f7a0fb3ddd204.zip
Notes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.database.mk19
1 files changed, 14 insertions, 5 deletions
diff --git a/Mk/bsd.database.mk b/Mk/bsd.database.mk
index 03ec75f27610..871635e17a05 100644
--- a/Mk/bsd.database.mk
+++ b/Mk/bsd.database.mk
@@ -47,6 +47,8 @@ Database_Include_MAINTAINER= ports@FreeBSD.org
# IGNORE_WITH_PGSQL
# - This variable can be defined if the ports doesn't support
# one or more versions of PostgreSQL.
+# WITH_PGSQL_VER
+# - User defined variable to set PostgreSQL version.
# PGSQL_VER
# - Detected PostgreSQL version.
##
@@ -160,17 +162,24 @@ PGSQL83_LIBVER= 5
_PGSQL_VER!= ${LOCALBASE}/bin/pg_config --version | ${SED} -n 's/PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)[^0-9].*/\1\2/p'
.endif
-.if defined(WANT_PGSQL_VER) && defined(_PGSQL_VER) && ${WANT_PGSQL_VER} != ${_PGSQL_VER}
-IGNORE= cannot install: the port wants postgresql${WANT_PGSQL_VER}-client but you have postgresql${_PGSQL_VER}-client installed
+.if defined(WANT_PGSQL_VER)
+.if defined(WITH_PGSQL_VER) && ${WITH_PGSQL_VER} != ${WANT_PGSQL_VER}
+IGNORE= cannot install: the port wants postgresql${WANT_PGSQL_VER}-client and you try to install postgresql${WITH_PGSQL_VER}-client.
.endif
-
+PGSQL_VER= ${WANT_PGSQL_VER}
+.elif defined(WITH_PGSQL_VER)
+PGSQL_VER= ${WITH_PGSQL_VER}
+.else
.if defined(_PGSQL_VER)
PGSQL_VER= ${_PGSQL_VER}
-.elif defined(WANT_PGSQL_VER)
-PGSQL_VER= ${WANT_PGSQL_VER}
.else
PGSQL_VER= ${DEFAULT_PGSQL_VER}
.endif
+.endif # WANT_PGSQL_VER
+
+.if defined(_PGSQL_VER) && ${PGSQL_VER} != ${_PGSQL_VER}
+IGNORE= cannot install: the port wants postgresql${PGSQL_VER}-client but you have postgresql${_PGSQL_VER}-client installed
+.endif
# And now we are checking if we can use it
.if defined(PGSQL${PGSQL_VER}_LIBVER)