hc
2023-05-26 a23f51ed7a39e452c1037343a84d7db1ca2c5bd7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
SUMMARY = "C++/Boost Asio based websocket client/server library."
SECTION = "libs/network"
HOMEPAGE = "https://github.com/zaphoyd/websocketpp"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=4d168d763c111f4ffc62249870e4e0ea"
 
DEPENDS = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'openssl boost zlib', '', d)} "
 
SRC_URI = "git://github.com/zaphoyd/websocketpp.git;protocol=https;branch=master \
           file://0001-cmake-Use-GNUInstallDirs.patch \
           file://855.patch \
           file://857.patch \
           file://0001-Correct-clang-compiler-flags.patch \
          "
 
EXTRA_OECMAKE = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '-DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON', '', d)} "
 
# this is an header only library, do not depend on the main package
RDEPENDS:${PN}-dev = ""
 
# to add this package to an SDK, since it isn't a reverse-dependency of anything, just use something like this:
# TOOLCHAIN_TARGET_TASK:append = " websocketpp-dev"
 
# tag 0.8.2
SRCREV= "56123c87598f8b1dd471be83ca841ceae07f95ba"
 
S = "${WORKDIR}/git"
 
inherit cmake
 
PACKAGES =+ "${PN}-examples"
 
FILES:${PN}-examples = "${docdir}"
 
do_install:append() {
   install -d ${D}${docdir}/${BPN}
   cp -R ${S}/examples ${D}${docdir}/${BPN}
}