Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "An Embeddable SQL Database Engine" |
| 2 | HOMEPAGE = "http://www.sqlite.org/" |
| 3 | SECTION = "libs" |
| 4 | DEPENDS = "readline ncurses" |
| 5 | LICENSE = "PD" |
| 6 | LIC_FILES_CHKSUM = "file://src/main.c;beginline=1;endline=10;md5=e98469a8efa024a38ad5b2e4b92f4a96" |
| 7 | |
| 8 | PR = "r7" |
| 9 | |
| 10 | SRC_URI = "http://www.hwaci.com/sw/sqlite/sqlite-${PV}.tar.gz \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 11 | file://mainmk_build_dynamic.patch \ |
| 12 | file://mainmk_no_tcl.patch \ |
| 13 | file://sqlite.pc \ |
| 14 | file://0001-shell.c-Fix-format-not-a-string-literal-warning.patch \ |
| 15 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 16 | |
| 17 | SOURCES = "attach.o auth.o btree.o btree_rb.o build.o copy.o date.o delete.o \ |
| 18 | expr.o func.o hash.o insert.o main.o opcodes.o os.o pager.o \ |
| 19 | parse.o pragma.o printf.o random.o select.o table.o tokenize.o \ |
| 20 | trigger.o update.o util.o vacuum.o vdbe.o vdbeaux.o where.o" |
| 21 | |
| 22 | inherit autotools pkgconfig |
| 23 | |
| 24 | do_configure() { |
| 25 | echo "main.mk is patched, no need to configure" |
| 26 | # make pkgconfig.bbclass pick this up |
| 27 | cp ${WORKDIR}/sqlite.pc ${S} |
| 28 | } |
| 29 | |
| 30 | do_compile() { |
| 31 | oe_runmake -f ${S}/Makefile.linux-gcc \ |
| 32 | TOP="${S}" \ |
| 33 | BCC="${BUILD_CC}" \ |
| 34 | TCC="${CC}" \ |
| 35 | OPTS="-fPIC -D'INTPTR_TYPE=int'" \ |
| 36 | TCL_FLAGS= LIBTCL= \ |
| 37 | READLINE_FLAGS="-DHAVE_READLINE=1 -I${STAGING_INCDIR}" \ |
| 38 | LIBREADLINE="-L. -L${STAGING_LIBDIR} -lreadline -lncurses" |
| 39 | } |
| 40 | |
| 41 | do_install() { |
| 42 | install -d ${D}${libdir} ${D}${bindir} |
| 43 | install sqlite ${D}${bindir} |
| 44 | install -m 0755 libsqlite.so ${D}${libdir}/libsqlite.so.0.8.6 |
| 45 | ln -sf libsqlite.so.0.8.6 ${D}${libdir}/libsqlite.so |
| 46 | ln -sf libsqlite.so.0.8.6 ${D}${libdir}/libsqlite.so.0 |
| 47 | ln -sf libsqlite.so.0.8.6 ${D}${libdir}/libsqlite.so.0.8 |
| 48 | install -d ${D}${includedir} |
| 49 | install -m 0644 sqlite.h ${D}${includedir}/sqlite.h |
| 50 | install -d ${D}${libdir}/pkgconfig |
| 51 | install -m 0644 ${S}/sqlite.pc ${D}${libdir}/pkgconfig/sqlite.pc |
| 52 | } |
| 53 | |
| 54 | PACKAGES += "${PN}-bin" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 55 | FILES:${PN}-bin = "${bindir}/*" |
| 56 | FILES:${PN} = "${libdir}/*.so.*" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 57 | |
| 58 | SRC_URI[md5sum] = "838dbac20b56d2c4292e98848505a05b" |
| 59 | SRC_URI[sha256sum] = "3f35ebfb67867fb5b583a03e480f900206af637efe7179b32294a6a0cf806f37" |
| 60 | |
| 61 | BBCLASSEXTEND = "native" |