[oe-commits] org.oe.oz354x sqlite: upgraded to 2.8.17

hrw commit openembedded-commits at lists.openembedded.org
Tue Jan 9 08:25:07 UTC 2007


sqlite: upgraded to 2.8.17

Author: hrw at openembedded.org
Branch: org.openembedded.oz354x
Revision: 10528777755e7f220109101805369d7220d112eb
ViewMTN: http://monotone.openembedded.org/revision.psp?id=10528777755e7f220109101805369d7220d112eb
Files:
1
packages/sqlite/sqlite-2.8.17
packages/sqlite/sqlite-2.8.17/mainmk_build_dynamic.patch
packages/sqlite/sqlite-2.8.17/mainmk_no_tcl.patch
packages/sqlite/sqlite-2.8.17/sqlite.pc
packages/sqlite/sqlite_2.8.17.bb
Diffs:

#
# mt diff -rf813ebcf039e639fa25cb9ebe849563c1e397925 -r10528777755e7f220109101805369d7220d112eb
#
# 
# 
# add_dir "packages/sqlite/sqlite-2.8.17"
# 
# add_file "packages/sqlite/sqlite-2.8.17/mainmk_build_dynamic.patch"
#  content [3f6d6be6b0da92fe59a009ab413f1e20046c7a0c]
# 
# add_file "packages/sqlite/sqlite-2.8.17/mainmk_no_tcl.patch"
#  content [15c35c9637394873cf16992242eba22208eb3d8e]
# 
# add_file "packages/sqlite/sqlite-2.8.17/sqlite.pc"
#  content [c57d07391a7cb4eb97ab1904f08d47b663d778b7]
# 
# add_file "packages/sqlite/sqlite_2.8.17.bb"
#  content [4d7111af3a3a896b4027ca3b7fa1ce4e6159115a]
# 
============================================================
--- packages/sqlite/sqlite-2.8.17/mainmk_build_dynamic.patch	3f6d6be6b0da92fe59a009ab413f1e20046c7a0c
+++ packages/sqlite/sqlite-2.8.17/mainmk_build_dynamic.patch	3f6d6be6b0da92fe59a009ab413f1e20046c7a0c
@@ -0,0 +1,30 @@
+diff -bur sqlite-2.8.17~orig/main.mk sqlite-2.8.17/main.mk
+--- sqlite-2.8.17~orig/main.mk	2005-04-23 17:43:23.000000000 -0500
++++ sqlite-2.8.17/main.mk	2006-02-13 03:31:03.000000000 -0600
+@@ -139,7 +139,7 @@
+ # This is the default Makefile target.  The objects listed here
+ # are what get build when you type just "make" with no arguments.
+ #
+-all:	sqlite.h config.h libsqlite.a sqlite$(EXE)
++all:   sqlite.h config.h libsqlite.so sqlite$(EXE)
+ 
+ # Generate the file "last_change" which contains the date of change
+ # of the most recently modified source code file
+@@ -148,13 +148,12 @@
+ 	cat $(SRC) | grep '$$Id: ' | sort +4 | tail -1 \
+           | awk '{print $$5,$$6}' >last_change
+ 
+-libsqlite.a:	$(LIBOBJ)
+-	$(AR) libsqlite.a $(LIBOBJ)
+-	$(RANLIB) libsqlite.a
++libsqlite.so:	$(LIBOBJ)
++	$(CC) -shared -o libsqlite.so -Wl,-soname,libsqlite.so.0 $(LIBOBJ)
+ 
+-sqlite$(EXE):	$(TOP)/src/shell.c libsqlite.a sqlite.h
++sqlite$(EXE):	$(TOP)/src/shell.c libsqlite.so sqlite.h
+ 	$(TCCX) $(READLINE_FLAGS) -o sqlite$(EXE) $(TOP)/src/shell.c \
+-		libsqlite.a $(LIBREADLINE) $(THREADLIB)
++		-lsqlite $(LIBREADLINE) $(THREADLIB)
+ 
+ sqlite_analyzer$(EXE):	$(TOP)/src/tclsqlite.c libsqlite.a $(TESTSRC) \
+ 			$(TOP)/tool/spaceanal.tcl
============================================================
--- packages/sqlite/sqlite-2.8.17/mainmk_no_tcl.patch	15c35c9637394873cf16992242eba22208eb3d8e
+++ packages/sqlite/sqlite-2.8.17/mainmk_no_tcl.patch	15c35c9637394873cf16992242eba22208eb3d8e
@@ -0,0 +1,20 @@
+diff -bur sqlite-2.8.17~orig/main.mk sqlite-2.8.17/main.mk
+--- sqlite-2.8.17~orig/main.mk	2006-02-13 04:09:33.000000000 -0600
++++ sqlite-2.8.17/main.mk	2006-02-13 04:15:42.000000000 -0600
+@@ -58,7 +58,7 @@
+          expr.o func.o hash.o insert.o \
+          main.o opcodes.o os.o pager.o parse.o pragma.o printf.o random.o \
+          select.o table.o tokenize.o trigger.o update.o util.o \
+-         vacuum.o vdbe.o vdbeaux.o where.o tclsqlite.o
++         vacuum.o vdbe.o vdbeaux.o where.o
+ 
+ # All of the source code files.
+ #
+@@ -91,7 +91,6 @@
+   $(TOP)/src/sqlite.h.in \
+   $(TOP)/src/sqliteInt.h \
+   $(TOP)/src/table.c \
+-  $(TOP)/src/tclsqlite.c \
+   $(TOP)/src/tokenize.c \
+   $(TOP)/src/trigger.c \
+   $(TOP)/src/update.c \
============================================================
--- packages/sqlite/sqlite-2.8.17/sqlite.pc	c57d07391a7cb4eb97ab1904f08d47b663d778b7
+++ packages/sqlite/sqlite-2.8.17/sqlite.pc	c57d07391a7cb4eb97ab1904f08d47b663d778b7
@@ -0,0 +1,12 @@
+# Package Information for pkg-config
+
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: SQLite
+Description: SQL database engine
+Version: 2.8.17
+Libs: -L${libdir} -lsqlite
+Cflags: -I${includedir}
============================================================
--- packages/sqlite/sqlite_2.8.17.bb	4d7111af3a3a896b4027ca3b7fa1ce4e6159115a
+++ packages/sqlite/sqlite_2.8.17.bb	4d7111af3a3a896b4027ca3b7fa1ce4e6159115a
@@ -0,0 +1,61 @@
+DESCRIPTION = "An Embeddable SQL Database Engine"
+HOMEPAGE = "http://www.sqlite.org/"
+SECTION = "libs"
+PRIORITY = "optional"
+DEPENDS = "readline ncurses"
+LICENSE = "PD"
+PR = "r2"
+
+SRC_URI = "http://www.hwaci.com/sw/sqlite/sqlite-${PV}.tar.gz \
+       file://mainmk_build_dynamic.patch;patch=1 \
+       file://mainmk_no_tcl.patch;patch=1 \
+	   file://sqlite.pc"
+
+SOURCES = "attach.o auth.o btree.o btree_rb.o build.o copy.o date.o delete.o \
+           expr.o func.o hash.o insert.o main.o opcodes.o os.o pager.o \
+           parse.o pragma.o printf.o random.o select.o table.o tokenize.o \
+           trigger.o update.o util.o vacuum.o vdbe.o vdbeaux.o where.o"
+
+inherit autotools pkgconfig
+
+do_configure() {
+    echo "main.mk is patched, no need to configure"
+}
+
+do_compile() {
+	oe_runmake -f Makefile.linux-gcc \
+                   TOP="${S}" \
+                   BCC="${BUILD_CC}" \
+                   TCC="${CC}" \
+                   OPTS="-fPIC -D'INTPTR_TYPE=int'" \
+                   TCL_FLAGS= LIBTCL= \
+                   READLINE_FLAGS="-DHAVE_READLINE=1 -I${STAGING_INCDIR}" \
+                   LIBREADLINE="-L. -L${STAGING_LIBDIR} -lreadline -lncurses"
+}
+
+do_stage() {
+	install -m 0755 libsqlite.so ${STAGING_LIBDIR}/libsqlite.so.0.8.6
+        ln -sf libsqlite.so.0.8.6 ${STAGING_LIBDIR}/libsqlite.so
+        ln -sf libsqlite.so.0.8.6 ${STAGING_LIBDIR}/libsqlite.so.0
+        ln -sf libsqlite.so.0.8.6 ${STAGING_LIBDIR}/libsqlite.so.0.8
+        install -m 0644 sqlite.h ${STAGING_INCDIR}
+
+	# make pkgconfig.bbclass pick this up
+	mv ${WORKDIR}/sqlite.pc ${S}
+}
+
+do_install() {
+	install -d ${D}${libdir} ${D}${bindir}
+	install sqlite ${D}${bindir}
+	install -m 0755 libsqlite.so ${D}${libdir}/libsqlite.so.0.8.6
+	ln -sf libsqlite.so.0.8.6 ${D}${libdir}/libsqlite.so
+        ln -sf libsqlite.so.0.8.6 ${D}${libdir}/libsqlite.so.0
+        ln -sf libsqlite.so.0.8.6 ${D}${libdir}/libsqlite.so.0.8
+        install -d ${D}${includedir}
+        install -m 0644 sqlite.h ${D}${includedir}/sqlite.h
+}
+
+PACKAGES += "${PN}-bin"
+FILES_${PN}-bin = "${bindir}/*"
+FILES_${PN} = "${libdir}/*.so.*"
+






More information about the Openembedded-commits mailing list