aboutsummaryrefslogtreecommitdiff
path: root/math/ent/Makefile
blob: 185b0d054208d5a92d3c22ab05dd4f4f4129a222 (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
# Created by: Horia Racoviceanu <horia@racoviceanu.com>

PORTNAME=	ent
PORTVERSION=	0.20080128
PORTREVISION=	1
CATEGORIES=	math
MASTER_SITES=	http://www.fourmilab.ch/random/
DISTNAME=	random
DIST_SUBDIR=	${PORTNAME}/${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Entropy calculation and analysis of putative random sequences

USES=		compiler zip
NO_WRKSUBDIR=	yes
ALL_TARGET=	ent
PLIST_FILES=	bin/ent
TEST_TARGET=	check

PORTDOCS=	ent.html entitle.gif

OPTIONS_DEFINE=	DOCS

.include <bsd.port.pre.mk>

post-patch:
	@${REINPLACE_CMD} -e 's|gcc|${CC}|; s|^CFLAGS |&+|' ${WRKSRC}/Makefile
.if ${COMPILER_TYPE} == clang
	@${REINPLACE_CMD} -e 's|-g ||' ${WRKSRC}/Makefile
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.post.mk>