mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
clean up pkg-descr and correct WWW; while here, switch to
the new options format
This commit is contained in:
parent
980b67f354
commit
5f58d65d7c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300887
2 changed files with 29 additions and 29 deletions
|
@ -15,13 +15,6 @@ MASTER_SITE_SUBDIR= mcmc-jags/JAGS/${S}.x/Source/:1 \
|
||||||
mcmc-jags/Manuals/2.x/:3 \
|
mcmc-jags/Manuals/2.x/:3 \
|
||||||
mcmc-jags/Manuals/${S}.x/:4
|
mcmc-jags/Manuals/${S}.x/:4
|
||||||
DISTFILES= JAGS-${PORTVERSION}${EXTRACT_SUFX}:1
|
DISTFILES= JAGS-${PORTVERSION}${EXTRACT_SUFX}:1
|
||||||
.if !defined(NOPORTDOCS) || make(makesum)
|
|
||||||
DISTFILES+= jags_developer_manual.pdf:3 jags_installation_manual.pdf:4 \
|
|
||||||
jags_user_manual.pdf:4
|
|
||||||
.endif
|
|
||||||
.if !defined(NOPORTEXAMPLES) || make(makesum)
|
|
||||||
DISTFILES+= classic-bugs.tar.gz:2
|
|
||||||
.endif
|
|
||||||
EXTRACT_ONLY= ${DISTFILES:M*[12]:C|:.*||}
|
EXTRACT_ONLY= ${DISTFILES:M*[12]:C|:.*||}
|
||||||
|
|
||||||
MAINTAINER= bf@FreeBSD.org
|
MAINTAINER= bf@FreeBSD.org
|
||||||
|
@ -40,29 +33,38 @@ WRKSRC= ${WRKDIR}/JAGS-${PORTVERSION}
|
||||||
CPPFLAGS+= -I${LOCALBASE}/include
|
CPPFLAGS+= -I${LOCALBASE}/include
|
||||||
LDFLAGS+= -L${LOCALBASE}/lib
|
LDFLAGS+= -L${LOCALBASE}/lib
|
||||||
MAN1= jags.1
|
MAN1= jags.1
|
||||||
OPTIONS= ATLAS "use ATLAS libraries instead of BLAS and LAPACK" off
|
|
||||||
PLIST_SUB= MODULEVERSION=${S}
|
PLIST_SUB= MODULEVERSION=${S}
|
||||||
S= ${PORTVERSION:C|\..*||}
|
S= ${PORTVERSION:C|\..*||}
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
.if defined(WITH_ATLAS)
|
.if ${PORT_OPTIONS:MDOCS} || make(makesum)
|
||||||
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
|
DISTFILES+= jags_developer_manual.pdf:3 jags_installation_manual.pdf:4 \
|
||||||
CONFIGURE_ARGS= --with-lapack="-lalapack -lptcblas" --with-blas="-lptf77blas"
|
jags_user_manual.pdf:4
|
||||||
.else
|
|
||||||
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
|
|
||||||
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
|
|
||||||
CONFIGURE_ARGS= --with-lapack="-llapack" --with-blas="-lblas"
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
PORTDOCS= ${DISTFILES:M*[34]:C|:.*||}
|
PORTDOCS= ${DISTFILES:M*[34]:C|:.*||}
|
||||||
.endif
|
.endif
|
||||||
|
.if ${PORT_OPTIONS:MEXAMPLES} || make(makesum)
|
||||||
.if !defined(NOPORTEXAMPLES)
|
DISTFILES+= classic-bugs.tar.gz:2
|
||||||
PORTEXAMPLES= *
|
PORTEXAMPLES= *
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if exists(${LOCALBASE}/lib/libatlas.so)
|
||||||
|
WITH_BLAS?= atlas
|
||||||
|
.else
|
||||||
|
WITH_BLAS?= reference
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if ${WITH_BLAS} == "atlas"
|
||||||
|
LIB_DEPENDS+= atlas:${PORTSDIR}/math/atlas
|
||||||
|
CONFIGURE_ARGS= --with-lapack="-lalapack -lptcblas" --with-blas="-lptf77blas"
|
||||||
|
.elif ${WITH_BLAS} == "reference"
|
||||||
|
LIB_DEPENDS+= blas:${PORTSDIR}/math/blas
|
||||||
|
LIB_DEPENDS+= lapack:${PORTSDIR}/math/lapack
|
||||||
|
CONFIGURE_ARGS= --with-lapack="-llapack" --with-blas="-lblas"
|
||||||
|
.else
|
||||||
|
IGNORE = : invalid value for WITH_BLAS: ${WITH_BLAS}
|
||||||
|
.endif
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \
|
@${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \
|
||||||
${WRKSRC}/etc/Makefile.in
|
${WRKSRC}/etc/Makefile.in
|
||||||
|
@ -73,17 +75,17 @@ post-patch:
|
||||||
-e '/@WINDOWS_FALSE@.*rm -f jags/s/jags/mcmc-&/' \
|
-e '/@WINDOWS_FALSE@.*rm -f jags/s/jags/mcmc-&/' \
|
||||||
-e '/@WINDOWS_FALSE@.*mv jags.tmp jags/s/jags/mcmc-&/2' \
|
-e '/@WINDOWS_FALSE@.*mv jags.tmp jags/s/jags/mcmc-&/2' \
|
||||||
${WRKSRC}/src/terminal/Makefile.in
|
${WRKSRC}/src/terminal/Makefile.in
|
||||||
.if !defined(NOPORTEXAMPLES)
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||||
@${SED} -i '' -e '\|JAGS ?=|{s|jags|mcmc-&|;s|/usr/local|${PREFIX}|;}' \
|
@${SED} -i '' -e '\|JAGS ?=|{s|jags|mcmc-&|;s|/usr/local|${PREFIX}|;}' \
|
||||||
${WRKDIR}/classic-bugs/vol[12]/Makefile
|
${WRKDIR}/classic-bugs/vol[12]/Makefile
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if !defined(NOPORTDOCS)
|
.if ${PORT_OPTIONS:MDOCS}
|
||||||
@${MKDIR} ${DOCSDIR}
|
@${MKDIR} ${DOCSDIR}
|
||||||
@cd ${_DISTDIR}; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
@cd ${_DISTDIR}; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
||||||
.endif
|
.endif
|
||||||
.if !defined(NOPORTEXAMPLES)
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||||
@${MKDIR} ${EXAMPLESDIR}
|
@${MKDIR} ${EXAMPLESDIR}
|
||||||
@cd ${WRKDIR}/classic-bugs; ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
|
@cd ${WRKDIR}/classic-bugs; ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
|
||||||
.endif
|
.endif
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
JAGS is Just Another Gibbs Sampler -- a program for analysis of
|
JAGS is Just Another Gibbs Sampler -- a program for analysis of
|
||||||
Bayesian hierarchical models using Gibbs sampling not wholly unlike BUGS.
|
Bayesian hierarchical models using Markov Chain Monte Carlo (MCMC)
|
||||||
|
simulation.
|
||||||
|
|
||||||
The functionality of JAGS is based on the BUGS program created by the
|
The functionality of JAGS is based on the BUGS program created by the
|
||||||
MRC Biostatistics Unit (http://www.mrc-bsu.cam.ac.uk/). There is a short
|
MRC Biostatistics Unit (http://www.mrc-bsu.cam.ac.uk/). There is a short
|
||||||
manual that describes the differences between JAGS and BUGS.
|
manual that describes the differences between JAGS and BUGS.
|
||||||
|
|
||||||
The manual is installed as /usr/local/share/doc/jags/jags_user_manual.pdf.
|
|
||||||
|
|
||||||
Some of the BUGS examples have been modified to run with JAGS, and have
|
Some of the BUGS examples have been modified to run with JAGS, and have
|
||||||
been turned into a test suite. They are installed under
|
been turned into a test suite.
|
||||||
/usr/local/share/examples/jags/.
|
|
||||||
|
|
||||||
WWW: http://www-fis.iarc.fr/~martyn/software/jags/
|
WWW: http://mcmc-jags.sourceforge.net/
|
||||||
|
|
Loading…
Add table
Reference in a new issue