source: trunk/dports/lang/libf2c/Portfile

Last change on this file was 115105, checked in by ryandesign@…, 4 years ago

libf2c: update to 20130913; add openmaintainer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
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: Portfile 115105 2013-12-25 06:40:27Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libf2c
7version             20130913
8categories          lang
9platforms           darwin
10maintainers         ryandesign openmaintainer
11
12description         library to which you must link code you have converted from Fortran to C using f2c
13
14long_description    ${name} is the ${description}.
15
16homepage            http://www.netlib.org/f2c/
17master_sites        ${homepage}
18dist_subdir         ${name}/${version}
19distname            ${name}
20use_zip             yes
21
22checksums           rmd160  ccd16eefd29dc6c32df0a2ff87bf0d7cec58eb0c \
23                    sha256  5dff29c58b428fa00cd36b1220e2d71b9882a658fdec1aa094fb7e6e482d6765
24
25extract.mkdir       yes
26
27patchfiles          patch-makefile.u.diff
28
29use_configure       no
30
31variant universal {}
32
33build.args          -f makefile.u \
34                    CC="${configure.cc} [get_canonical_archflags cc]" \
35                    CFLAGS="${configure.cflags}"
36
37pre-build {
38    system -W ${worksrcpath} "${build.cmd} [join ${build.args}] hadd"
39}
40
41destroot.args       [join ${build.args}]
42destroot.destdir    LIBDIR=${destroot}${prefix}/lib
43
44post-destroot {
45    xinstall -m 644 ${worksrcpath}/f2c.h ${destroot}${prefix}/include
46}
47
48livecheck.type      moddate
49livecheck.url       [lindex ${master_sites} 0]${distfiles}
Note: See TracBrowser for help on using the repository browser.