Add mysql5 support.

This commit is contained in:
xtraeme 2005-10-31 09:25:00 +00:00
parent b26ca0b30c
commit bc772c28f4

View file

@ -1,4 +1,4 @@
# $NetBSD: mysql.buildlink3.mk,v 1.3 2005/04/26 13:29:00 wiz Exp $
# $NetBSD: mysql.buildlink3.mk,v 1.4 2005/10/31 09:25:00 xtraeme Exp $
.if !defined(MYSQL_VERSION_MK)
MYSQL_VERSION_MK= # defined
@ -6,7 +6,7 @@ MYSQL_VERSION_MK= # defined
.include "../../mk/bsd.prefs.mk"
MYSQL_VERSION_DEFAULT?= 41
MYSQL_VERSIONS_ACCEPTED?= 41 40
MYSQL_VERSIONS_ACCEPTED?= 50 41 40
# transform the list into individual variables
.for mv in ${MYSQL_VERSIONS_ACCEPTED}
@ -14,6 +14,10 @@ _MYSQL_VERSION_${mv}_OK= yes
.endfor
# check what is installed
.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.15)
_MYSQL_VERSION_50_INSTALLED= yes
.endif
.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.14)
_MYSQL_VERSION_41_INSTALLED= yes
.endif
@ -59,7 +63,9 @@ _MYSQL_VERSION= ${_MYSQL_VERSION_FIRSTACCEPTED}
#
# set variables for the version we decided to use:
#
.if ${_MYSQL_VERSION} == "41"
.if ${_MYSQL_VERSION} == "50"
MYSQL_PKGSRCDIR= ../../databases/mysql5-client
.elif ${_MYSQL_VERSION} == "41"
MYSQL_PKGSRCDIR= ../../databases/mysql4-client
.elif ${_MYSQL_VERSION} == "40"
MYSQL_PKGSRCDIR= ../../databases/mysql-client