# $Id: Portfile,v 1.10 2005/07/04 04:37:51 pguyot Exp $

PortSystem 1.0

name			BiggerSQL
version			1.3.8
categories		aqua databases
platforms		darwin
maintainers		mww@opendarwin.org
description		SQL front-end to the postgresql DBMS
long_description	BiggerSQL is a tool that (like psql) allows you to \
				execute SQL on a PostgreSQL server. Type text into the \
				top pane,  see if it is successful in the middle pane, \
				and see the results of a query in the table at the \
				bottom.  Using tool tips, you can see the type of the \
				result -- just let your cursor linger over the column. \
				BiggerSQL builds on BigSQL.

homepage		http://homepage.mac.com/levanj/Cocoa/
master_sites	${homepage}/programs/
extract.suffix	.tgz
checksums		md5 3efd182ff810d6bceae5b2486bd25c85

depends_lib		path:${prefix}/lib/libpq.a:postgresql

worksrcdir		${name}

configure	{
	cd ${worksrcpath}/BiggerSQL.xcode/
	reinplace "s|/usr/local/pgsql/include|${prefix}/include|g" project.pbxproj
	reinplace "s|/usr/local/pgsql/lib|${prefix}/lib|g" project.pbxproj
}

build.type		pbx
build.target	-buildstyle Deployment

set xcodebuilddir		build
platform darwin 8 {
	if {$xcodeversion == "2.1"} {
		set xcodebuilddir	build/Deployment
	}
}

destroot	{
	xinstall -d -m 755 ${destroot}/Applications/DarwinPorts
	file copy ${worksrcpath}/${xcodebuilddir}/BiggerSQL.app \
		${destroot}/Applications/DarwinPorts/BiggerSQL.app
}
