1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Add USES=compiler, needed for clang patch

- Add DOCS to Options
- Change REINPLACE, CC and CFLAGS
- Remove unused -g CFLAGS for clang
- Bump PORTREVISION

PR:		ports/187671
Submitted by:	Horia Racoviceanu <horia@racoviceanu.com> (maintainer)
This commit is contained in:
Steve Wills 2014-03-18 14:58:23 +00:00
parent 3b55b2d6d3
commit eff58e73b2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348565

View File

@ -3,6 +3,7 @@
PORTNAME= ent
PORTVERSION= 0.20080128
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= http://www.fourmilab.ch/random/
DISTNAME= random
@ -11,19 +12,30 @@ DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
MAINTAINER= horia@racoviceanu.com
COMMENT= Entropy calculation and analysis of putative random sequences
USES= zip
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 '/CC = /d' -e '/CFLAGS = /s,$$, ${CFLAGS},' \
${WRKSRC}/Makefile
${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
.include <bsd.port.mk>
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>