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 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 11 | SRC_URI = "git://github.com/LMDB/lmdb.git;nobranch=1;protocol=https \ |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 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 \ |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 14 | file://0001-make-set-soname-on-liblmdb.patch;patchdir=../.. \ |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 15 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 16 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 17 | SRCREV = "8ad7be2510414b9506ec9f9e24f24d04d9b04a1a" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 18 | |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 19 | inherit ptest |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 20 | |
| 21 | S = "${WORKDIR}/git/libraries/liblmdb" |
| 22 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 23 | do_compile() { |
| 24 | oe_runmake CC="${CC}" SOEXT=".so.${PV}" LDFLAGS="${LDFLAGS}" |
| 25 | } |
| 26 | |
| 27 | do_install() { |
| 28 | 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] | 29 | cd ${D}${libdir} |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 30 | ln -s liblmdb.so.${PV} liblmdb.so |
| 31 | rm liblmdb.a |
| 32 | } |
| 33 | |
| 34 | do_install_ptest() { |
| 35 | install -d ${D}${PTEST_PATH}/tests |
| 36 | for test in mtest mtest2 mtest3 mtest4 mtest5 mdb_stat; do |
| 37 | install -m 755 ${S}/$test ${D}${PTEST_PATH}/tests |
| 38 | done |
| 39 | } |