Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "LevelDB is a fast key-value storage library" |
| 2 | DESCRIPTION = "LevelDB is a fast key-value storage library that provides an ordered mapping from string keys to string values" |
| 3 | HOMEPAGE = "http://leveldb.googlecode.com" |
| 4 | LICENSE = "BSD-3-Clause" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=92d1b128950b11ba8495b64938fc164d" |
| 6 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 7 | SRCREV = "a53934a3ae1244679f812d998a4f16f2c7f309a6" |
| 8 | PV = "1.20+git${SRCPV}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 9 | |
| 10 | SRC_URI = "git://github.com/google/${BPN}.git \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 11 | file://0001-build_detect_platform-Check-for-__SSE4_2__.patch \ |
| 12 | file://0002-makefile-build-SHARED_MEMENVLIB.patch \ |
| 13 | file://0001-Makefile-Fix-parallel-build.patch \ |
| 14 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 15 | |
| 16 | S = "${WORKDIR}/git" |
| 17 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 18 | inherit utils |
| 19 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 20 | do_compile() { |
| 21 | # do not use oe_runmake. oe_runmake pass to make compilation arguments and override |
| 22 | # leveldb makefile variable CFLAGS and broke leveldb build. |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 23 | CFLAGS="${CFLAGS}" make ${PARALLEL_MAKE}|| die |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | do_install() { |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 27 | install -d ${D}${libdir} ${D}${bindir} ${D}${includedir}/leveldb |
| 28 | oe_libinstall -C ${B}/out-shared libleveldb ${D}${libdir} |
| 29 | oe_libinstall -C ${S}/out-static libleveldb ${D}${libdir} |
| 30 | oe_libinstall -C ${S}/out-static libmemenv ${D}${libdir} |
| 31 | install -m 0755 ${B}/out-shared/db_bench ${D}${bindir} |
| 32 | install -m 0755 ${B}/out-static/*_test ${D}${bindir} |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 33 | install -m 644 ${S}/include/leveldb/*.h ${D}${includedir}/leveldb/ |
| 34 | } |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 35 | |
| 36 | PACKAGES =+ "${PN}-ptest" |
| 37 | FILES_${PN}-ptest = "${bindir}" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 38 | |
| 39 | # Do not try to build lib32-leveldb for mips64, but allow libn32-leveldb. |
| 40 | # |
| 41 | COMPATIBLE_HOST_mipsarcho32_pn-lib32-leveldb = "null" |