SUMMARY="An SQL database engine in a C library" 
DESCRIPTION="
	SQLite is a software library that implements a self-contained, 
	serverless, zero-configuration, transactional SQL database engine.
	
	SQLite is the most widely deployed SQL database engine in the world. 
	The source code for SQLite is in the public domain.
	"
HOMEPAGE="http://www.sqlite.org/" 
SRC_URI="http://www.sqlite.org/sqlite-autoconf-3070500.tar.gz"
CHECKSUM_SHA256="cb5b86926ec9f65882b2dddd244f2d620337d911ec73411863f77e48cf6a2f94"
LICENSE="SQLite"
COPYRIGHT="Public Domain"
REVISION="7"
ARCHITECTURES="x86_gcc2 ?x86"

PROVIDES="
	sqlite = $portVersion compat >= 3
	cmd:sqlite3 = $portVersion compat >= 3
	lib:libsqlite3 = 0.8.6 compat >= 0
	"
REQUIRES="
	haiku >= $haikuVersion
	"
BUILD_REQUIRES="
	"
BUILD_PREREQUIRES="
	haiku_devel >= $haikuVersion
	cmd:aclocal
	cmd:autoconf
	cmd:automake
	cmd:gcc
	cmd:ld
	cmd:libtoolize
	cmd:make
	"

SOURCE_DIR="sqlite-autoconf-3070500"

BUILD()
{
	libtoolize --force --copy --install
	aclocal
	autoconf
	automake
	./configure $configureDirArgs
	make
}

INSTALL()
{
	make install

	# prepare develop/lib
	prepareInstalledDevelLibs libsqlite3
	fixPkgconfig
}
