diff options
author | vsevolod <vsevolod@FreeBSD.org> | 2008-04-11 21:52:57 +0800 |
---|---|---|
committer | vsevolod <vsevolod@FreeBSD.org> | 2008-04-11 21:52:57 +0800 |
commit | 081d2f6f8951712bdef8d53509aafd274942b9ac (patch) | |
tree | c3f0dec77c7c2ae48dd46a8322609f477d4fc481 /Mk | |
parent | bda0e5ea3cb9b554fa7eca96e21db019d1a770e4 (diff) | |
download | freebsd-ports-gnome-081d2f6f8951712bdef8d53509aafd274942b9ac.tar.gz freebsd-ports-gnome-081d2f6f8951712bdef8d53509aafd274942b9ac.tar.zst freebsd-ports-gnome-081d2f6f8951712bdef8d53509aafd274942b9ac.zip |
Add WITH_PGSQL_VER macro to bsd.database.mk, that allows to specify
in make.conf which version of pgsql client is required for this build.
Reviewed by: skv
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.database.mk | 19 |
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) |