- Add LICENSE

- Switch to new test framework
- Style fixes
- Strip library
- Switch to options helpers
This commit is contained in:
Dmitry Marakasov 2016-06-29 19:35:48 +00:00
parent 3ab77007b6
commit fa592f7c63
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=417790

View file

@ -3,38 +3,45 @@
PORTNAME= rngstreams PORTNAME= rngstreams
PORTVERSION= 1.0.1 PORTVERSION= 1.0.1
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= math CATEGORIES= math
MASTER_SITES= http://statmath.wu-wien.ac.at/software/RngStreams/ MASTER_SITES= http://statmath.wu-wien.ac.at/software/RngStreams/
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= C implementation of a high-quality uniform random number generator COMMENT= C implementation of a high-quality uniform random number generator
LICENSE= GPLv2+ # code says GPLv2+, COPYING is GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= libtool USES= libtool
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-shared CONFIGURE_ARGS= --enable-shared
USE_LDCONFIG= yes USE_LDCONFIG= yes
PLIST_FILES= lib/librngstreams.a \ TEST_TARGET= check
lib/librngstreams.so.0.0.0 \
lib/librngstreams.so.0 \ PLIST_FILES= include/RngStream.h \
lib/librngstreams.a \
lib/librngstreams.so \ lib/librngstreams.so \
include/RngStream.h lib/librngstreams.so.0 \
lib/librngstreams.so.0.0.0
PORTDOCS= rngstreams.txt PORTDOCS= rngstreams.txt
PORTEXAMPLES= example1.c PORTEXAMPLES= example1.c
OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_DEFINE= DOCS EXAMPLES
post-install: post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/librngstreams.so
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for DD in ${PORTDOCS} .for DD in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/doc/${DD} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/${DD} ${STAGEDIR}${DOCSDIR}
.endfor .endfor
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for EE in ${PORTEXAMPLES} .for EE in ${PORTEXAMPLES}
@${INSTALL_DATA} ${WRKSRC}/examples/${EE} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/${EE} ${STAGEDIR}${EXAMPLESDIR}
.endfor .endfor
regression-test: build
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} check)
.include <bsd.port.mk> .include <bsd.port.mk>