summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gdbm/gdbm_1.24.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/gdbm/gdbm_1.24.bb')
-rw-r--r--meta/recipes-support/gdbm/gdbm_1.24.bb47
1 files changed, 47 insertions, 0 deletions
diff --git a/meta/recipes-support/gdbm/gdbm_1.24.bb b/meta/recipes-support/gdbm/gdbm_1.24.bb
new file mode 100644
index 0000000000..f400462a7a
--- /dev/null
+++ b/meta/recipes-support/gdbm/gdbm_1.24.bb
@@ -0,0 +1,47 @@
1SUMMARY = "Key/value database library with extensible hashing"
2DESCRIPTION = "Library of database functions that use extensible hashing \
3and work similar to the standard UNIX dbm. These routines are provided \
4to a programmer needing to create and manipulate a hashed database."
5HOMEPAGE = "http://www.gnu.org/software/gdbm/"
6SECTION = "libs"
7LICENSE = "GPL-3.0-only"
8LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24"
9
10SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz \
11 file://run-ptest \
12 file://ptest.patch \
13 "
14
15SRC_URI[sha256sum] = "695e9827fdf763513f133910bc7e6cfdb9187943a4fec943e57449723d2b8dbf"
16
17inherit autotools gettext texinfo lib_package ptest
18
19# Needed for dbm python module
20EXTRA_OECONF = "--enable-libgdbm-compat --without-readline"
21
22# Stop presence of dbm/nbdm on the host contaminating builds
23CACHED_CONFIGUREVARS += "ac_cv_lib_ndbm_main=no ac_cv_lib_dbm_main=no"
24
25# Not yet ready for C23
26CFLAGS += "-std=gnu11"
27
28BBCLASSEXTEND = "native nativesdk"
29
30do_install:append () {
31 # Create a symlink to ndbm.h and gdbm.h in include/gdbm to let other packages to find
32 # these headers
33 install -d ${D}${includedir}/gdbm
34 ln -sf ../ndbm.h ${D}/${includedir}/gdbm/ndbm.h
35 ln -sf ../gdbm.h ${D}/${includedir}/gdbm/gdbm.h
36}
37
38RDEPENDS:${PN}-ptest += "diffutils ${PN}-bin"
39
40do_compile_ptest() {
41 oe_runmake -C tests buildtests
42}
43
44PACKAGES =+ "${PN}-compat \
45 "
46FILES:${PN}-compat = "${libdir}/libgdbm_compat${SOLIBS} \
47 "