blob: 33d04099c9da8040b27d7f38a3a8ed759923a34b [file] [log] [blame]
Andrew Geisslereff27472021-10-29 15:35:00 -05001SUMMARY = "Persistent Memory Development Kit"
2DESCRIPTION = "Persistent Memory Development Kit"
3HOMEPAGE = "http://pmem.io"
4SECTION = "libs"
5LICENSE = "BSD-3-Clause"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=b44ee63f162f9cdb18fff1224877aafd"
7DEPENDS = "ndctl"
8
9# Required to have the fts.h header for musl
10DEPENDS:append:libc-musl = " fts"
11
12S = "${WORKDIR}/git"
13
Andrew Geissler9aee5002022-03-30 16:27:02 +000014SRC_URI = "git://github.com/pmem/pmdk.git;branch=stable-1.11;protocol=https \
15 file://0001-use-daxctl-libdaxctl.h-instead-of-ndctl-libdaxctl.h.patch"
Andrew Geisslereff27472021-10-29 15:35:00 -050016SRCREV = "5b21904a257eff47f2e87fcbf2de46111f03ddd8"
17
18inherit autotools-brokensep pkgconfig
19
20# Fix jemalloc error:
21# | configure: error: cannot run C compiled programs.
22# | If you meant to cross compile, use `--host'.
23#
24# Also fix #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
25EXTRA_OEMAKE = "BUILD_EXAMPLES='n' DOC='n' HOST_SYS='${HOST_SYS}' EXTRA_CFLAGS='${SELECTED_OPTIMIZATION}' LIB_PREFIX=${baselib}"
26
27# Fix the missing fts libs when using musl
28EXTRA_OEMAKE:append:libc-musl = " EXTRA_LIBS='-lfts'"
29
30do_configure:prepend() {
31 touch .skip-doc
32}
33
34do_install() {
35 oe_runmake prefix=${prefix} DESTDIR=${D} install
36
37 # Remove uneeded files
38 rm -rf ${D}/usr/${baselib}/pmdk_debug
39}
40
41# Include these by default otherwise the SDK is not very useful
42FILES:${PN} += "${bindir}/pmempool ${bindir}/daxio"
43FILES:${PN} += "${libdir}/*so*"
44FILES:${PN} += "${libdir}/pkgconfig/*.pc"
45FILES:${PN} += "${includedir}/libpmemobj++/* ${includedir}/libpmemobj/* /usr/*/include/"
46FILES:${PN} += "/usr/etc"
47FILES:${PN} += "/usr/share"
48
49COMPATIBLE_HOST='(x86_64).*'