PORTNAME=	liberasurecode
DISTVERSION=	1.8.0
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

# documentation file names vary depending on architecture
PORTDOCS=	html

PLIST_SUB=	DISTVERSION=${DISTVERSION}

OPTIONS_DEFINE=	DOCS SIMD
DOCS_CONFIGURE_ENABLE=	doxygen
DOCS_BUILD_DEPENDS=	doxygen:devel/doxygen
SIMD_CONFIGURE_ENABLE=	mmi

.include <bsd.port.mk>
