# $Id: Portfile,v 1.21 2006/04/15 11:45:44 mww Exp $

PortSystem 1.0

name			sqlite3
version			3.3.5
categories		databases
platforms		darwin
maintainers		mww@opendarwin.org
description		an embedded SQL database engine
long_description	SQLite3 is an SQL database engine in a C library. \
				Programs that link the SQLite3 library can have SQL \
				database access without running a separate RDBMS \
				process. The distribution comes with a standalone \
				command-line access program (sqlite3) that can be used \
				to administer an SQLite3 database and which serves as \
				an example of how to use the SQLite3 library. 

homepage		http://www.sqlite.org/
master_sites	${homepage}
distname		sqlite-${version}
checksums		sha1 015fe7b3992c9db97bb40cfd9958b31d457f7c33
patchfiles		patch-Makefile.in

depends_lib		port:readline

configure.args	--enable-threadsafe --disable-tcl

build.type		gnu
build.env		CFLAGS="-I${prefix}/include/" LDFLAGS="-L${prefix}/lib"

test.run		yes
test.target		test

post-destroot {
	xinstall -m 644 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1
}

platform darwin 8 {
	configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}

