Tweak math/prng version 3.0.2
[dports.git] / math / prng / Makefile
1 # Created by: bf <bf@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       prng
5 DISTVERSION=    3.0.2
6 CATEGORIES=     math
7 MASTER_SITES=   http://statistik.wu-wien.ac.at/software/prng/
8
9 MAINTAINER=     bf@FreeBSD.org
10 COMMENT=        Portable, high-performance ANSI-C pseudorandom number generators
11
12 LICENSE=        GPLv2
13
14 CFLAGS+=        -fgnu89-inline
15 GNU_CONFIGURE=  yes
16 INFO=   prng
17 PLIST_FILES=    include/prng.h lib/libprng.a
18 PORTDOCS=       prng.dvi prng.pdf prng.ps prng.txt
19 PORTEXAMPLES=   Makefile pairs.c tuples.c
20
21 NO_STAGE=       yes
22 post-install:
23 .if !defined(NOPORTDOCS)
24         ${MKDIR} ${DOCSDIR}
25 .for _d in ${PORTDOCS}
26         ${INSTALL_MAN} ${WRKSRC}/doc/${_d} ${DOCSDIR}
27 .endfor
28 .endif
29 .if !defined(NOPORTEXAMPLES)
30         ${MKDIR} ${EXAMPLESDIR}
31 .for _e in ${PORTEXAMPLES}
32         ${INSTALL_DATA} ${WRKSRC}/examples/${_e} ${EXAMPLESDIR}
33 .endfor
34 .endif
35
36 check regression-test test: build
37         @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} \
38                 ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} check)
39
40 .include <bsd.port.mk>