PORTNAME=	liberasurecode
DISTVERSION=	1.6.5
CATEGORIES=	devel

MAINTAINER=	fuz@FreeBSD.org
COMMENT=	Unified Erasure Coding interface for common storage workloads
WWW=		https://github.com/openstack/liberasurecode

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		gmake pkgconfig autoreconf libtool
USE_GITHUB=	yes
GH_ACCOUNT=	openstack
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-pkgconfigdir="${PREFIX}/libdata/pkgconfig" \
		--disable-werror
INSTALL_TARGET=	install-strip
TEST_TARGET=	test

CFLAGS_amd64=	-DINTEL_SSE2

OPTIONS_DEFINE=	SIMD
SIMD_CONFIGURE_ENABLE=	mmi

.include <bsd.port.mk>
