blob: 15a7965935f3ce38bfd6b088456d4c7c5ebc4519 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Tool for rapid CMPI providers development"
2DESCRIPTION = "\
3KonkretCMPI makes CMPI provider development easier by generating type-safe \
4concrete CIM interfaces from MOF definitions and by providing default \
5implementations for many of the provider operations."
6HOMEPAGE = "https://github.com/rnovacek/konkretcmpi"
7LICENSE = "MIT"
8LIC_FILES_CHKSUM = "file://COPYING;md5=f673270bfc350d9ce1efc8724c6c1873"
Patrick Williams213cb262021-08-07 19:21:33 -05009DEPENDS:append:class-target = " swig-native sblim-cmpi-devel python3"
10DEPENDS:append:class-native = " cmpi-bindings-native"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050011
Andrew Geissler595f6302022-01-24 19:11:47 +000012SRC_URI = "git://github.com/rnovacek/konkretcmpi.git;branch=master;protocol=https \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050013 file://0001-CMakeLists.txt-fix-lib64-can-not-be-shiped-in-64bit-.patch \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050014 file://0001-drop-including-rpath-cmake-module.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050015 "
16
Brad Bishopd7bf8c12018-02-25 22:55:05 -050017SRCREV = "ad28225e6eceff88417a60c1ba8896c8e40f21a7"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050018S = "${WORKDIR}/git"
19
20inherit cmake
21
22EXTRA_OECMAKE = "-DWITH_PYTHON=ON \
Brad Bishop316dfdd2018-06-25 12:45:53 -040023 ${@oe.utils.conditional("libdir", "/usr/lib64", "-DLIB_SUFFIX=64", "", d)} \
24 ${@oe.utils.conditional("libdir", "/usr/lib32", "-DLIB_SUFFIX=32", "", d)} \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050025 "
26
Patrick Williams213cb262021-08-07 19:21:33 -050027LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050028
Patrick Williams213cb262021-08-07 19:21:33 -050029do_install:append() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050030 rm -rf ${D}${datadir}
31}
32
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080033PACKAGES =+ "${PN}-python"
34
Patrick Williams213cb262021-08-07 19:21:33 -050035RPROVIDES:${PN}-dbg += "${PN}-python-dbg"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050036
Patrick Williams213cb262021-08-07 19:21:33 -050037FILES:${PN}-python = "${libdir}/python*/site-packages/konkretmof.py* ${libdir}/python*/site-packages/_konkretmof.so"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050038
Brad Bishopd7bf8c12018-02-25 22:55:05 -050039BBCLASSEXTEND = "native"