1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00
freebsd-ports/math/diehard/Makefile
2020-04-04 20:51:40 +00:00

43 lines
1023 B
Makefile

# Created by: Sergey Skvortsov <skv@protey.ru>
# $FreeBSD$
PORTNAME= diehard
PORTVERSION= 0.1
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= http://stat.fsu.edu/pub/diehard/
DISTNAME= die-c
MAINTAINER= ports@FreeBSD.org
COMMENT= Marsaglia's Diehard Battery of Tests of Randomness
BROKEN= unfetchable
DEPRECATED= Broken for more than 6 months
EXPIRATION_DATE= 2020-05-05
LICENSE= NONE
ALL_TARGET= diehard
WRKSRC= ${WRKDIR}/die.c
PLIST_SUB= DOCSDIR="share/doc/${PORTNAME}" DATADIR="share/${PORTNAME}"
DOCSLIST= NOTES readme
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|operm5\.cov|${DATADIR}/operm5.cov|g;' \
${WRKSRC}/cdoperm5.c
@${REINPLACE_CMD} -e 's|CC=gcc||g;' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/diehard ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/operm5.cov ${STAGEDIR}${DATADIR}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCSLIST:S!^!${WRKSRC}/!} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>