aboutsummaryrefslogtreecommitdiffstats
path: root/math/unuran/Makefile
blob: d3bb9f02d7795c7c4bd32a752b28a96dc65d8975 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# New ports collection makefile for:   unuran
# Date created:        13 November 2008
# Whom:                bf <bf2006a@yahoo.com>
#
# $FreeBSD$
#

PORTNAME=   unuran
PORTVERSION=    1.7.1
CATEGORIES= math
MASTER_SITES=   http://statmath.wu-wien.ac.at/unuran/ \
        LOCAL/wen

MAINTAINER= bf@FreeBSD.org
COMMENT=    Universal Non-Uniform RANdom number generators

LIB_DEPENDS=    rngstreams:${PORTSDIR}/math/rngstreams

USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-shared --with-urng-rngstream --with-urng-default=rngstream \
        --enable-info
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"

USE_LDCONFIG=   yes
INFO=       unuran
PORTDOCS=   unuran.pdf unuran.txt

post-patch:
    ${FIND} -X ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} -e \
        's/sinclude/#sinclude/g'

.ifndef(NOPORTDOCS)
post-install:
    @${MKDIR} ${DOCSDIR}
.for DD in ${PORTDOCS}
    @${INSTALL_DATA} ${WRKSRC}/doc/${DD} ${DOCSDIR}
.endfor
.endif

.ifdef(MAINTAINER_MODE)
CONFIGURE_ARGS+=    --enable-check-struct --enable-logging

regression-test: build
    @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} check)

fullcheck: build
    @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} fullcheck)

.endif

.include <bsd.port.mk>