summaryrefslogtreecommitdiff
path: root/math/dieharder/Makefile
blob: 16d77356537b23a1adc5caf34d032b45daefd784 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# New ports collection makefile for:   dieharder
# Date created:        14 November 2008
# Whom:                bf <bf2006a@yahoo.com>
#
# $FreeBSD$
#

PORTNAME=	dieharder
PORTVERSION=	2.28.1
CATEGORIES=	math
MASTER_SITES=	http://www.phy.duke.edu/~rgb/General/dieharder/
EXTRACT_SUFX=	.tgz

MAINTAINER=	bf1783@gmail.com
COMMENT=	A random number generator testsuite

LIB_DEPENDS=	gsl:${PORTSDIR}/math/gsl

USE_AUTOTOOLS=	aclocal:110 autoheader:262 libtool:22
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
USE_LDCONFIG=	yes
MAN1=		dieharder.1
MAN3=		libdieharder.3

post-patch:
	@${REINPLACE_CMD} -e "s|./configure|#./configure|g" \
		${WRKSRC}/autogen.sh

run-autotools:
	@(cd ${WRKSRC}; ${SETENV} ${AUTOTOOLS_ENV} ${SH} ./autogen.sh)
	@${REINPLACE_CMD} -e "/^ltmain=/!s^\$$ac_aux_dir/ltmain.sh^${LIBTOOLFLAGS} ${LTMAIN}^g" \
		-e '/^LIBTOOL=/s^\$$(top_builddir)/libtool^${LIBTOOL}^g' \
			${WRKSRC}/configure

.include <bsd.port.mk>