# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id: Portfile 33297 2008-01-23 09:32:47Z ryandesign@macports.org $ PortSystem 1.0 name gsl version 1.10 categories math science maintainers openmaintainer jochen 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 d67be4f2e5560d6cf907e18a428becdc \ sha1 401d0203d362948e30d0b3c58601a3bc52d0bfd4 \ rmd160 0b6ac2b1aec6a93521941620a824ae78f79adebb platforms darwin # Lower optimization level (-O1) is required to avoid code generation # bugs in Apple's gcc 3.3 and earlier. platform darwin 6 7 { configure.cflags-append "-O1" } configure.args --mandir=${prefix}/share/man --infodir=${prefix}/share/info depends_build port:texinfo test.run yes test.target check post-install { 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 port:texinfo bin:latex:teTeX post-destroot { cd ${worksrcpath} system "make dvi" cd ${worksrcpath}/doc system "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} cd ${worksrcpath}/doc system "latex fftalgorithms" system "bibtex fftalgorithms" system "latex fftalgorithms" system "latex fftalgorithms" system "dvipdf fftalgorithms.dvi fftalgorithms.pdf" xinstall -c -m 644 ${worksrcpath}/doc/fftalgorithms.pdf ${destroot}${prefix}/share/doc/${name} cd ${worksrcpath} system "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 } }