Package: sqlite
Version: 2.8.5
Revision: 13

Description: Embedded SQL database
DescDetail: <<
SQLite is a C library that implements an embeddable SQL database engine.
Programs that link with the SQLite library can have SQL database access
without running a separate RDBMS process. The distribution comes with a
standalone command-line access program ( sqlite ) that can be used to
administer an SQLite database and which serves as an example of how to
use the SQLite library.
<<
DescPort: <<
Patch configure to find the Fink readline headers. This package requires 
readline present to build due to issues with the default sqlite configure
script when run on OS X.
<<

License: Public Domain 
Maintainer: Blair Zajac <blair@orcaware.com>
Homepage: http://www.sqlite.org/

DocFiles: README LICENSE

Depends: %N-shlibs (= %v-%r), readline5-shlibs
BuildDepends: readline5, libncurses5

Source: http://sqlite.org/%n-%v.tar.gz
Source-MD5: 990586435d2ec9ccf1a9837c70f237cf
SourceDirectory: sqlite

# Patch Phase:
PatchScript: <<
sed 's|@PREFIX@|%p|g' < %a/%n.patch | patch -p1
head -n 10 src/%n.h.in > LICENSE 
perl -pi.bak -e "s/-flat_namespace -undefined suppress//g" configure
<<

SetCFLAGS: -I%P/include
CompileScript: <<
#!/bin/sh
LIBRARY_PATH=%P/lib C_INCLUDE_PATH=%P/include ./configure --without-tcl --prefix=%P
LIBRARY_PATH=%P/lib C_INCLUDE_PATH=%P/include make
<<

SplitOff: << 
    Package: %N-shlibs
    DocFiles: README LICENSE
    Shlibs: %p/lib/libsqlite.0.dylib 6.0.0 %n (>= 2.8.5-2)
    Files:  lib/libsqlite.0.5.3.dylib lib/libsqlite.0.dylib
<<

SplitOff2: << 
    Package: %N-dev
    DocFiles: README LICENSE
    Depends: %N-shlibs (= %v-%r)
    BuildDependsOnly: True
    Files: lib/libsqlite.la lib/libsqlite.a include/sqlite.h lib/libsqlite.dylib
<<
DescPackaging: <<
This package was previously maintained by Peter Wilkinson
<pw-fink@terlkin.org>.
<<