diff options
author | agc <agc> | 2010-12-17 00:37:34 +0000 |
---|---|---|
committer | agc <agc> | 2010-12-17 00:37:34 +0000 |
commit | b7f3b6bf6a0f313e27043db765bca8e6c61aaaee (patch) | |
tree | fa10bec82dd016f341fe4272f1952aba08276de0 /databases/sqlite3 | |
parent | 9674904608ec1ba3bfbd291022d1e6a71e489da2 (diff) | |
download | pkgsrc-b7f3b6bf6a0f313e27043db765bca8e6c61aaaee.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/sqlite3')
-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 |