Fgsl version 0.9 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 0.9

      View the most recent changes for the fgsl port at: fgsl.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for fgsl.
      The raw portfile for fgsl 0.9 is located here:
      http://fgsl.darwinports.com/dports/math/fgsl/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/fgsl


      The fgsl Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: fgsl
      Version: 0.9
      Category: 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/
      Platform: 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.type regex
      livecheck.url ${homepage}
      livecheck.regex {Download .*version ([0-9]+\.[0-9]+\.*[0-9]*)}

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/fgsl
      % sudo port install fgsl
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching fgsl
      ---> Verifying checksum for fgsl
      ---> Extracting fgsl
      ---> Configuring fgsl
      ---> Building fgsl with target all
      ---> Staging fgsl into destroot
      ---> Installing fgsl
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using fgsl with these commands:
      %  man fgsl
      % apropos fgsl
      % which fgsl
      % locate fgsl

     Where to find more information:

    Darwin Ports



    Lightbox this page.