blob: bb28931d7cac29c341479b89230a85463223a053 (
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
|
# vim: tabstop=8 softtabstop=0 noexpandtab
# Ports collection Makefile for: jags
# Date created: 21 April 2004
# Whom: Eric van Gyzen <vangyzen@stat.duke.edu>
#
# $FreeBSD$
#
PORTNAME= jags
PORTVERSION= 1.0.3
CATEGORIES= math
MASTER_SITES= http://www-fis.iarc.fr/~martyn/software/jags/
DISTNAME= ${PORTNAME:U}-${PORTVERSION}
.if !defined(NOPORTDOCS)
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} classic-bugs.tar.gz jags_user_manual.pdf
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
.endif
MAINTAINER= bf2006a@yahoo.com
COMMENT= Just Another Gibbs Sampler
LIB_DEPENDS= Rmath.0:${PORTSDIR}/math/libRmath
.if defined(WITH_ATLAS)
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
CONFIGURE_ARGS= --with-lapack=-lalapack --with-blas=-lf77blas
.else
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
CONFIGURE_ARGS= --with-lapack=-llapack --with-blas=-lblas
.endif
DIST_SUBDIR= ${PORTNAME}
GNU_CONFIGURE= yes
CONFIGURE_ENV= LDFLAGS=-L${PREFIX}/lib
USE_FORTRAN= yes
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/jags_user_manual.pdf \
${DOCSDIR}
${MKDIR} ${EXAMPLESDIR}
( cd ${EXAMPLESDIR}; \
${PAX} -rzf ${DISTDIR}/${DIST_SUBDIR}/classic-bugs.tar.gz \
-s ':^classic-bugs/*::' )
.endif
.include <bsd.port.mk>
|