Portfile

# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $

PortSystem 1.0
name mysqltcl
version 3.02
categories databases devel
maintainers nomaintainer@macports.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
}