blob: f437accc505fb78193db20e8309ca73e422ca092 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "C++/Boost Asio based websocket client/server library."
2SECTION = "libs/network"
3HOMEPAGE = "https://github.com/zaphoyd/websocketpp"
4LICENSE = "BSD-3-Clause"
5LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=4d168d763c111f4ffc62249870e4e0ea"
6
7DEPENDS = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'openssl boost zlib', '', d)} "
8
Andrew Geissler595f6302022-01-24 19:11:47 +00009SRC_URI = "git://github.com/zaphoyd/websocketpp.git;protocol=https;branch=master \
Andrew Geissler82c905d2020-04-13 13:39:40 -050010 file://0001-cmake-Use-GNUInstallDirs.patch \
11 file://855.patch \
12 file://857.patch \
13 file://0001-Correct-clang-compiler-flags.patch \
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000014 file://1024.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050015 "
16
17EXTRA_OECMAKE = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '-DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON', '', d)} "
18
19# this is an header only library, do not depend on the main package
Patrick Williams213cb262021-08-07 19:21:33 -050020RDEPENDS:${PN}-dev = ""
Andrew Geissler82c905d2020-04-13 13:39:40 -050021
22# to add this package to an SDK, since it isn't a reverse-dependency of anything, just use something like this:
Patrick Williams213cb262021-08-07 19:21:33 -050023# TOOLCHAIN_TARGET_TASK:append = " websocketpp-dev"
Andrew Geissler82c905d2020-04-13 13:39:40 -050024
25# tag 0.8.2
26SRCREV= "56123c87598f8b1dd471be83ca841ceae07f95ba"
27
28S = "${WORKDIR}/git"
29
30inherit cmake
31
32PACKAGES =+ "${PN}-examples"
33
Patrick Williams213cb262021-08-07 19:21:33 -050034FILES:${PN}-examples = "${docdir}"
Andrew Geissler82c905d2020-04-13 13:39:40 -050035
Patrick Williams213cb262021-08-07 19:21:33 -050036do_install:append() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050037 install -d ${D}${docdir}/${BPN}
38 cp -R ${S}/examples ${D}${docdir}/${BPN}
39}