xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/websocketpp/websocketpp_0.8.2.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "C++/Boost Asio based websocket client/server library."
2*4882a593SmuzhiyunSECTION = "libs/network"
3*4882a593SmuzhiyunHOMEPAGE = "https://github.com/zaphoyd/websocketpp"
4*4882a593SmuzhiyunLICENSE = "BSD-3-Clause"
5*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://${S}/COPYING;md5=4d168d763c111f4ffc62249870e4e0ea"
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunDEPENDS = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'openssl boost zlib', '', d)} "
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunSRC_URI = "git://github.com/zaphoyd/websocketpp.git;protocol=https;branch=master \
10*4882a593Smuzhiyun           file://0001-cmake-Use-GNUInstallDirs.patch \
11*4882a593Smuzhiyun           file://855.patch \
12*4882a593Smuzhiyun           file://857.patch \
13*4882a593Smuzhiyun           file://0001-Correct-clang-compiler-flags.patch \
14*4882a593Smuzhiyun           file://1024.patch \
15*4882a593Smuzhiyun          "
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunEXTRA_OECMAKE = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '-DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON', '', d)} "
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun# this is an header only library, do not depend on the main package
20*4882a593SmuzhiyunRDEPENDS:${PN}-dev = ""
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun# to add this package to an SDK, since it isn't a reverse-dependency of anything, just use something like this:
23*4882a593Smuzhiyun# TOOLCHAIN_TARGET_TASK:append = " websocketpp-dev"
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun# tag 0.8.2
26*4882a593SmuzhiyunSRCREV= "56123c87598f8b1dd471be83ca841ceae07f95ba"
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunS = "${WORKDIR}/git"
29*4882a593Smuzhiyun
30*4882a593Smuzhiyuninherit cmake
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunPACKAGES =+ "${PN}-examples"
33*4882a593Smuzhiyun
34*4882a593SmuzhiyunFILES:${PN}-examples = "${docdir}"
35*4882a593Smuzhiyun
36*4882a593Smuzhiyundo_install:append() {
37*4882a593Smuzhiyun	install -d ${D}${docdir}/${BPN}
38*4882a593Smuzhiyun	cp -R ${S}/examples ${D}${docdir}/${BPN}
39*4882a593Smuzhiyun}
40