aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorFlorian Smeets <flo@FreeBSD.org>2012-12-28 19:17:48 +0000
committerFlorian Smeets <flo@FreeBSD.org>2012-12-28 19:17:48 +0000
commit52e3d62d02ba337859edf603fa3eae977da578be (patch)
tree6d210192d550018b47aea4c6c83dc42dd881acda /Mk
parentf9c1f92b5f56d4499bd9d8420881cad537e63877 (diff)
downloadports-52e3d62d02ba337859edf603fa3eae977da578be.tar.gz
ports-52e3d62d02ba337859edf603fa3eae977da578be.zip
Notes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.database.mk17
1 files changed, 16 insertions, 1 deletions
diff --git a/Mk/bsd.database.mk b/Mk/bsd.database.mk
index b858067b6f14..90f3664adcfc 100644
--- a/Mk/bsd.database.mk
+++ b/Mk/bsd.database.mk
@@ -110,10 +110,19 @@ MYSQL50_LIBVER= 15
MYSQL51_LIBVER= 16
MYSQL53_LIBVER= 16
MYSQL55_LIBVER= 18
+MYSQL55p_LIBVER= 18
+MYSQL56p_LIBVER= 18
# Setting/finding MySQL version we want.
.if exists(${LOCALBASE}/bin/mysql)
-_MYSQL_VER!= ${LOCALBASE}/bin/mysql --version | ${SED} -e 's/.*Distrib \([0-9]\)\.\([0-9]*\).*/\1\2/'
+_MYSQL!= ${LOCALBASE}/bin/mysql --version | ${SED} -e 's/.*Distrib \([0-9]\)\.\([0-9]*\).*/\1\2/'
+_PERCONA!= ${LOCALBASE}/bin/mysql --version | ${GREP} Percona | wc -l
+
+.if ${_PERCONA} == 1
+_MYSQL_VER= ${_MYSQL}p
+.else
+_MYSQL_VER= ${_MYSQL}
+.endif
.endif
.if defined(WANT_MYSQL_VER)
@@ -140,6 +149,12 @@ IGNORE= cannot install: MySQL versions mismatch: mysql${_MYSQL_VER}-client is i
.if (${MYSQL_VER} == "53")
_MYSQL_CLIENT= databases/mariadb-client
_MYSQL_SERVER= databases/mariadb-server
+.elif (${MYSQL_VER} == "55p")
+_MYSQL_CLIENT= databases/percona55-client
+_MYSQL_SERVER= databases/percona55-server
+.elif (${MYSQL_VER} == "56p")
+_MYSQL_CLIENT= databases/percona56-client
+_MYSQL_SERVER= databases/percona56-server
.else
_MYSQL_CLIENT= databases/mysql${MYSQL_VER}-client
_MYSQL_SERVER= databases/mysql${MYSQL_VER}-server