PortSystem 1.0

name		mysqltcl
version		3.02
categories	databases devel
license		Permissive
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-replace     path:bin/mysql_config5:mysql5 \
                            port:mysql4
    configure.args-replace  --with-mysql-include=${prefix}/include/mysql5/mysql \
                            --with-mysql-include=${prefix}/include/mysql
    configure.args-replace  --with-mysql-lib=${prefix}/lib/mysql5/mysql \
                            --with-mysql-lib=${prefix}/lib/mysql
}