blob: e913814b2e534d930a7fbdd9cf774ecba4381d43 (
plain) (
blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# New ports collection makefile for: dieharder
# Date created: 14 November 2008
# Whom: bf <bf2006a@yahoo.com>
#
# $FreeBSD$
#
PORTNAME= dieharder
DISTVERSION= 3.29.4beta
PORTREVISION= 3
CATEGORIES= math
MASTER_SITES= http://www.phy.duke.edu/~rgb/General/dieharder/
EXTRACT_SUFX= .tgz
MAINTAINER= bf@FreeBSD.org
COMMENT= A random number generator testsuite
LIB_DEPENDS= gsl:${PORTSDIR}/math/gsl
MAKE_JOBS_UNSAFE= yes
USE_DOS2UNIX= yes
USE_AUTOTOOLS= aclocal:111 autoheader:267 libtool:22
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
USE_LDCONFIG= yes
MAN1= dieharder.1
MAN3= libdieharder.3
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64" || ${ARCH} == "sparc64"
BROKEN= Does not compile on ia64 or sparc64
.endif
post-patch:
@${REINPLACE_CMD} -e "s|./configure|#./configure|g" \
${WRKSRC}/autogen.sh
run-autotools:
(cd ${WRKSRC}; ${SETENV} ${AUTOTOOLS_ENV} ${AUTORECONF} -ifv)
@${REINPLACE_CMD} -e "/^ltmain=/!s^\$$ac_aux_dir/ltmain.sh^${LIBTOOLFLAGS} ${LTMAIN}^g" \
-e '/^LIBTOOL=/s^\$$(top_builddir)/libtool^${LIBTOOL}^g' \
${WRKSRC}/configure
test: build
${WRKSRC}/dieharder/dieharder -a
.include <bsd.port.post.mk>
|