Skip to content

Instantly share code, notes, and snippets.

@tomaskrcka
Last active December 15, 2019 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomaskrcka/36b0097efd734baa456ee22435bd34d3 to your computer and use it in GitHub Desktop.
Save tomaskrcka/36b0097efd734baa456ee22435bd34d3 to your computer and use it in GitHub Desktop.
DESCRIPTION = "MongoDB C driver"
SECTION = "libs"
HOMEPAGE = "https://github.com/mongodb/mongo-c-driver"
LICENSE = "Apache-2.0"
DEPENDS = "git-native openssl zlib"
inherit cmake pkgconfig
SRC_URI = "https://github.com/mongodb/mongo-c-driver/releases/download/${PV}/mongo-c-driver-${PV}.tar.gz"
SRC_URI[md5sum] = "c1b0d83bf0546ca3c1317858ad73f239"
SRC_URI[sha256sum] = "84fca347a6818e5ed6db50e06eb6d33538346b49bf0ba7475d7dbcecacac2ec6"
LIC_FILES_CHKSUM = "file://COPYING;md5=2ee41112a44fe7014dce33e26468ba93"
OECMAKE_C_FLAGS += "-pthread"
FILES_${PN} += "${libdir}/*"
FILES_${PN}-dev = "${libdir}/* ${includedir}"
do_install_append() {
chrpath -d ${D}${bindir}/mongoc-stat
}
S = "${WORKDIR}/mongo-c-driver-${PV}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment