Ticket #42887: Portfile

File Portfile, 1.2 KB (added by smaret (Sebastien Maret), 10 years ago)
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$
3
4PortSystem       1.0
5PortGroup        compilers 1.0
6
7name             slatec
8version          4.1
9categories       science math
10platforms        darwin
11maintainers      gmail.com:sebastien.maret
12license          public-domain
13
14description      Common Mathematical Library
15
16long_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
20homepage         http://www.netlib.org/slatec/
21master_sites     http://www.netlib.org/slatec/
22distname         slatec_src
23extract.suffix   .tgz
24worksrcdir       src
25patchfiles       patch-slatec4linux.diff
26
27checksums        sha256  df009d9ef9c18aae06ce68711b1ae108d3533b4f174582c3cbea0915c4fdfe01
28
29use_configure    no
30
31compilers.choose fc f77 f90
32compilers.setup  require_fortran
33
34if {![fortran_variant_isset]} {
35    default_variants-append +gcc48
36}
37       
38post-fetch {
39    build.args-append   FC=${configure.fc}
40}
41
42build.target     libslatec.a
43
44destroot {
45    xinstall -m 644 ${worksrcpath}/static/libslatec.a ${destroot}${prefix}/lib
46}