diff options
-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 |