mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 13:50:08 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
76 lines
1.9 KiB
Bash
76 lines
1.9 KiB
Bash
SUMMARY="Websocket++ header-only library"
|
|
DESCRIPTION="WebSocket++ is a header only C++ library that implements RFC6455 \
|
|
The WebSocket Protocol. It allows integrating WebSocket client and server \
|
|
functionality into C++ programs. It uses interchangeable network transport \
|
|
modules including one based on raw char buffers, one based on C++ iostreams, \
|
|
and one based on Asio (either via Boost or standalone). End users can write \
|
|
additional transport policies to support other networking or event libraries \
|
|
as needed."
|
|
HOMEPAGE="https://github.com/zaphoyd/websocketpp"
|
|
COPYRIGHT="2018, Peter Thorson"
|
|
LICENSE="BSD (2-clause)"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/zaphoyd/websocketpp/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="178899de48c02853b55b1ea8681599641cedcdfce59e56beaff3dd0874bf0286"
|
|
PATCHES="websocketpp-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
websocketpp$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
|
|
BUILD_REQUIRES="$BUILD_REQUIRES
|
|
devel:libboost_system$secondaryArchSuffix
|
|
devel:libboost_thread$secondaryArchSuffix
|
|
devel:libboost_unit_test_framework$secondaryArchSuffix
|
|
devel:libssl$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
fi
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
|
|
TESTS=ON
|
|
else
|
|
TESTS=OFF
|
|
fi
|
|
mkdir -p build && cd build
|
|
cmake .. -DCMAKE_BUILD_TYPE=Release \
|
|
-DENABLE_CPP11=ON \
|
|
-DBUILD_TESTS=$TESTS \
|
|
-DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DINSTALL_INCLUDE_DIR:PATH=$includeDir \
|
|
-DINSTALL_CMAKE_DIR:PATH=$libDir/cmake
|
|
make $jobArgs
|
|
}
|
|
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
# we don't want the test binaries installed
|
|
rm -rf $prefix/bin
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd build
|
|
make test
|
|
}
|