freebsd-ports/math/diehard/Makefile
Baptiste Daroussin 27131af048 Reassign skv@ ports to the heap
Feature safe:	yes
2013-04-22 13:27:47 +00:00

37 lines
954 B
Makefile

# Created by: Sergey Skvortsov <skv@protey.ru>
# $FreeBSD$
PORTNAME= diehard
PORTVERSION= 0.1
CATEGORIES= math
MASTER_SITES= http://www.cs.hku.hk/~diehard/cdrom/ \
http://stat.fsu.edu/pub/diehard/
DISTNAME= die.c
MAINTAINER= ports@FreeBSD.org
COMMENT= Marsaglia's Diehard Battery of Tests of Randomness
ALL_TARGET= diehard
WRKSRC= ${WRKDIR}/${DISTNAME}
PLIST_SUB= DOCSDIR="share/doc/${PORTNAME}" DATADIR="share/${PORTNAME}"
DOCSLIST= NOTES readme
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 ${PREFIX}/bin
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/operm5.cov ${DATADIR}
post-install:
.ifndef(NOPORTDOCS)
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${DOCSLIST:S!^!${WRKSRC}/!} ${DOCSDIR}
.endif
.include <bsd.port.mk>