blob: 464d25ad080e74dd407ecd47c35313e9f8956403 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Adapter to write and run CMPI-type CIM providers"
2DESCRIPTION = "CMPI-compliant provider interface for various languages via SWIG"
3HOMEPAGE = "http://github.com/kkaempf/cmpi-bindings"
Brad Bishop2d39a062019-10-28 08:33:36 -04004LICENSE = "BSD-3-Clause"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05005LIC_FILES_CHKSUM = "file://COPYING;md5=b19ee058d2d5f69af45da98051d91064"
6SECTION = "Development/Libraries"
Patrick Williamsddad1a12017-02-23 20:36:32 -06007DEPENDS = "swig-native python3 sblim-cmpi-devel"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05008
Andrew Geissler595f6302022-01-24 19:11:47 +00009SRC_URI = "git://github.com/kkaempf/cmpi-bindings.git;protocol=http;branch=master;protocol=https \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050010 file://cmpi-bindings-0.4.17-no-ruby-perl.patch \
11 file://cmpi-bindings-0.4.17-sblim-sigsegv.patch \
12 file://cmpi-bindings-0.9.5-python-lib-dir.patch \
13 file://0001-Modify-cmakelist.patch \
14 file://0001-Fix-error.patch \
15 file://0001-fix-the-build-error-when-python-3.0.patch \
Patrick Williamsddad1a12017-02-23 20:36:32 -060016 file://0001-Add-PYTHON_ABI-suffix-to-the-python-library-name.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050017 "
18
19SRCREV = "62f60e065aa1b901f826e4f530c0573ae32d065e"
20S = "${WORKDIR}/git"
21
Patrick Williamsddad1a12017-02-23 20:36:32 -060022inherit cmake python3native
Patrick Williamsb48b7b42016-08-17 15:04:38 -050023
24EXTRA_OECMAKE = "-DLIB='${baselib}' \
Brad Bishope42b3e32020-01-15 22:08:42 -050025 -DPYTHON_INCLUDE_PATH=${STAGING_INCDIR}/python${PYTHON_BASEVERSION} \
26 -DPYTHON_ABI=${PYTHON_ABI} \
27 "
Patrick Williamsb48b7b42016-08-17 15:04:38 -050028
Brad Bishop316dfdd2018-06-25 12:45:53 -040029# With Ninja it fails with:
30# ninja: error: build.ninja:282: bad $-escape (literal $ must be written as $$)
31OECMAKE_GENERATOR = "Unix Makefiles"
32
Patrick Williams213cb262021-08-07 19:21:33 -050033do_configure:prepend() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050034 export STAGING_LIBDIR=${STAGING_LIBDIR}
35 export STAGING_INCDIR=${STAGING_INCDIR}
36 export ENV_INSTALL_PATH=${PYTHON_SITEPACKAGES_DIR}
37}
38
Patrick Williams213cb262021-08-07 19:21:33 -050039FILES:${PN} =+"${libdir}/cmpi/libpyCmpiProvider.so ${PYTHON_SITEPACKAGES_DIR}/*"
40FILES:${PN}-dbg =+ "${libdir}/cmpi/.debug/libpyCmpiProvider.so"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050041
42BBCLASSEXTEND = "native"