mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
asio: new recipe (#9780)
This commit is contained in:
74
dev-cpp/asio/asio-1.28.2.recipe
Normal file
74
dev-cpp/asio/asio-1.28.2.recipe
Normal file
@@ -0,0 +1,74 @@
|
||||
SUMMARY="Asynchronous Network Library"
|
||||
DESCRIPTION="Asio is a cross-platform C++ library for network and low-level I/O programming \
|
||||
that provides developers with a consistent asynchronous model using a modern C++ approach"
|
||||
HOMEPAGE="https://github.com/chriskohlhoff/asio/"
|
||||
COPYRIGHT="2003-2023 Christopher M. Kohlhoff"
|
||||
LICENSE="Boost v1.0"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-1-28-2.tar.gz"
|
||||
SOURCE_DIR="asio-asio-1-28-2"
|
||||
CHECKSUM_SHA256="5705a0e403017eba276625107160498518838064a6dd7fd8b00b2e30c0ffbdee"
|
||||
PATCHES="asio-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
asio$secondaryArchSuffix
|
||||
devel:libasio$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
devel:libboost_coroutine$secondaryArchSuffix
|
||||
devel:libboost_regex$secondaryArchSuffix
|
||||
devel:libssl$secondaryArchSuffix
|
||||
"
|
||||
|
||||
#PROVIDES_devel="
|
||||
# asio${secondaryArchSuffix}_devel
|
||||
# devel:libasio$secondaryArchSuffix
|
||||
# "
|
||||
#REQUIRES_devel="
|
||||
# asio$secondaryArchSuffix == $portVersion base
|
||||
# lib:libssl$secondaryArchSuffix
|
||||
# "
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libboost_coroutine$secondaryArchSuffix >= 1.83.0
|
||||
devel:libboost_regex$secondaryArchSuffix >= 1.83.0
|
||||
devel:libssl$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
autoconf_archive
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd asio
|
||||
autoupdate
|
||||
aclocal
|
||||
autoconf
|
||||
automake --add-missing
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd asio
|
||||
make install $jobArgs
|
||||
|
||||
fixPkgconfig
|
||||
}
|
||||
|
||||
TEST() {
|
||||
cd asio
|
||||
make check $jobArgs
|
||||
}
|
||||
23
dev-cpp/asio/licenses/Boost v1.0
Normal file
23
dev-cpp/asio/licenses/Boost v1.0
Normal file
@@ -0,0 +1,23 @@
|
||||
Boost Software License - Version 1.0 - August 17th, 2003
|
||||
|
||||
Permission is hereby granted, free of charge, to any person or organization
|
||||
obtaining a copy of the software and accompanying documentation covered by
|
||||
this license (the "Software") to use, reproduce, display, distribute,
|
||||
execute, and transmit the Software, and to prepare derivative works of the
|
||||
Software, and to permit third-parties to whom the Software is furnished to
|
||||
do so, all subject to the following:
|
||||
|
||||
The copyright notices in the Software and this entire statement, including
|
||||
the above license grant, this restriction and the following disclaimer,
|
||||
must be included in all copies of the Software, in whole or in part, and
|
||||
all derivative works of the Software, unless such copies or derivative
|
||||
works are solely in the form of machine-executable object code generated by
|
||||
a source language processor.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
||||
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
||||
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
22
dev-cpp/asio/patches/asio-1.28.2.patchset
Normal file
22
dev-cpp/asio/patches/asio-1.28.2.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From 688f218c4d23da62e54f0fef73c3df27c1891933 Mon Sep 17 00:00:00 2001
|
||||
From: Maite Gamper <victor@wenzeslaus.de>
|
||||
Date: Tue, 21 Nov 2023 22:19:53 +0100
|
||||
Subject: asio: fix for haiku
|
||||
|
||||
|
||||
diff --git a/asio/include/asio/impl/serial_port_base.ipp b/asio/include/asio/impl/serial_port_base.ipp
|
||||
index 6f0db41..a4bd51a 100644
|
||||
--- a/asio/include/asio/impl/serial_port_base.ipp
|
||||
+++ b/asio/include/asio/impl/serial_port_base.ipp
|
||||
@@ -113,7 +113,7 @@ ASIO_SYNC_OP_VOID serial_port_base::baud_rate::store(
|
||||
ec = asio::error::invalid_argument;
|
||||
ASIO_SYNC_OP_VOID_RETURN(ec);
|
||||
}
|
||||
-# if defined(_BSD_SOURCE) || defined(_DEFAULT_SOURCE)
|
||||
+# if (defined(_BSD_SOURCE) || defined(_DEFAULT_SOURCE)) && !(defined(__HAIKU__))
|
||||
::cfsetspeed(&storage, baud);
|
||||
# else
|
||||
::cfsetispeed(&storage, baud);
|
||||
--
|
||||
2.42.0
|
||||
|
||||
Reference in New Issue
Block a user