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 | |
---|
6 | name f2c |
---|
7 | version 20110801 |
---|
8 | categories lang |
---|
9 | platforms darwin |
---|
10 | maintainers ryandesign |
---|
11 | |
---|
12 | homepage http://www.netlib.org/f2c/ |
---|
13 | master_sites ${homepage} |
---|
14 | dist_subdir ${name}/${version} |
---|
15 | distname libf2c |
---|
16 | use_zip yes |
---|
17 | |
---|
18 | checksums rmd160 dfff83383f3ffc2d290d4a206dfc92abcd171050 \ |
---|
19 | sha256 f13c01421e9668dc86c78159d87c2f802dd1f8e62037834285c7ab77200d97d5 |
---|
20 | |
---|
21 | extract.mkdir yes |
---|
22 | |
---|
23 | patchfiles patch-makefile.u.diff |
---|
24 | |
---|
25 | use_configure no |
---|
26 | |
---|
27 | variant universal {} |
---|
28 | |
---|
29 | build.args -f makefile.u \ |
---|
30 | CC="${configure.cc} [get_canonical_archflags cc]" \ |
---|
31 | CFLAGS="${configure.cflags}" |
---|
32 | |
---|
33 | pre-build { |
---|
34 | system -W ${worksrcpath} "${build.cmd} [join ${build.args}] hadd" |
---|
35 | } |
---|
36 | |
---|
37 | destroot.args [join ${build.args}] |
---|
38 | destroot.destdir LIBDIR=${destroot}${prefix}/lib |
---|
39 | |
---|
40 | post-destroot { |
---|
41 | xinstall -m 644 ${worksrcpath}/f2c.h ${destroot}${prefix}/include |
---|
42 | } |
---|
43 | |
---|
44 | livecheck.type moddate |
---|
45 | livecheck.url [lindex ${master_sites} 0]${distfiles} |
---|