Ticket #49436: Portfile-jags.diff
File Portfile-jags.diff, 3.5 KB (added by dstrubbe (David Strubbe), 9 years ago) |
---|
-
Portfile
2 2 # $Id$ 3 3 4 4 PortSystem 1.0 5 PortGroup compilers 1.0 5 6 6 7 name jags 7 version 3.3.0 8 revision 1 8 version 4.0.0 9 9 set major [lindex [split ${version} .] 0] 10 10 categories science 11 license GPL-2 11 12 platforms darwin 12 maintainers uchicago.edu:dmeliza 13 maintainers uchicago.edu:dmeliza openmaintainer 13 14 description Just Another Gibbs Sampler 14 15 long_description JAGS is a program for analysis of Bayesian hierarchical \ 15 models using Markov Chain Monte Carlo (MCMC) simulation \16 models using Markov Chain Monte Carlo (MCMC) simulation, \ 16 17 not wholly unlike BUGS. 17 18 homepage http://mcmc-jags.sourceforge.net/ 18 19 master_sites sourceforge:project/mcmc-jags/JAGS/${major}.x/Source 19 20 distname JAGS-${version} 20 21 21 checksums rmd160 7ddefa48dd9b3c837a69e7f0c17da7a5724da87f\22 sha256 8a3755c8e8cd5a2d68a465d56f054f1380fa7e2b602bfe65d360eb23e5b6101a22 checksums rmd160 21b82152f8a112f5dc1544a46396c6758207c1a2 \ 23 sha256 a1d572269029d90d4e8b25757fd7ae9678994bd682937ec505ddcf06185d2c4c 23 24 24 depends_build port:bison \ 25 port:libtool 25 depends_build port:libtool 26 26 27 compilers.choose cc cxx f77 28 compilers.setup require_fortran 29 27 30 universal_variant no 28 31 29 configure.args --with-blas='-framework vecLib' \ 30 --with-lapack='-framework vecLib'32 # note: BLAS/LAPACK is an optional dependency 33 configure.args --with-blas='-framework Accelerate' 31 34 32 set gcc_versions {4.3 4.4 4.5 4.6 4.7 4.8 4.9} 33 set default_fortran_variant +gcc48 35 # note: actually seems to contain source of SuiteSparse, which is another port 34 36 35 foreach ver ${gcc_versions} {36 set ver_no_dot [join [split ${ver} "."] ""]37 38 set variant_line {variant gcc${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}"}39 40 foreach over ${gcc_versions} {41 if {${ver} == ${over}} {42 continue43 }44 45 set over_no_dot [join [split ${over} "."] ""]46 append variant_line " conflicts gcc${over_no_dot}"47 }48 append variant_line { {}}49 50 eval $variant_line51 52 if {[variant_isset gcc${ver_no_dot}]} {53 if {${default_fortran_variant} != "+gcc${ver_no_dot}"} {54 set default_fortran_variant ""55 }56 }57 }58 59 if {${default_fortran_variant} != ""} {60 default_variants-append "${default_fortran_variant}"61 }62 63 foreach ver ${gcc_versions} {64 set ver_no_dot [join [split ${ver} "."] ""]65 66 if {[variant_isset gcc${ver_no_dot}]} {67 depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc68 depends_build-append port:gcc${ver_no_dot}69 70 configure.fc ${prefix}/bin/gfortran-mp-${ver}71 configure.f77 ${prefix}/bin/gfortran-mp-${ver}72 configure.f90 ${prefix}/bin/gfortran-mp-${ver}73 }74 }75 76 build.env-append CC="${configure.cc}" \77 CXX="${configure.cxx}" \78 F77="${configure.f77}"79 80 destroot.env-append CC="${configure.cc}" \81 CXX="${configure.cxx}" \82 F77="${configure.f77}"83 84 37 livecheck.type sourceforge 85 38 livecheck.name mcmc-jags 86 39 livecheck.regex /JAGS-(\[0-9.\]+)${extract.suffix}