summaryrefslogtreecommitdiff
path: root/mk/mysql.buildlink3.mk
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2005-10-31 09:25:00 +0000
committerxtraeme <xtraeme@pkgsrc.org>2005-10-31 09:25:00 +0000
commitbc772c28f4b15dca92c576773f085506986bb26e (patch)
tree2a8e2da0124656912ad607fa902c58cd1a2802ac /mk/mysql.buildlink3.mk
parentb26ca0b30cc28396e164250b548d3b2237a53f75 (diff)
downloadpkgsrc-bc772c28f4b15dca92c576773f085506986bb26e.tar.gz
Add mysql5 support.
Diffstat (limited to 'mk/mysql.buildlink3.mk')
-rw-r--r--mk/mysql.buildlink3.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/mk/mysql.buildlink3.mk b/mk/mysql.buildlink3.mk
index 93902a79957..22f81c53639 100644
--- a/mk/mysql.buildlink3.mk
+++ b/mk/mysql.buildlink3.mk
@@ -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