void-packages/srcpkgs/asio/template

21 lines
679 B
Bash

# Template file for 'asio'
pkgname=asio
version=1.12.2
revision=1
build_style=gnu-configure
makedepends="boost-devel"
depends="boost-devel"
short_desc="Cross-platform C++ library for ASynchronous network I/O"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="BSL-1.0"
homepage="https://asio.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/asio/asio-${version}.tar.bz2"
checksum=4e27dcb37456ba707570334b91f4798721111ed67b69915685eac141895779aa
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl) # Enable strerror_r(3) version for musl libc
sed -e "/#define ASIO_IMPL_ERROR_CODE_IPP/a #define MUSL_LIBC" \
-i ${wrksrc}/include/asio/impl/error_code.ipp
esac
}