summaryrefslogtreecommitdiff
path: root/Mk/Uses
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2024-06-16 16:21:23 +0200
committerBernard Spil <brnrd@FreeBSD.org>2024-06-16 16:21:23 +0200
commit5a2bb7e61569f908f8a52dd4afd2998b86e9e54d (patch)
treec4b3c658e96d3ca2c60333428599a384930ca1da /Mk/Uses
parentaudio/easytag: fix build on i386 (diff)
databases/mariadb114-server: New MariaDB 11.4 port
* This is an LTS version. * the mysql command now generates a warning about deprecation. to prevent these for other ports with USES=mysql Mk/Uses/mysql.mk has been patched.
Diffstat (limited to 'Mk/Uses')
-rw-r--r--Mk/Uses/mysql.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/Mk/Uses/mysql.mk b/Mk/Uses/mysql.mk
index 9cd094dcfc03..866906ff5d1e 100644
--- a/Mk/Uses/mysql.mk
+++ b/Mk/Uses/mysql.mk
@@ -63,12 +63,14 @@ MYSQL80_LIBVER= 21
MYSQL81_LIBVER= 22
MYSQL84_LIBVER= 24
-. for v in 5 6 11
-MYSQL10${v}m_LIBVER= 3
+. for v in 105 106 1011 114
+MYSQL${v}m_LIBVER= 3
. endfor
# Setting/finding MySQL version we want.
-. if exists(${LOCALBASE}/bin/mysql)
+. if exists(${LOCALBASE}/bin/mariadb)
+_MARIADB!= ${LOCALBASE}/bin/mariadb --version | ${GREP} MariaDB | wc -l
+. elif exists(${LOCALBASE}/bin/mysql)
_MYSQL!= ${LOCALBASE}/bin/mysql_config --version | ${SED} -e 's/\([0-9]\{1,2\}\)\.\([0-9]*\).*/\1\2/'
_MARIADB!= ${LOCALBASE}/bin/mysql --version | ${GREP} MariaDB | wc -l