diff options
author | agc <agc@pkgsrc.org> | 2010-12-17 00:37:34 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2010-12-17 00:37:34 +0000 |
commit | 56cbb095969fa1ec8c94efa097d66dc7c3de9355 (patch) | |
tree | fa10bec82dd016f341fe4272f1952aba08276de0 /databases | |
parent | b87c937c14ad0888fa869b25d8ca0ac0ff621a7e (diff) | |
download | pkgsrc-56cbb095969fa1ec8c94efa097d66dc7c3de9355.tar.gz |
Add two new options for sqlite3, rtree (for multi-dimensional search optimization),
and fts (full-text searching). Both options are off by default.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/sqlite3/Makefile | 4 | ||||
-rw-r--r-- | databases/sqlite3/options.mk | 14 |
2 files changed, 17 insertions, 1 deletions
diff --git a/databases/sqlite3/Makefile b/databases/sqlite3/Makefile index 613b3152827..8ba39a92d9c 100644 --- a/databases/sqlite3/Makefile +++ b/databases/sqlite3/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.36 2010/12/09 05:32:05 adam Exp $ +# $NetBSD: Makefile,v 1.37 2010/12/17 00:37:34 agc Exp $ DISTNAME= sqlite-autoconf-3070400 PKGNAME= sqlite3-3.7.4 @@ -13,6 +13,8 @@ LICENSE= public-domain PKG_DESTDIR_SUPPORT= user-destdir +.include "options.mk" + USE_LIBTOOL= yes USE_TOOLS+= gmake GNU_CONFIGURE= yes diff --git a/databases/sqlite3/options.mk b/databases/sqlite3/options.mk new file mode 100644 index 00000000000..c37f525869c --- /dev/null +++ b/databases/sqlite3/options.mk @@ -0,0 +1,14 @@ +# $NetBSD: options.mk,v 1.3 2010/12/17 00:37:34 agc Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.sqlite3 +PKG_SUPPORTED_OPTIONS= rtree fts + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mrtree) +CFLAGS+= -DSQLITE_ENABLE_RTREE=1 +.endif + +.if !empty(PKG_OPTIONS:Mfts) +CFLAGS+= -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 +.endif |