diff options
author | ale <ale@FreeBSD.org> | 2009-11-02 18:11:49 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2009-11-02 18:11:49 +0800 |
commit | efb8ee8276080aab55ef33907c8cf1ba2fcb44af (patch) | |
tree | fe9d82e36a7dc85606486552f659c968bc0ec51c | |
parent | 228b53d1fdc95a5f8438da73c7de4851263231d4 (diff) | |
download | freebsd-ports-gnome-efb8ee8276080aab55ef33907c8cf1ba2fcb44af.tar.gz freebsd-ports-gnome-efb8ee8276080aab55ef33907c8cf1ba2fcb44af.tar.zst freebsd-ports-gnome-efb8ee8276080aab55ef33907c8cf1ba2fcb44af.zip |
Update sqlite3 to 3.6.19 release:
- fix thread-safe support (does it make sense to have an option to disable it?)
- add R*Tree index OPTION
- rework/simplify the port
PR: ports/139276
Submitted by: ale
Approved by: maintainer
-rw-r--r-- | databases/sqlite3/Makefile | 57 | ||||
-rw-r--r-- | databases/sqlite3/distinfo | 6 | ||||
-rw-r--r-- | databases/sqlite3/files/fts3_patch-Makefile.in | 35 | ||||
-rw-r--r-- | databases/sqlite3/files/patch-Makefile.in | 29 | ||||
-rw-r--r-- | databases/sqlite3/files/patch-src__main.c | 11 | ||||
-rw-r--r-- | databases/sqlite3/files/pkgIndex.tcl | 1 | ||||
-rw-r--r-- | databases/sqlite3/files/pthread_equal_stub | 11 | ||||
-rw-r--r-- | databases/sqlite3/pkg-plist | 2 |
8 files changed, 46 insertions, 106 deletions
diff --git a/databases/sqlite3/Makefile b/databases/sqlite3/Makefile index 3d2d424e5d3a..922ab7e6094f 100644 --- a/databases/sqlite3/Makefile +++ b/databases/sqlite3/Makefile @@ -6,7 +6,7 @@ # PORTNAME= sqlite3 -PORTVERSION= 3.6.14.2 +PORTVERSION= 3.6.19 CATEGORIES= databases MASTER_SITES= http://www.sqlite.org/ DISTNAME= sqlite-${PORTVERSION} @@ -18,28 +18,38 @@ CONFLICTS= sqlite34-[0-9]* USE_GMAKE= YES USE_GNOME= pkgconfig -USE_AUTOTOOLS= libtool:22 USE_LDCONFIG= YES GNU_CONFIGURE= YES -CONFIGURE_ARGS= --prefix=${PREFIX} -CONFIGURE_ENV+= TCLLIBDIR=${PREFIX}/lib/${PORTNAME} +USE_GNOME= gnomehack +USE_TCL_BUILD= 84+ +CONFIGURE_ENV+= TCLSH_CMD="${TCLSH}" \ + TCLLIBDIR="${PREFIX}/lib/${PORTNAME}" \ + ac_cv_search_pthread_create="" OPTIONS= DEBUG "Enable debugging & verbose explain" off \ FTS3 "Enable FTS3 (Full Text Search) module" off \ + RTREE "Enable R*Tree module" off \ RAMTABLE "Store temporary tables in RAM" off \ TCLWRAPPER "Enable TCL wrapper" off \ METADATA "Enable column metadata" on \ - THREADS "Enable threads support" on + THREADSAFE "Build thread-safe library" on .include <bsd.port.pre.mk> +.if ${OSVERSION} < 700000 +EXTRA_PATCHES+= ${FILESDIR}/pthread_equal_stub +.endif + .if defined(WITH_DEBUG) CONFIGURE_ARGS+= --enable-debug .endif .if defined(WITH_FTS3) -CFLAGS+= -DSQLITE_CORE=1 -DSQLITE_ENABLE_FTS3=1 -EXTRA_PATCHES+= ${FILESDIR}/fts3_patch-Makefile.in +CFLAGS+= -DSQLITE_ENABLE_FTS3=1 +.endif + +.if defined(WITH_RTREE) +CFLAGS+= -DSQLITE_ENABLE_RTREE=1 .endif .if defined(WITH_RAMTABLE) @@ -47,14 +57,13 @@ CONFIGURE_ARGS+= --enable-tempstore=yes .endif .if defined(WITH_TCLWRAPPER) -USE_TCL= 84+ -.include "${PORTSDIR}/Mk/bsd.tcl.mk" -MAKE_ARGS+= TCLSH=${TCLSH} -MAKE_ENV+= TCL_VER=${TCL_VER} CATEGORIES+= lang tcl COMMENT+= with TCL Wrapper +USE_TCL_RUN= 84+ CONFIGURE_ARGS+= --with-tcl=${TCL_LIBDIR} PLIST_SUB+= WITH_TCLWRAPPER="" +ALL_TARGET= all tclsqlite3 +INSTALL_TARGET= install tcl_install .else CONFIGURE_ARGS+= --disable-tcl PLIST_SUB+= WITH_TCLWRAPPER="@comment " @@ -64,37 +73,15 @@ PLIST_SUB+= WITH_TCLWRAPPER="@comment " CFLAGS+= -DSQLITE_ENABLE_COLUMN_METADATA=1 .endif -.if !defined(WITHOUT_THREADS) +.if !defined(WITHOUT_THREADSAFE) CONFIGURE_ARGS+= --enable-threadsafe \ - --enable-cross-thread-connections \ --enable-threads-override-locks .else CONFIGURE_ARGS+= --disable-threadsafe .endif -post-patch: - @${REINPLACE_CMD} -e "s|tclsh \$$(TOP)|\$$(TCLSH) \$$(TOP)|g" \ - -e "s|./libtool|${LIBTOOL}|g" \ - -e "s|--mode=link|--mode=link --tag=CC|g" \ - -e "s|\$${HAVE_TCL:1=tcl_install}||" \ - ${WRKSRC}/Makefile.in -.if !defined(WITHOUT_THREADS) - @${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" \ - ${WRKSRC}/configure ${WRKSRC}/sqlite.pc.in \ - ${WRKSRC}/sqlite3.pc.in -.else - @${REINPLACE_CMD} -E -e "s|-lpthread||g" \ - ${WRKSRC}/sqlite.pc.in ${WRKSRC}/sqlite3.pc.in -.endif - @${REINPLACE_CMD} -e "s|fts3.c||g" \ - -e "s|fts3_expr.c||g" ${WRKSRC}/tool/mksqlite3c.tcl - -post-install: .if defined(WITH_TCLWRAPPER) - @${MKDIR} ${PREFIX}/lib/sqlite3 - @(cd ${WRKSRC} && ${LIBTOOL} --mode=install ${INSTALL_DATA} \ - libtclsqlite3.la ${PREFIX}/lib/sqlite3/) - @${INSTALL_DATA} ${FILESDIR}/pkgIndex.tcl ${PREFIX}/lib/sqlite3/ +post-install: @${INSTALL_PROGRAM} ${WRKSRC}/.libs/tclsqlite3 ${PREFIX}/bin @${MKDIR} ${EXAMPLESDIR} @${INSTALL_DATA} ${FILESDIR}/example.tcl ${EXAMPLESDIR} diff --git a/databases/sqlite3/distinfo b/databases/sqlite3/distinfo index 8a1e9aee8c36..502da0906432 100644 --- a/databases/sqlite3/distinfo +++ b/databases/sqlite3/distinfo @@ -1,3 +1,3 @@ -MD5 (sqlite-3.6.14.2.tar.gz) = 4c074691b48cd45854899ae4fece6301 -SHA256 (sqlite-3.6.14.2.tar.gz) = 94a5b9dcc841baeb000971b15c6b66f50add7bc160030de5aea8622db3e7060e -SIZE (sqlite-3.6.14.2.tar.gz) = 2896850 +MD5 (sqlite-3.6.19.tar.gz) = aa03cc24a52851bb204fc1e489e195e8 +SHA256 (sqlite-3.6.19.tar.gz) = 7d8649c44fb97b874aa59144faaeb2356ec1fc6a8a7baa1d16e9ff5f1e097003 +SIZE (sqlite-3.6.19.tar.gz) = 2942005 diff --git a/databases/sqlite3/files/fts3_patch-Makefile.in b/databases/sqlite3/files/fts3_patch-Makefile.in deleted file mode 100644 index 1f9227e4c412..000000000000 --- a/databases/sqlite3/files/fts3_patch-Makefile.in +++ /dev/null @@ -1,35 +0,0 @@ ---- Makefile.in.orig 2009-01-15 12:01:45.000000000 -0200 -+++ Makefile.in 2009-01-26 19:43:24.000000000 -0200 -@@ -184,6 +184,8 @@ - LIBOBJ = $(OBJS$(USE_AMALGAMATION)) - - -+LIBOBJ += fts3.lo fts3_expr.lo fts3_hash.lo fts3_porter.lo fts3_tokenizer.lo fts3_tokenizer1.lo -+ - # All of the source code files. - # - SRC = \ -@@ -734,6 +736,23 @@ - -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE $(TEMP_STORE) \ - -o $@ $(TESTFIXTURE_SRC) $(LIBTCL) $(TLIBS) - -+fts3.lo: $(TOP)/ext/fts3/fts3.c $(HDR) -+ $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3.c -+ -+fts3_expr.lo: $(TOP)/ext/fts3/fts3_expr.c $(HDR) -+ $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_expr.c -+ -+fts3_hash.lo: $(TOP)/ext/fts3/fts3_hash.c $(HDR) -+ $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_hash.c -+ -+fts3_porter.lo: $(TOP)/ext/fts3/fts3_porter.c $(HDR) -+ $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_porter.c -+ -+fts3_tokenizer.lo: $(TOP)/ext/fts3/fts3_tokenizer.c $(HDR) -+ $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_tokenizer.c -+ -+fts3_tokenizer1.lo: $(TOP)/ext/fts3/fts3_tokenizer1.c $(HDR) -+ $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_tokenizer1.c - - fulltest: testfixture$(TEXE) sqlite3$(TEXE) - ./testfixture$(TEXE) $(TOP)/test/all.test diff --git a/databases/sqlite3/files/patch-Makefile.in b/databases/sqlite3/files/patch-Makefile.in index 8c5ffa3d9492..f34f6a1ae9c6 100644 --- a/databases/sqlite3/files/patch-Makefile.in +++ b/databases/sqlite3/files/patch-Makefile.in @@ -1,20 +1,11 @@ ---- Makefile.in.orig 2008-10-14 15:07:37.000000000 -0300 -+++ Makefile.in 2008-10-29 11:06:53.000000000 -0200 -@@ -135,7 +135,7 @@ - prefix = @prefix@ - exec_prefix = @exec_prefix@ - libdir = @libdir@ --pkgconfigdir = $(libdir)/pkgconfig -+pkgconfigdir = $(exec_prefix)/libdata/pkgconfig - bindir = @bindir@ - includedir = @includedir@ - INSTALL = @INSTALL@ -@@ -426,7 +426,7 @@ - # This is the default Makefile target. The objects listed here - # are what get build when you type just "make" with no arguments. - # --all: sqlite3.h libsqlite3.la sqlite3$(TEXE) $(HAVE_TCL:1=libtclsqlite3.la) -+all: sqlite3.h libsqlite3.la sqlite3$(TEXE) $(HAVE_TCL:1=libtclsqlite3.la tclsqlite3) +--- Makefile.in.orig 2009-09-17 13:41:21.000000000 +0200 ++++ Makefile.in 2009-09-17 13:45:38.000000000 +0200 +@@ -687,7 +687,7 @@ + $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/status.c - Makefile: $(TOP)/Makefile.in - ./config.status + sqlite3.h: $(TOP)/src/sqlite.h.in $(TOP)/manifest.uuid $(TOP)/VERSION +- tclsh $(TOP)/tool/mksqlite3h.tcl $(TOP) >sqlite3.h ++ $(TCLSH_CMD) $(TOP)/tool/mksqlite3h.tcl $(TOP) >sqlite3.h + + table.lo: $(TOP)/src/table.c $(HDR) + $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/table.c diff --git a/databases/sqlite3/files/patch-src__main.c b/databases/sqlite3/files/patch-src__main.c deleted file mode 100644 index 251c4fa9cc68..000000000000 --- a/databases/sqlite3/files/patch-src__main.c +++ /dev/null @@ -1,11 +0,0 @@ ---- src/main.c.orig 2008-03-04 00:22:33.000000000 -0300 -+++ src/main.c 2008-03-04 00:22:45.000000000 -0300 -@@ -19,7 +19,7 @@ - #include "sqliteInt.h" - #include <ctype.h> - #ifdef SQLITE_ENABLE_FTS3 --# include "fts3.h" -+# include "../ext/fts3/fts3.h" - #endif - - /* diff --git a/databases/sqlite3/files/pkgIndex.tcl b/databases/sqlite3/files/pkgIndex.tcl deleted file mode 100644 index d8b6bbc30048..000000000000 --- a/databases/sqlite3/files/pkgIndex.tcl +++ /dev/null @@ -1 +0,0 @@ -package ifneeded sqlite 0.0 [list load [file join $dir libtclsqlite3.so] sqlite] diff --git a/databases/sqlite3/files/pthread_equal_stub b/databases/sqlite3/files/pthread_equal_stub new file mode 100644 index 000000000000..c59eac404a24 --- /dev/null +++ b/databases/sqlite3/files/pthread_equal_stub @@ -0,0 +1,11 @@ +--- src/mutex_unix.c.orig 2009-09-18 12:39:33.000000000 +0200 ++++ src/mutex_unix.c 2009-09-18 12:39:04.000000000 +0200 +@@ -326,4 +326,8 @@ + return &sMutex; + } + ++int pthread_equal() __attribute__ ((weak)); ++ ++#define pthread_equal(a,b) ((pthread_equal) ? pthread_equal(a,b) : 1) ++ + #endif /* SQLITE_MUTEX_PTHREAD */ diff --git a/databases/sqlite3/pkg-plist b/databases/sqlite3/pkg-plist index 54c3187cd4e8..66b4440492f4 100644 --- a/databases/sqlite3/pkg-plist +++ b/databases/sqlite3/pkg-plist @@ -7,8 +7,6 @@ lib/libsqlite3.la lib/libsqlite3.so lib/libsqlite3.so.8 libdata/pkgconfig/sqlite3.pc -%%WITH_TCLWRAPPER%%lib/sqlite3/libtclsqlite3.a -%%WITH_TCLWRAPPER%%lib/sqlite3/libtclsqlite3.la %%WITH_TCLWRAPPER%%lib/sqlite3/libtclsqlite3.so %%WITH_TCLWRAPPER%%lib/sqlite3/pkgIndex.tcl %%WITH_TCLWRAPPER%%@dirrm lib/sqlite3 |