# $Id: Portfile,v 1.12 2004/11/03 00:15:32 blb Exp $

PortSystem 1.0
name		gtksql
version		0.3
categories	databases
description	Graphical query tool for PostgreSQL and/or MySQL
long_description	GtkSQL is a graphical query tool for PostgreSQL/MySQL. \
			It is similar to PostgreSQL's psql, or the Microsoft Query Analyser. \
			It allows the user to work on multiple queries simultaneously and has auto-completion \
			of SQL-Keywords, table names and fields.
homepage	http://membres.lycos.fr/bbrox/GtkSQL/
platforms	darwin
maintainers	darwinports@opendarwin.org
master_sites	http://membres.lycos.fr/bbrox/GtkSQL/
checksums	md5 8f7a0a565e761fb649240cb46d6dd9cb
configure	{ reinplace "s|XXPREFIX|${prefix}|g" \
		  "${workpath}/${worksrcdir}/Makefile"
		  reinplace "s|YYPREFIX|${destroot}${prefix}|g" \
		  "${workpath}/${worksrcdir}/Makefile" }
depends_lib     lib:libpq.2:postgresql lib:libgtk.1:gtk1
patchfiles	patch-Makefile patch-postgres.c

variant mysql	{ reinplace "s|^#MYSQL|MYSQL|g" \
		  "${workpath}/${worksrcdir}/Makefile"
		  depends_lib-append lib:libmysql.3:mysql }
