diff options
-rw-r--r-- | mk/mysql.buildlink3.mk | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/mk/mysql.buildlink3.mk b/mk/mysql.buildlink3.mk index 148ae6cb8b9..1c563b2c88f 100644 --- a/mk/mysql.buildlink3.mk +++ b/mk/mysql.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: mysql.buildlink3.mk,v 1.9 2008/03/26 13:23:34 wiz Exp $ +# $NetBSD: mysql.buildlink3.mk,v 1.10 2010/03/05 13:47:06 taca 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: 50 41 +# Possible: 51 50 41 # Default: 50 # # === Package-settable variables === @@ -31,7 +31,7 @@ _SYS_VARS.mysql= MYSQL_PKGSRCDIR .include "../../mk/bsd.prefs.mk" MYSQL_VERSION_DEFAULT?= 50 -MYSQL_VERSIONS_ACCEPTED?= 50 41 +MYSQL_VERSIONS_ACCEPTED?= 51 50 41 # transform the list into individual variables .for mv in ${MYSQL_VERSIONS_ACCEPTED} @@ -39,6 +39,10 @@ _MYSQL_VERSION_${mv}_OK= yes .endfor # check what is installed +.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.16) +_MYSQL_VERSION_51_INSTALLED= yes +.endif + .if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.15) _MYSQL_VERSION_50_INSTALLED= yes .endif @@ -84,7 +88,9 @@ _MYSQL_VERSION= ${_MYSQL_VERSION_FIRSTACCEPTED} # # set variables for the version we decided to use: # -.if ${_MYSQL_VERSION} == "50" +.if ${_MYSQL_VERSION} == "51" +MYSQL_PKGSRCDIR= ../../databases/mysql51-client +.elif ${_MYSQL_VERSION} == "50" MYSQL_PKGSRCDIR= ../../databases/mysql5-client .elif ${_MYSQL_VERSION} == "41" MYSQL_PKGSRCDIR= ../../databases/mysql4-client |