e6e7dd87a8
Closes #13509. Signed-off-by: Enno Boland <gottox@voidlinux.eu>
21 lines
677 B
Bash
21 lines
677 B
Bash
# Template file for 'asio'
|
|
pkgname=asio
|
|
version=1.12.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
makedepends="boost-devel"
|
|
depends="boost-devel"
|
|
short_desc="Cross-platform C++ library for ASynchronous network I/O"
|
|
license="BSL-1.0"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://asio.sourceforge.net"
|
|
distfiles="${SOURCEFORGE_SITE}/asio/asio-${version}.tar.bz2"
|
|
checksum=a9091b4de847539fa5b2259bf76a5355339c7eaaa5e33d7d4ae74d614c21965a
|
|
|
|
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
|
|
}
|