1SUMMARY="Websocket++ header-only library" 2DESCRIPTION="WebSocket++ is a header only C++ library that implements RFC6455 \ 3The WebSocket Protocol. It allows integrating WebSocket client and server \ 4functionality into C++ programs. It uses interchangeable network transport \ 5modules including one based on raw char buffers, one based on C++ iostreams, \ 6and one based on Asio (either via Boost or standalone). End users can write \ 7additional transport policies to support other networking or event libraries \ 8as needed." 9HOMEPAGE="https://github.com/zaphoyd/websocketpp" 10COPYRIGHT="2018, Peter Thorson" 11LICENSE="BSD (2-clause)" 12REVISION="1" 13SOURCE_URI="https://github.com/zaphoyd/websocketpp/archive/$portVersion.tar.gz" 14CHECKSUM_SHA256="6ce889d85ecdc2d8fa07408d6787e7352510750daa66b5ad44aacb47bea76755" 15PATCHES="websocketpp-$portVersion.patchset" 16 17ARCHITECTURES="all" 18SECONDARY_ARCHITECTURES="x86" 19 20PROVIDES=" 21 websocketpp$secondaryArchSuffix = $portVersion 22 " 23REQUIRES=" 24 haiku$secondaryArchSuffix 25 " 26 27BUILD_REQUIRES=" 28 haiku${secondaryArchSuffix}_devel 29 " 30if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then 31 BUILD_REQUIRES="$BUILD_REQUIRES 32 devel:libboost_system$secondaryArchSuffix 33 devel:libboost_thread$secondaryArchSuffix 34 devel:libboost_unit_test_framework$secondaryArchSuffix 35 devel:libssl$secondaryArchSuffix 36 devel:libz$secondaryArchSuffix 37 " 38fi 39BUILD_PREREQUIRES=" 40 cmd:cmake 41 cmd:g++$secondaryArchSuffix 42 cmd:make 43 " 44 45BUILD() 46{ 47 if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then 48 TESTS=ON 49 else 50 TESTS=OFF 51 fi 52 mkdir -p build && cd build 53 cmake .. -DCMAKE_BUILD_TYPE=Release \ 54 -DENABLE_CPP11=ON \ 55 -DBUILD_TESTS=$TESTS \ 56 -DCMAKE_INSTALL_PREFIX=$prefix \ 57 -DINSTALL_INCLUDE_DIR:PATH=$includeDir \ 58 -DINSTALL_CMAKE_DIR:PATH=$libDir/cmake 59 make $jobArgs 60} 61 62 63INSTALL() 64{ 65 cd build 66 make install 67 # we don't want the test binaries installed 68 rm -rf $prefix/bin 69} 70 71TEST() 72{ 73 cd build 74 make test 75} 76