Ticket #18554: sqlite3.patch

File sqlite3.patch, 2.4 KB (added by kballard (Lily Ballard), 16 years ago)

Patch for sqlite3 Portfile

  • dports/databases/sqlite3/Portfile

    diff --git a/dports/databases/sqlite3/Portfile b/dports/databases/sqlite3/Portfile
    index bad23f8..236c281 100644
    a b PortSystem 1.0 
    44
    55name                    sqlite3
    66version                 3.6.11
     7revision                1
    78categories              databases
    89platforms               darwin
    910maintainers             mww
    long_description SQLite3 is an SQL database engine in a C library. \ 
    1819
    1920homepage                http://www.sqlite.org/
    2021master_sites    ${homepage}
    21 distname                sqlite-${version}
     22distname                sqlite-amalgamation-${version}
     23worksrcdir              sqlite-${version}
    2224dist_subdir             ${name}/${version}
    23 checksums           md5     7ebb099696ab76cc6ff65dd496d17858 \
    24                     sha1    bd1c371784d990f7b5e99c841e58deb87fbf4b6e \
    25                     rmd160  c38d82c83f5d64cfb302e3232c507bafb0b64e74
     25checksums           md5     da1f95c6b173fd56d2760bcfd2a3c756 \
     26                    sha1    7aa36bd447e20055a1e117e6e9bb9f44a33ff431 \
     27                    rmd160  23db950aaafc7353e02d114066048f05fe264e5a
    2628
    2729depends_lib             port:readline
    2830
    29 # '-lm' makes freebsd happy & darwin not angry (and makes variants unnecessary)
    3031# '-lncurses' is needed to build universal on Tiger; see #15661
    31 configure.args  --enable-threadsafe --disable-tcl \
    32                         --enable-load-extension \
    33                         --with-readline-inc="-I${prefix}/include" \
    34                         --with-readline-lib="-L${prefix}/lib -lreadline -lm -lncurses"
     32# we should be using --enable-dynamic-extensions but the configure file has a bug
     33# and doesn't recognize it. However, yes is the default value so omitting it makes no difference
     34configure.args  --enable-threadsafe \
     35                        READLINE_LIBS="-L${prefix}/lib -lreadline -lncurses"
    3536# search in worksrcpath for sqlite3.h first -- dont pick up an installed one!
    3637configure.cppflags      "-DSQLITE_ENABLE_COLUMN_METADATA=1 -I${worksrcpath} -I${prefix}/include"
    3738
    livecheck.check regex 
    4546livecheck.url   http://www.sqlite.org/download.html
    4647livecheck.regex sqlite-(\[0-9\\.\]+\[0-9\])\\.
    4748
    48 post-destroot {
    49         xinstall -m 644 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1
     49variant fts3 description "Enable the FTS3 module" {
     50    configure.cppflags-append "-DSQLITE_ENABLE_FTS3"
    5051}
    5152
     53# for some reason the amalgamation tarball doesn't have the sqlite3.1 manpage
     54# post-destroot {
     55#   xinstall -m 644 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1
     56# }
     57
    5258platform darwin 10 {
    5359        configure.compiler gcc-4.2
    5460}