blob: 4325c15c33aa416432dff9a3ba8fb7cf8cfda2c2 [file] [log] [blame]
Brad Bishop26bdd442019-08-16 17:08:17 -04001SUMMARY = "Persistent Memory Development Kit"
2DESCRIPTION = "Persistent Memory Development Kit"
3HOMEPAGE = "http://pmem.io"
4SECTION = "libs"
Brad Bishop2d39a062019-10-28 08:33:36 -04005LICENSE = "BSD-3-Clause"
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -05006LIC_FILES_CHKSUM = "file://LICENSE;md5=b44ee63f162f9cdb18fff1224877aafd"
Brad Bishop26bdd442019-08-16 17:08:17 -04007DEPENDS = "ndctl"
8
9# Required to have the fts.h header for musl
Patrick Williams213cb262021-08-07 19:21:33 -050010DEPENDS:append:libc-musl = " fts"
Brad Bishop26bdd442019-08-16 17:08:17 -040011
12S = "${WORKDIR}/git"
13
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050014SRC_URI = "git://github.com/pmem/pmdk.git"
Brad Bishop26bdd442019-08-16 17:08:17 -040015
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050016SRCREV = "1926ffb8f3f5f0617b3b3ed32029d437c272f187"
Brad Bishop26bdd442019-08-16 17:08:17 -040017
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]
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050025EXTRA_OEMAKE = "BUILD_EXAMPLES='n' DOC='n' HOST_SYS='${HOST_SYS}' EXTRA_CFLAGS='${SELECTED_OPTIMIZATION}' LIB_PREFIX=${baselib}"
Brad Bishop26bdd442019-08-16 17:08:17 -040026
27# Fix the missing fts libs when using musl
Patrick Williams213cb262021-08-07 19:21:33 -050028EXTRA_OEMAKE:append:libc-musl = " EXTRA_LIBS='-lfts'"
Brad Bishop26bdd442019-08-16 17:08:17 -040029
Patrick Williams213cb262021-08-07 19:21:33 -050030do_configure:prepend() {
Andrew Geissler7f40b712020-05-15 14:09:53 -050031 touch .skip-doc
32}
33
Brad Bishop26bdd442019-08-16 17:08:17 -040034do_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
Patrick Williams213cb262021-08-07 19:21:33 -050042FILES:${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"
Brad Bishop26bdd442019-08-16 17:08:17 -040048
49COMPATIBLE_HOST='(x86_64).*'