1SUMMARY="Asynchronous Network Library"
2DESCRIPTION="Asio is a cross-platform C++ library for network and low-level I/O programming \
3that provides developers with a consistent asynchronous model using a modern C++ approach"
4HOMEPAGE="https://github.com/chriskohlhoff/asio/"
5COPYRIGHT="2003-2023 Christopher M. Kohlhoff"
6LICENSE="Boost v1.0"
7REVISION="1"
8SOURCE_URI="https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-1-28-2.tar.gz"
9SOURCE_DIR="asio-asio-1-28-2"
10CHECKSUM_SHA256="5705a0e403017eba276625107160498518838064a6dd7fd8b00b2e30c0ffbdee"
11PATCHES="asio-$portVersion.patchset"
12
13ARCHITECTURES="all !x86_gcc2"
14SECONDARY_ARCHITECTURES="x86"
15
16PROVIDES="
17	asio$secondaryArchSuffix
18	devel:libasio$secondaryArchSuffix
19	"
20REQUIRES="
21	haiku$secondaryArchSuffix
22	devel:libboost_coroutine$secondaryArchSuffix
23	devel:libboost_regex$secondaryArchSuffix
24	devel:libssl$secondaryArchSuffix
25	"
26
27#PROVIDES_devel="
28#	asio${secondaryArchSuffix}_devel
29#	devel:libasio$secondaryArchSuffix
30#	"
31#REQUIRES_devel="
32#	asio$secondaryArchSuffix == $portVersion base
33#	lib:libssl$secondaryArchSuffix
34#	"
35
36BUILD_REQUIRES="
37	haiku${secondaryArchSuffix}_devel
38	devel:libboost_coroutine$secondaryArchSuffix >= 1.83.0
39	devel:libboost_regex$secondaryArchSuffix >= 1.83.0
40	devel:libssl$secondaryArchSuffix
41	"
42BUILD_PREREQUIRES="
43	autoconf_archive
44	cmd:aclocal
45	cmd:autoconf
46	cmd:automake
47	cmd:gcc$secondaryArchSuffix
48	cmd:make
49	cmd:pkg_config$secondaryArchSuffix
50	"
51
52BUILD()
53{
54	cd asio
55	autoupdate
56	aclocal
57	autoconf
58	automake --add-missing
59	runConfigure ./configure
60	make $jobArgs
61}
62
63INSTALL()
64{
65	cd asio
66	make install $jobArgs
67
68	fixPkgconfig
69}
70
71TEST() {
72	cd asio
73	make check $jobArgs
74}
75