# $Id$ PortSystem 1.0 name fgsl version 0.9 categories math science maintainers takeshi description Fortran interface to the GNU scientific library long_description \ A portable, object-based Fortran interface to the GNU scientific library, \ a collection of numerical routines for scientific computing. homepage http://www.lrz-muenchen.de/services/software/mathematik/gsl/fortran/ platforms darwin master_sites ${homepage} checksums md5 98db402f679bbb634ccb5357fbbdeb0a \ sha1 6148a14fe4a1b7c64001f9bf5231ace786118562 \ rmd160 d1ab20126c0c3cfcaf283d021db599a45eddce35 depends_lib port:gsl port:g95 patch { reinplace "s| \$bits | \"\$bits\" |" ${worksrcpath}/configure reinplace "s|uname -i|uname -p|" ${worksrcpath}/configure reinplace "s|\$(PREFIX)|\$(DESTDIR)\$(PREFIX)|" ${worksrcpath}/Makefile reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/doc/usage.texi } pre-configure { # reinplace "s|gfortran|gfortran-mp-4.3|" ${worksrcpath}/configure reinplace "s|-x f95-cpp-input|\"-x f95-cpp-input\"|" ${worksrcpath}/configure } configure.pre_args-delete --prefix=${prefix} configure.args "--prefix ${prefix} --f90 g95 --gsl ${prefix}" post-destroot { xinstall -m 755 -d ${destroot}${prefix}/share/${name}/examples eval xinstall -m 644 [glob ${worksrcpath}/doc/examples/*] ${destroot}${prefix}/share/${name}/examples xinstall -m 644 ${worksrcpath}/make.inc ${destroot}${prefix}/share/${name} reinplace "s|../make.inc|make.inc|" ${destroot}${prefix}/share/${name}/examples/Makefile reinplace "s|-I../..|-I${prefix}/include/\$(F90)|" ${destroot}${prefix}/share/${name}/examples/Makefile if {[variant_isset doc]} { xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} xinstall -m 644 ${worksrcpath}/doc/fgsl-ref.pdf ${destroot}${prefix}/share/doc/${name}/ } } universal_variant no # gfortran 4.3.x does not support complex(c_double) #variant gcc43 description {build with gcc43} { # depends_build-delete port:g95 # depends_build-append port:gcc43 # configure.args "--prefix ${prefix} --f90 gfortran-mp-4.3 --gsl ${prefix}" # reinplace "s|g95|gfortran-mp-4.3|" ${worksrcpath}/doc/usage.texi #} variant doc description {typeset documentation} { depends_build-append port:texinfo bin:dvipdf:tetex post-build { system "cd ${worksrcpath}/doc/; make" } } livecheck.check regex livecheck.url ${homepage} livecheck.regex {Download .*version ([0-9]+\.[0-9]+\.*[0-9]*)}