# $Id: Portfile 75054 2011-01-13 09:48:19Z jmr@macports.org $ PortSystem 1.0 name sqlite3 version 3.7.4 categories databases platforms darwin maintainers mww openmaintainer 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-autoconf-3070400 checksums md5 8f0c690bfb33c3cbbc2471c3d9ba0158 \ sha1 43848641320cb60fb7f445bc295b9870cdc127be \ rmd160 eb5d575b7dc1951f0c0f2997f50fbf7d206e502d depends_lib port:readline \ port:ncurses # '-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 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -I${worksrcpath} -I${prefix}/include" use_parallel_build no build.type gnu test.run yes test.target test livecheck.type regex livecheck.url http://www.sqlite.org/news.html livecheck.regex (3\\.\[0-9\]+\\.\[0-9\]+) post-destroot { xinstall -m 644 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1 } platform darwin 8 { configure.cppflags-append -DSQLITE_ENABLE_LOCKING_STYLE=0 }