Ticket #24799: Portfile-sqlite3.2.diff

File Portfile-sqlite3.2.diff, 2.0 KB (added by franck.cassedanne@…, 13 years ago)

Added variants: fts3, icu, rtree, secure_delete, soundex and stat2

  • Portfile

    old new  
    77categories              databases
    88platforms               darwin
    99license                 public-domain
    10 maintainers             mww openmaintainer
     10maintainers             mww ouarz.net:franck.cassedanne openmaintainer
    1111description             an embedded SQL database engine
    1212long_description        SQLite3 is an SQL database engine in a C library. \
    1313                                Programs that link the SQLite3 library can have SQL \
     
    3333                        --enable-dynamic-extensions \
    3434                        --enable-readline
    3535# search in worksrcpath for sqlite3.h first -- dont pick up an installed one!
    36 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"
     36configure.cppflags  "-DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -I${worksrcpath} -I${prefix}/include"
    3737
    3838build.type              gnu
    3939
     
    4848platform darwin 8 {
    4949    configure.cppflags-append -DSQLITE_ENABLE_LOCKING_STYLE=0
    5050}
     51
     52variant fts3 description {Add the FTS3 extension for full text search} {
     53    configure.cppflags-append   -DSQLITE_ENABLE_FTS3 -SQLITE_ENABLE_FTS3_PARENTHESIS
     54}
     55
     56variant rtree description {Add the R*Tree extension for spatial data structure} {
     57    configure.cppflags-append   -DSQLITE_ENABLE_RTREE=1
     58}
     59
     60variant soundex description {Enables the soundex() function} {
     61    configure.cppflags-append   -DSQLITE_SOUNDEX=1
     62}
     63
     64variant icu description {Add the International Components for Unicode (ICU) extension} {
     65    depends_lib-append          port:icu
     66    configure.ldflags-append    [exec ${prefix}/bin/icu-config --ldflags]
     67    configure.cppflags-append   -DSQLITE_ENABLE_ICU
     68}
     69
     70variant secure_delete description {Overwrite deleted content with zeros} {
     71    configure.cppflags-append   -DSQLITE_SECURE_DELETE=1
     72}
     73
     74variant stat2 description {Enables additional logic to the query planner and to the ANALYZE command} {
     75    configure.cppflags-append   -DSQLITE_ENABLE_STAT2=1
     76}
     77 No newline at end of file