Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "Adapter to write and run CMPI-type CIM providers" |
| 2 | DESCRIPTION = "CMPI-compliant provider interface for various languages via SWIG" |
| 3 | HOMEPAGE = "http://github.com/kkaempf/cmpi-bindings" |
Brad Bishop | 2d39a06 | 2019-10-28 08:33:36 -0400 | [diff] [blame] | 4 | LICENSE = "BSD-3-Clause" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b19ee058d2d5f69af45da98051d91064" |
| 6 | SECTION = "Development/Libraries" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 7 | DEPENDS = "swig-native python3 sblim-cmpi-devel" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 8 | |
| 9 | SRC_URI = "git://github.com/kkaempf/cmpi-bindings.git;protocol=http \ |
| 10 | 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 Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 16 | file://0001-Add-PYTHON_ABI-suffix-to-the-python-library-name.patch \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 17 | " |
| 18 | |
| 19 | SRCREV = "62f60e065aa1b901f826e4f530c0573ae32d065e" |
| 20 | S = "${WORKDIR}/git" |
| 21 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 22 | inherit cmake python3native |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 23 | |
| 24 | EXTRA_OECMAKE = "-DLIB='${baselib}' \ |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 25 | -DPYTHON_INCLUDE_PATH=${STAGING_INCDIR}/python${PYTHON_BASEVERSION} \ |
| 26 | -DPYTHON_ABI=${PYTHON_ABI} \ |
| 27 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 28 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 29 | # With Ninja it fails with: |
| 30 | # ninja: error: build.ninja:282: bad $-escape (literal $ must be written as $$) |
| 31 | OECMAKE_GENERATOR = "Unix Makefiles" |
| 32 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 33 | do_configure:prepend() { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 34 | export STAGING_LIBDIR=${STAGING_LIBDIR} |
| 35 | export STAGING_INCDIR=${STAGING_INCDIR} |
| 36 | export ENV_INSTALL_PATH=${PYTHON_SITEPACKAGES_DIR} |
| 37 | } |
| 38 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 39 | FILES:${PN} =+"${libdir}/cmpi/libpyCmpiProvider.so ${PYTHON_SITEPACKAGES_DIR}/*" |
| 40 | FILES:${PN}-dbg =+ "${libdir}/cmpi/.debug/libpyCmpiProvider.so" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 41 | |
| 42 | BBCLASSEXTEND = "native" |