blob: 781dc83da9cfea0101f055760af801e18e11c2cd [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 Williams705982a2024-01-12 09:51:57 -06007DEPENDS = "swig-native sblim-cmpi-devel python3-setuptools-native"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05008
Patrick Williams8e7b46e2023-05-01 14:19:06 -05009SRC_URI = "git://github.com/kkaempf/cmpi-bindings.git;protocol=https;branch=master \
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 \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012 file://0001-Fix-error.patch \
Patrick Williams705982a2024-01-12 09:51:57 -060013 "
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014
Patrick Williams705982a2024-01-12 09:51:57 -060015SRCREV = "69077ee4d249816ed428155fc933dca424167e77"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050016S = "${WORKDIR}/git"
17
Patrick Williams705982a2024-01-12 09:51:57 -060018inherit cmake python3targetconfig
Patrick Williamsb48b7b42016-08-17 15:04:38 -050019
20EXTRA_OECMAKE = "-DLIB='${baselib}' \
Brad Bishope42b3e32020-01-15 22:08:42 -050021 -DPYTHON_INCLUDE_PATH=${STAGING_INCDIR}/python${PYTHON_BASEVERSION} \
22 -DPYTHON_ABI=${PYTHON_ABI} \
Patrick Williams705982a2024-01-12 09:51:57 -060023 -DBUILD_PYTHON3=YES \
24 -DPython3_SITE_DIR=${PYTHON_SITEPACKAGES_DIR} \
Brad Bishope42b3e32020-01-15 22:08:42 -050025 "
Patrick Williamsb48b7b42016-08-17 15:04:38 -050026
Brad Bishop316dfdd2018-06-25 12:45:53 -040027# With Ninja it fails with:
28# ninja: error: build.ninja:282: bad $-escape (literal $ must be written as $$)
29OECMAKE_GENERATOR = "Unix Makefiles"
30
Patrick Williams705982a2024-01-12 09:51:57 -060031FILES:${PN} =+"${libdir}/cmpi/libpy3CmpiProvider.so ${PYTHON_SITEPACKAGES_DIR}/*"
Patrick Williams213cb262021-08-07 19:21:33 -050032FILES:${PN}-dbg =+ "${libdir}/cmpi/.debug/libpyCmpiProvider.so"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050033
34BBCLASSEXTEND = "native"