Ticket #32804: Portfile

File Portfile, 1.2 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)

f2c portfile which actually only installs libf2c

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