Ticket #50295: Portfile-fgsl-1.1.0

File Portfile-fgsl-1.1.0, 1.6 KB (added by Russell-Jones-OxPhys (Russell Jones), 9 years ago)

Portfile for 1.1.0 with GitHub and pre-configure step added

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 130949 2015-01-04 06:00:49Z sean@macports.org $
3
4PortSystem          1.0
5PortGroup           compilers 1.0
6PortGroup           github 1.0
7
8github.setup        reinh-bader fgsl 1.1.0 v
9name                fgsl
10categories          math science
11maintainers         takeshi
12license             GPL-2
13description         Fortran interface to the GNU scientific library
14long_description \
15    A portable, object-based Fortran interface to the GNU scientific library, \
16    a collection of numerical routines for scientific computing.
17homepage          http://www.lrz.de/services/software/mathematik/gsl/fortran/
18platforms           darwin
19checksums           md5     a1ea4b72a986dd6cadafc78e30d65340 \
20                    sha1    83f62595a8a70c749da62159816ac06f87b75a77 \
21                    rmd160  0408c7ca3670996a88b3503231970685a48dea98
22depends_lib         port:gsl
23use_parallel_build  no
24universal_variant   no
25
26compilers.choose    fc
27compilers.setup     require_fortran -gfortran
28
29pre-configure {
30    configure.env FC=${configure.fc}
31    configure.env FCFLAGS=
32    configure.env gsl_LIBS=-l ${prefix}/lib
33    configure.env PKG_CONFIG_PATH=${prefix}lib/pkgconfig
34    system "cd ${worksrcpath} ; mkdir m4"
35    system "cd ${worksrcpath} ; autoreconf -i"
36}
37
38destroot.args-append    fgsl_exampledir=${prefix}/share/${name}/examples \
39                        fgsl_docdir=${prefix}/share/doc/${name} \
40                        fgsl_doc2dir=${prefix}/share/doc/${name}/html