# Created by: bf <bf2006a@yahoo.com>
# $FreeBSD: tags/RELEASE_10_3_0/math/dieharder/Makefile 365182 2014-08-17 13:09:56Z tijl $

PORTNAME=	dieharder
PORTVERSION=	3.31.1
PORTREVISION=	3
CATEGORIES=	math
MASTER_SITES=	http://www.phy.duke.edu/~rgb/General/dieharder/ LOCAL/bf

MAINTAINER=	bf@FreeBSD.org
COMMENT=	Random number generator testsuite

LICENSE=	GPLv2

LIB_DEPENDS=	libgsl.so:${PORTSDIR}/math/gsl

MAKE_JOBS_UNSAFE=	yes

USES=		dos2unix libtool tar:tgz
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
USE_LDCONFIG=	yes

.include <bsd.port.pre.mk>

.if ${ARCH} == "ia64" || ${ARCH} == "sparc64"
BROKEN=		Does not compile on ia64 or sparc64
.endif

check test: build
	${WRKSRC}/dieharder/dieharder -a

.include <bsd.port.post.mk>
