| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name sqlite3 |
|---|
| 6 | version 3.6.16 |
|---|
| 7 | categories databases |
|---|
| 8 | platforms darwin |
|---|
| 9 | maintainers mww |
|---|
| 10 | description an embedded SQL database engine |
|---|
| 11 | long_description SQLite3 is an SQL database engine in a C library. \ |
|---|
| 12 | Programs that link the SQLite3 library can have SQL \ |
|---|
| 13 | database access without running a separate RDBMS \ |
|---|
| 14 | process. The distribution comes with a standalone \ |
|---|
| 15 | command-line access program (sqlite3) that can be used \ |
|---|
| 16 | to administer an SQLite3 database and which serves as \ |
|---|
| 17 | an example of how to use the SQLite3 library. |
|---|
| 18 | |
|---|
| 19 | homepage http://www.sqlite.org/ |
|---|
| 20 | master_sites ${homepage} |
|---|
| 21 | distname sqlite-${version} |
|---|
| 22 | dist_subdir ${name}/${version} |
|---|
| 23 | checksums md5 d7c57e91fbeb630c19f82eec3ef73dae \ |
|---|
| 24 | sha1 70ef5ab724816cd6c755f21e6e9d8a9c6b517045 \ |
|---|
| 25 | rmd160 ad354b48bbb0b46ff59c27708bd0a6e7ebebffbb |
|---|
| 26 | |
|---|
| 27 | depends_lib port:readline \ |
|---|
| 28 | port:ncurses |
|---|
| 29 | |
|---|
| 30 | # '-lm' makes freebsd happy & darwin not angry (and makes variants unnecessary) |
|---|
| 31 | # '-lncurses' is needed to build universal on Tiger; see #15661 |
|---|
| 32 | configure.args --enable-threadsafe --disable-tcl \ |
|---|
| 33 | --enable-load-extension \ |
|---|
| 34 | --with-readline-inc="-I${prefix}/include" \ |
|---|
| 35 | --with-readline-lib="-L${prefix}/lib -lreadline -lm -lncurses" |
|---|
| 36 | # search in worksrcpath for sqlite3.h first -- dont pick up an installed one! |
|---|
| 37 | configure.cppflags "-DSQLITE_ENABLE_COLUMN_METADATA=1 -I${worksrcpath} -I${prefix}/include" |
|---|
| 38 | |
|---|
| 39 | use_parallel_build no |
|---|
| 40 | build.type gnu |
|---|
| 41 | |
|---|
| 42 | test.run yes |
|---|
| 43 | test.target test |
|---|
| 44 | |
|---|
| 45 | livecheck.check regex |
|---|
| 46 | livecheck.url http://www.sqlite.org/download.html |
|---|
| 47 | livecheck.regex sqlite-(\[0-9\\.\]+\[0-9\])\\. |
|---|
| 48 | |
|---|
| 49 | post-destroot { |
|---|
| 50 | xinstall -m 644 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1 |
|---|
| 51 | } |
|---|
| 52 | |
|---|
| 53 | platform darwin 10 { |
|---|
| 54 | configure.compiler gcc-4.2 |
|---|
| 55 | } |
|---|