aboutsummaryrefslogblamecommitdiff
path: root/math/ent/Makefile
blob: 197e26c6d951ffcc7a31bce291a718e8ebc5fed7 (plain) (tree)
1
2
3
4
5
6




                                                       
                 







                                                                             
                            



                       


                                    


                                                              

                          
           




                                                                             

           
                                                                         
 



                                                                         
# Created by: Horia Racoviceanu <horia@racoviceanu.com>
# $FreeBSD$

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

MAINTAINER=	horia@racoviceanu.com
COMMENT=	Entropy calculation and analysis of putative random sequences

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

PORTDOCS=	ent.html entitle.gif
OPTIONS_DEFINE=	DOCS

regression-test: build
	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check)

.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

	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.post.mk>