# $Id: Portfile 58230 2009-09-24 16:45:22Z ryandesign@macports.org $

PortSystem 1.0

name		mysqltcl
version		3.02
categories	databases devel
maintainers	nomaintainer
description	Simple API for Mysql-Database and Tcl scripting language.
long_description	MySQLTcl is a collection of Tcl commands and a \
			Tcl global array that provide access to one or \
			more mysql database servers.
homepage    	http://www.xdobry.de/mysqltcl/
platforms	darwin
master_sites	http://www.xdobry.de/mysqltcl/
checksums	md5 bf408a7d1f10aec28102fd27cba1f6eb

depends_lib     path:bin/mysql_config5:mysql5 \
		port:tcl \
		port:tk

configure.args	--with-tcl=${prefix}/lib \
		--with-mysql-include=${prefix}/include/mysql5/mysql \
		--with-mysql-lib=${prefix}/lib/mysql5/mysql \
		--mandir=${prefix}/share/man

variant mysql4 description Install against mysql4 instead of mysql5 {
	depends_lib-delete path:bin/mysql_config5:mysql5
	depends_lib-append port:mysql4
	configure.args_delete --with-mysql-include=${prefix}/include/mysql5/mysql
	configure.args_delete --with-mysql-lib=${prefix}/lib/mysql5/mysql
	configure.args_append --with-mysql-include=${prefix}/include/mysql
	configure.args_append --with-mysql-lib=${prefix}/lib/mysql
}
