pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mk



Module Name:    pkgsrc
Committed By:   jdolecek
Date:           Thu May 13 15:29:04 UTC 2021

Modified Files:
        pkgsrc/mk: mysql.buildlink3.mk

Log Message:
support MySQL 8.0

80 is accepted by default, but 57 remains the default to install if none available


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 pkgsrc/mk/mysql.buildlink3.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/mysql.buildlink3.mk
diff -u pkgsrc/mk/mysql.buildlink3.mk:1.31 pkgsrc/mk/mysql.buildlink3.mk:1.32
--- pkgsrc/mk/mysql.buildlink3.mk:1.31  Thu May 13 11:04:43 2021
+++ pkgsrc/mk/mysql.buildlink3.mk       Thu May 13 15:29:04 2021
@@ -1,4 +1,4 @@
-# $NetBSD: mysql.buildlink3.mk,v 1.31 2021/05/13 11:04:43 nia Exp $
+# $NetBSD: mysql.buildlink3.mk,v 1.32 2021/05/13 15:29:04 jdolecek Exp $
 #
 # This file is included by packages that require some version of the
 # MySQL database client.
@@ -8,7 +8,7 @@
 # MYSQL_VERSION_DEFAULT
 #      The preferred MySQL version.
 #
-#      Possible: 57 56 MARIADB104
+#      Possible: 57 56 80 MARIADB104
 #      Default: 57
 #
 # Package-settable variables:
@@ -37,7 +37,7 @@ _SYS_VARS.mysql=      MYSQL_PKGSRCDIR
 .include "../../mk/bsd.prefs.mk"
 
 MYSQL_VERSION_DEFAULT?=                57
-MYSQL_VERSIONS_ACCEPTED?=      57 56 MARIADB104
+MYSQL_VERSIONS_ACCEPTED?=      57 56 80 MARIADB104
 
 # transform the list into individual variables
 .for mv in ${MYSQL_VERSIONS_ACCEPTED}
@@ -46,13 +46,19 @@ _MYSQL_VERSION_${mv}_OK=    yes
 
 # check what is installed
 .if ${OPSYS} == "Darwin"
+_MYSQL_SO_80=  21.dylib
 _MYSQL_SO_57=  20.dylib
 _MYSQL_SO_56=  18.dylib
 .else
+_MYSQL_SO_80=  so.21
 _MYSQL_SO_57=  so.20
 _MYSQL_SO_56=  so.18
 .endif
 
+.if exists(${LOCALBASE}/lib/libmysqlclient.${_MYSQL_SO_80})
+_MYSQL_VERSION_80_INSTALLED=   yes
+_MYSQL_VERSION_INSTALLED=      80
+.endif
 .if exists(${LOCALBASE}/lib/libmysqlclient.${_MYSQL_SO_57})
 _MYSQL_VERSION_57_INSTALLED=   yes
 _MYSQL_VERSION_INSTALLED=      57
@@ -102,7 +108,9 @@ _MYSQL_VERSION=     ${_MYSQL_VERSION_FIRSTAC
 #
 # set variables for the version we decided to use:
 #
-.if ${_MYSQL_VERSION} == "57"
+.if ${_MYSQL_VERSION} == "80"
+MYSQL_PKGSRCDIR=       ../../databases/mysql80-client
+.elif ${_MYSQL_VERSION} == "57"
 MYSQL_PKGSRCDIR=       ../../databases/mysql57-client
 .elif ${_MYSQL_VERSION} == "56"
 MYSQL_PKGSRCDIR=       ../../databases/mysql56-client



Home | Main Index | Thread Index | Old Index