void-packages/srcpkgs/asio/template
jbu f9cde9ac21 asio: unbreak musl
Do not change the code path for glibc by using a macro
MUSL_LIBC which is defined only if target is *-musl.
2015-07-12 14:56:27 +02:00

21 lines
675 B
Bash

# Template file for 'asio'
pkgname=asio
version=1.10.6
revision=2
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=e0d71c40a7b1f6c1334008fb279e7361b32a063e020efd21e40d9d8ff037195e
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
}