SUMMARY = "C++ library for client-side URL transfers"
HOMEPAGE = "http://www.curlpp.org/"
SECTION = "libdevel"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

DEPENDS = "curl"
DEPENDS_class-native = "curl-native"

SRC_URI = "git://github.com/jpbarrette/curlpp.git"

SRCREV = "592552a165cc569dac7674cb7fc9de3dc829906f"

S = "${WORKDIR}/git"

inherit cmake pkgconfig binconfig

do_install_append () {
    sed -i 's,${STAGING_DIR_TARGET},,g' ${D}${libdir}/pkgconfig/curlpp.pc
}

PACKAGES =+ "libcurlpp libcurlpp-dev libcurlpp-staticdev"

FILES_lib${BPN} = "${libdir}/lib*.so.*"

FILES_lib${BPN}-dev = "${includedir} \
    ${libdir}/pkgconfig \
    ${bindir}/*-config \
"

FILES_lib${BPN}-staticdev = "${libdir}/lib*.a"

BBCLASSEXTEND = "native nativesdk"

SUMMARY = "C++ library for client-side URL transfers"
HOMEPAGE = "http://www.curlpp.org/"
SECTION = "libdevel"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://doc/LICENSE;md5=fd0c9adf285a69aa3b4faf34384e1029"

DEPENDS = "curl"
DEPENDS_class-native = "curl-native"

SRC_URI = "git://github.com/jpbarrette/curlpp.git"

SRCREV = "592552a165cc569dac7674cb7fc9de3dc829906f"

S = "${WORKDIR}/git"

inherit cmake pkgconfig binconfig

BBCLASSEXTEND = "native nativesdk"

Fix packaging and reference to license
curlpp: Fix packaging and reference to license

This patch fixes three issues:

1. The recipe used "libcurlpp" for its package base name. It defined
  PACKAGES and corresponding package contents manually, but the
  non-standard naming led to an error message when trying to depend on
  it (nothing provides curlpp needed by curlpp-dev).

  See also
  https://lists.yoctoproject.org/pipermail/poky/2018-February/011236.html.

  Fixed by removing PACKAGES and corresponding FILES_*, relying on
  automatic packaging now.

2. Upstream ships a license file (MIT), which is referenced by the
  recipe now (instead of the stock COPYING.MIT file).

3. There was a do_install_append() function which patched the
  installed curlpp.pc file. Since it seemed to be of no use, it was
  removed.

Signed-off-by: Robert Tiemann <45feb9037430c3a8c11f864fd04232e5a94064bb@gmx.de>
Signed-off-by: Khem Raj <729d64b6f67515e258459a5f6d20ec88b2caf8df@gmail.com>
