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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup compilers 1.0 |
---|
6 | PortGroup github 1.0 |
---|
7 | |
---|
8 | github.setup reinh-bader fgsl 1.1.0 v |
---|
9 | name fgsl |
---|
10 | categories math science |
---|
11 | maintainers takeshi |
---|
12 | license GPL-2 |
---|
13 | description Fortran interface to the GNU scientific library |
---|
14 | long_description \ |
---|
15 | A portable, object-based Fortran interface to the GNU scientific library, \ |
---|
16 | a collection of numerical routines for scientific computing. |
---|
17 | homepage http://www.lrz.de/services/software/mathematik/gsl/fortran/ |
---|
18 | platforms darwin |
---|
19 | checksums md5 a1ea4b72a986dd6cadafc78e30d65340 \ |
---|
20 | sha1 83f62595a8a70c749da62159816ac06f87b75a77 \ |
---|
21 | rmd160 0408c7ca3670996a88b3503231970685a48dea98 |
---|
22 | depends_lib port:gsl |
---|
23 | use_parallel_build no |
---|
24 | universal_variant no |
---|
25 | |
---|
26 | compilers.choose fc |
---|
27 | compilers.setup require_fortran -gfortran |
---|
28 | |
---|
29 | pre-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 | |
---|
38 | destroot.args-append fgsl_exampledir=${prefix}/share/${name}/examples \ |
---|
39 | fgsl_docdir=${prefix}/share/doc/${name} \ |
---|
40 | fgsl_doc2dir=${prefix}/share/doc/${name}/html |
---|