# $Id: Portfile,v 1.13 2006/06/22 17:59:50 markd Exp $

PortSystem 1.0
name		mysqltcl
version		3.02
categories	databases devel
maintainers	kevin@opendarwin.org
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     port: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

variant mysql4 {
	depends_lib-delete port:mysql5
	depends_lib-add port:mysql4
	configure.args_delete --with-mysql-include=${prefix}/include/mysql5/mysql
	configure.args_delete --with-mysql-lib=${prefix}/lib/mysql5/mysql
	configure.args_add --with-mysql-include=${prefix}/include/mysql
	configure.args_add --with-mysql-lib=${prefix}/lib/mysql
}
