Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2017-2019 Volker Krause <vkrause@kde.org> |
| 2 | # SPDX-FileCopyrightText: 2019 Hannah Kiekens <hannahkiekens@gmail.com> |
| 3 | # |
| 4 | # SPDX-License-Identifier: MIT |
| 5 | |
| 6 | SUMMARY = "Lightning Memory-Mapped Database (LMDB)" |
| 7 | HOMEPAGE = "https://symas.com/lightning-memory-mapped-database/" |
| 8 | LICENSE = "OLDAP-2.8" |
| 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=153d07ef052c4a37a8fac23bc6031972" |
| 10 | |
| 11 | SRC_URI = "git://github.com/LMDB/lmdb.git;nobranch=1 \ |
| 12 | file://run-ptest \ |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 13 | file://0001-Makefile-use-libprefix-instead-of-libdir.patch \ |
| 14 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 15 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 16 | SRCREV = "8ad7be2510414b9506ec9f9e24f24d04d9b04a1a" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 17 | |
| 18 | inherit base ptest |
| 19 | |
| 20 | S = "${WORKDIR}/git/libraries/liblmdb" |
| 21 | |
| 22 | LDFLAGS += "-Wl,-soname,lib${PN}.so.${PV}" |
| 23 | |
| 24 | do_compile() { |
| 25 | oe_runmake CC="${CC}" SOEXT=".so.${PV}" LDFLAGS="${LDFLAGS}" |
| 26 | } |
| 27 | |
| 28 | do_install() { |
| 29 | oe_runmake CC="${CC}" DESTDIR="${D}" prefix="${prefix}" libprefix="${libdir}" manprefix="${mandir}" SOEXT=".so.${PV}" LDFLAGS="${LDFLAGS}" install |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 30 | cd ${D}${libdir} |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 31 | ln -s liblmdb.so.${PV} liblmdb.so |
| 32 | rm liblmdb.a |
| 33 | } |
| 34 | |
| 35 | do_install_ptest() { |
| 36 | install -d ${D}${PTEST_PATH}/tests |
| 37 | for test in mtest mtest2 mtest3 mtest4 mtest5 mdb_stat; do |
| 38 | install -m 755 ${S}/$test ${D}${PTEST_PATH}/tests |
| 39 | done |
| 40 | } |