pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Add mysql5 support.
details: https://anonhg.NetBSD.org/pkgsrc/rev/303fbfa33326
branches: trunk
changeset: 501885:303fbfa33326
user: xtraeme <xtraeme%pkgsrc.org@localhost>
date: Mon Oct 31 09:25:00 2005 +0000
description:
Add mysql5 support.
diffstat:
mk/mysql.buildlink3.mk | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (40 lines):
diff -r e837ae485cea -r 303fbfa33326 mk/mysql.buildlink3.mk
--- a/mk/mysql.buildlink3.mk Mon Oct 31 09:24:34 2005 +0000
+++ b/mk/mysql.buildlink3.mk Mon Oct 31 09:25:00 2005 +0000
@@ -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 @@
.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 @@
.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 @@
#
# 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
Home |
Main Index |
Thread Index |
Old Index