# $Id: Portfile 51618 2009-05-29 11:17:34Z mww@macports.org $ PortSystem 1.0 name sqlite3 version 3.6.14.2 categories databases platforms darwin maintainers mww 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} dist_subdir ${name}/${version} checksums md5 4c074691b48cd45854899ae4fece6301 \ sha1 19206a419e39bb2de01ed12c2d95c928e97e7252 \ rmd160 219833d61a2e0bf5fde136528b9725c0589d2491 depends_lib port:readline # '-lm' makes freebsd happy & darwin not angry (and makes variants unnecessary) # '-lncurses' is needed to build universal on Tiger; see #15661 configure.args --enable-threadsafe --disable-tcl \ --enable-load-extension \ --with-readline-inc="-I${prefix}/include" \ --with-readline-lib="-L${prefix}/lib -lreadline -lm -lncurses" # search in worksrcpath for sqlite3.h first -- dont pick up an installed one! configure.cppflags "-DSQLITE_ENABLE_COLUMN_METADATA=1 -I${worksrcpath} -I${prefix}/include" use_parallel_build no build.type gnu test.run yes test.target test livecheck.check regex livecheck.url http://www.sqlite.org/download.html livecheck.regex sqlite-(\[0-9\\.\]+\[0-9\])\\. post-destroot { xinstall -m 644 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1 } platform darwin 10 { configure.compiler gcc-4.2 }