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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup compilers 1.0 |
---|
6 | |
---|
7 | name slatec |
---|
8 | version 4.1 |
---|
9 | categories science math |
---|
10 | platforms darwin |
---|
11 | maintainers gmail.com:sebastien.maret |
---|
12 | license public-domain |
---|
13 | |
---|
14 | description Common Mathematical Library |
---|
15 | |
---|
16 | long_description SLATEC Common Mathematical Library is a comprehensive software library \ |
---|
17 | containing over 1400 general purpose mathematical and statistical routines \ |
---|
18 | written in Fortran 77. |
---|
19 | |
---|
20 | homepage http://www.netlib.org/slatec/ |
---|
21 | master_sites http://www.netlib.org/slatec/ |
---|
22 | distname slatec_src |
---|
23 | extract.suffix .tgz |
---|
24 | worksrcdir src |
---|
25 | patchfiles patch-slatec4linux.diff |
---|
26 | |
---|
27 | checksums sha256 df009d9ef9c18aae06ce68711b1ae108d3533b4f174582c3cbea0915c4fdfe01 |
---|
28 | |
---|
29 | use_configure no |
---|
30 | |
---|
31 | compilers.choose fc f77 f90 |
---|
32 | compilers.setup require_fortran |
---|
33 | |
---|
34 | if {![fortran_variant_isset]} { |
---|
35 | default_variants-append +gcc48 |
---|
36 | } |
---|
37 | |
---|
38 | post-fetch { |
---|
39 | build.args-append FC=${configure.fc} |
---|
40 | } |
---|
41 | |
---|
42 | build.target libslatec.a |
---|
43 | |
---|
44 | destroot { |
---|
45 | xinstall -m 644 ${worksrcpath}/static/libslatec.a ${destroot}${prefix}/lib |
---|
46 | } |
---|