View | Details | Raw Unified | Return to bug 187671
Collapse All | Expand All

(-)Makefile (-4 / +16 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	ent
4
PORTNAME=	ent
5
PORTVERSION=	0.20080128
5
PORTVERSION=	0.20080128
6
PORTREVISION=	1
6
CATEGORIES=	math
7
CATEGORIES=	math
7
MASTER_SITES=	http://www.fourmilab.ch/random/
8
MASTER_SITES=	http://www.fourmilab.ch/random/
8
DISTNAME=	random
9
DISTNAME=	random
Lines 11-29 Link Here
11
MAINTAINER=	horia@racoviceanu.com
12
MAINTAINER=	horia@racoviceanu.com
12
COMMENT=	Entropy calculation and analysis of putative random sequences
13
COMMENT=	Entropy calculation and analysis of putative random sequences
13
14
14
USES=		zip
15
USES=		compiler zip
15
NO_WRKSUBDIR=	yes
16
NO_WRKSUBDIR=	yes
16
ALL_TARGET=	ent
17
ALL_TARGET=	ent
17
PLIST_FILES=	bin/ent
18
PLIST_FILES=	bin/ent
18
19
20
PORTDOCS=	ent.html entitle.gif
21
OPTIONS_DEFINE=	DOCS
22
19
regression-test: build
23
regression-test: build
20
	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check)
24
	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check)
21
25
26
.include <bsd.port.pre.mk>
27
22
post-patch:
28
post-patch:
23
	${REINPLACE_CMD} -e '/CC = /d' -e '/CFLAGS = /s,$$, ${CFLAGS},' \
29
	${REINPLACE_CMD} -e 's|gcc|${CC}|; s|^CFLAGS |&+|' ${WRKSRC}/Makefile
24
		${WRKSRC}/Makefile
25
30
31
.if ${COMPILER_TYPE} == clang
32
	${REINPLACE_CMD} -e 's|-g ||' ${WRKSRC}/Makefile
33
.endif
34
26
do-install:
35
do-install:
27
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
36
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
28
37
29
.include <bsd.port.mk>
38
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
39
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
40
41
.include <bsd.port.post.mk>

Return to bug 187671