1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/openpkg/sqlite.patch Tue Jul 31 12:23:42 2012 +0200 1.3 @@ -0,0 +1,73 @@ 1.4 +Index: Makefile.in 1.5 +--- Makefile.in.orig 2009-07-06 16:29:57 +0200 1.6 ++++ Makefile.in 2009-08-12 20:12:13 +0200 1.7 +@@ -187,6 +187,17 @@ 1.8 + USE_AMALGAMATION = @USE_AMALGAMATION@ 1.9 + LIBOBJ = $(OBJS$(USE_AMALGAMATION)) 1.10 + 1.11 ++# FTS3 support 1.12 ++ifdef FTS3 1.13 ++TCC += -DSQLITE_ENABLE_FTS3 -I$(TOP)/ext/fts3 1.14 ++LIBOBJ += fts3.lo fts3_hash.lo fts3_expr.lo fts3_porter.lo fts3_icu.lo fts3_tokenizer1.lo fts3_tokenizer.lo 1.15 ++endif 1.16 ++ 1.17 ++# RTREE support 1.18 ++ifdef RTREE 1.19 ++TCC += -DSQLITE_ENABLE_RTREE -I$(TOP)/ext/rtree 1.20 ++LIBOBJ += rtree.lo 1.21 ++endif 1.22 + 1.23 + # All of the source code files. 1.24 + # 1.25 +@@ -477,6 +488,24 @@ 1.26 + -o $@ $(TOP)/src/shell.c libsqlite3.la \ 1.27 + $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)" 1.28 + 1.29 ++fts3.lo: $(TOP)/ext/fts3/fts3.c $(HDR) 1.30 ++ $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3.c 1.31 ++fts3_hash.lo: $(TOP)/ext/fts3/fts3_hash.c $(HDR) 1.32 ++ $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_hash.c 1.33 ++fts3_expr.lo: $(TOP)/ext/fts3/fts3_expr.c $(HDR) 1.34 ++ $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_expr.c 1.35 ++fts3_icu.lo: $(TOP)/ext/fts3/fts3_icu.c $(HDR) 1.36 ++ $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_icu.c 1.37 ++fts3_porter.lo: $(TOP)/ext/fts3/fts3_porter.c $(HDR) 1.38 ++ $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_porter.c 1.39 ++fts3_tokenizer.lo: $(TOP)/ext/fts3/fts3_tokenizer.c $(HDR) 1.40 ++ $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_tokenizer.c 1.41 ++fts3_tokenizer1.lo: $(TOP)/ext/fts3/fts3_tokenizer1.c $(HDR) 1.42 ++ $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_tokenizer1.c 1.43 ++ 1.44 ++rtree.lo: $(TOP)/ext/rtree/rtree.c $(HDR) 1.45 ++ $(LTCOMPILE) -c $(TOP)/ext/rtree/rtree.c 1.46 ++ 1.47 + # This target creates a directory named "tsrc" and fills it with 1.48 + # copies of all of the C source code and header files needed to 1.49 + # build on the target system. Some of the C source code and header 1.50 +Index: configure 1.51 +--- configure.orig 2009-08-01 17:04:20 +0200 1.52 ++++ configure 2009-08-12 20:12:13 +0200 1.53 +@@ -6012,11 +6012,7 @@ 1.54 + if $ac_preproc_ok; then 1.55 + : 1.56 + else 1.57 +- { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 1.58 +-See \`config.log' for more details." >&5 1.59 +-$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 1.60 +-See \`config.log' for more details." >&2;} 1.61 +- { (exit 1); exit 1; }; } 1.62 ++ : 1.63 + fi 1.64 + 1.65 + ac_ext=c 1.66 +Index: sqlite3.pc.in 1.67 +--- sqlite3.pc.in.orig 2009-05-05 05:39:51 +0200 1.68 ++++ sqlite3.pc.in 2009-08-12 20:12:13 +0200 1.69 +@@ -8,6 +8,5 @@ 1.70 + Name: SQLite 1.71 + Description: SQL database engine 1.72 + Version: @RELEASE@ 1.73 +-Libs: -L${libdir} -lsqlite3 1.74 +-Libs.private: @LIBS@ 1.75 ++Libs: -L${libdir} -lsqlite3 @LIBS@ 1.76 + Cflags: -I${includedir}