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

    version 1.13

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


      # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
      The gsl Portfile 58640 2009-10-02 05:42:42Z and.damore macports.org $

      PortSystem 1.0

      Name: gsl
      Version: 1.13
      Revision: 1
      Category: math science
      Maintainers: openmaintainer jochen
      Homepage: http://www.gnu.org/software/gsl
      Description: A numerical library for C and C++ programmers
      Long Description: The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. It is free software under the GNU General Public License. The library provides a wide range of mathematical routines such as random number generators, special functions and least-squares fitting. There are over 1000 functions in total.

      Master Sites: gnu
      Checksums: md5 d9fcfa367c44ab68a25b4edf34c3c5f7 sha1 02db78b9583bc7b2a577da6f45f5dd9f23ef737e rmd160 f71507181ace425df0977a13946f12cae4b65783

      Platform: darwin
      # Lower optimization level (-O1) is required to avoid code generation
      # bugs in Apple's gcc 3.3 and earlier.
      platform darwin 7 {
      configure.cflags-append "-O1"
      }

      depends_build port:texinfo
      use_parallel_build yes

      configure.args --mandir=${prefix}/share/man --infodir=${prefix}/share/info
      test.run yes
      test.target check

      post-activate {
      system "install-info ${destroot}${prefix}/share/info/gsl-ref.info ${prefix}/share/info/dir"
      }

      Variant: doc description "Install PDF and HTML documentation" {
      depends_build port:ghostscript bin:latex:texlive
      post-destroot {
      system "cd ${worksrcpath} && make dvi"
      system "cd ${worksrcpath}/doc && dvipdf gsl-ref.dvi gsl-ref.pdf"
      xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
      xinstall -c -m 644 ${worksrcpath}/doc/gsl-ref.pdf ${destroot}${prefix}/share/doc/${name}
      system "cd ${worksrcpath}/doc && latex fftalgorithms"
      system "cd ${worksrcpath}/doc && bibtex fftalgorithms"
      system "cd ${worksrcpath}/doc && latex fftalgorithms"
      system "cd ${worksrcpath}/doc && latex fftalgorithms"
      system "cd ${worksrcpath}/doc && dvipdf fftalgorithms.dvi fftalgorithms.pdf"
      xinstall -c -m 644 ${worksrcpath}/doc/fftalgorithms.pdf ${destroot}${prefix}/share/doc/${name}
      system "cd ${worksrcpath} && make html"
      xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/html
      eval xinstall -c -m 644 [glob ${worksrcpath}/doc/gsl-ref.html/*] ${destroot}${prefix}/share/doc/${name}/html
      }
      }

      Variant: gcc43 conflicts gcc44 description "Use GCC 4.3 for compilation of GSL" {
      depends_build-append port:gcc43
      configure.compiler macports-gcc-4.3
      }

      Variant: gcc44 conflicts gcc43 description "Use GCC 4.4 for compilation of GSL" {
      depends_build-append port:gcc44
      configure.compiler macports-gcc-4.4
      }

      Variant: optimize description "Provide further optimization options (depending on compiler used)" {
      configure.cflags-append "-ftree-vectorize -O3"
      }

      platform darwin i386 {
      if { [variant_isset optimize] && ( [variant_isset gcc43] || [variant_isset gcc44] ) } {
      configure.cflags-append "-march=native"
      }
      }

    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/gsl
      % sudo port install gsl
      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 gsl
      ---> Verifying checksum for gsl
      ---> Extracting gsl
      ---> Configuring gsl
      ---> Building gsl with target all
      ---> Staging gsl into destroot
      ---> Installing gsl
    - 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 gsl with these commands:
      %  man gsl
      % apropos gsl
      % which gsl
      % locate gsl

     Where to find more information:

    Darwin Ports



    Lightbox this page.