void-packages/srcpkgs/asio/template
maxice8 713a9aeb71 asio: update to 1.12.0.
Closes: #12088 [via git-merge-pr]
2018-03-05 19:40:55 -08:00

21 lines
675 B
Bash

# Template file for 'asio'
pkgname=asio
version=1.12.0
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.eu>"
license="Boost"
homepage="http://asio.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/asio/asio-${version}.tar.bz2"
checksum=2c350b9ad7e266ab47935200a09194cbdf6f7ce2e3cabeddae6c68360d39d3ad
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
}