source: trunk/dports/perl/p5-extutils-f77/Portfile

Last change on this file was 154393, checked in by mojca@…, 12 months ago

p5-*: remove subports for perl5.22 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 154393 2016-10-28 22:10:07Z ryandesign@macports.org $
3
4# This comment was inserted on 20160713 to force reindexing of
5# this port after the default homepage definition in the perl5
6# PortGroup was changed to use metacpan.org (r150080).
7# Reindexing is necessary for the new definition to take effect.
8# This comment may be removed in subsequent updates of this port.
9
10PortSystem          1.0
11PortGroup           perl5 1.0
12
13perl5.branches      5.24
14perl5.setup         ExtUtils-F77 1.20
15license             {Artistic-1 GPL}
16maintainers         nomaintainer
17description         Helper for linking C with Fortran subroutines
18long_description    ExtUtils::F77 describes to the calling perl code how to link C programs \
19                    with Fortran subroutines on the current system.
20
21platforms           darwin
22supported_archs     noarch
23
24checksums           rmd160  61d1b69fdec18d7324cbbb982adf8a5fdbcc97e1 \
25                    sha256  c42ba548d4b274ffae1535d0ece163b3ba42dc175ee6bdc537071dc52ebbd19a
26
27if {${perl5.major} != ""} {
28
29platform darwin {
30    set lib ""
31    patchfiles-append   patch-F77.pm.diff
32    post-patch {
33        reinplace "s|@@GCCLIB@@|${lib}|g" ${worksrcpath}/F77.pm
34        reinplace "s|@@F77@@|${configure.f77}|g" ${worksrcpath}/F77.pm
35    }
36}
37
38variant gcc43 conflicts gcc45 gcc46 gcc47 gcc48 gcc49 description {Build with GFortran 4.3} {
39    configure.compiler  macports-gcc-4.3
40    set lib ${prefix}/lib/gcc43
41}
42variant gcc45 conflicts gcc43 gcc46 gcc47 gcc48 gcc49 description {Build with GFortran 4.5} {
43    configure.compiler  macports-gcc-4.5
44    set lib ${prefix}/lib/gcc45
45}
46variant gcc46 conflicts gcc43 gcc45 gcc47 gcc48 gcc49 description {Build with GFortran 4.6} {
47    configure.compiler  macports-gcc-4.6
48    set lib ${prefix}/lib/gcc46
49}
50variant gcc47 conflicts gcc43 gcc45 gcc46 gcc48 gcc49 description {Build with GFortran 4.7} {
51    configure.compiler  macports-gcc-4.7
52    set lib ${prefix}/lib/gcc47
53}
54variant gcc48 conflicts gcc43 gcc45 gcc46 gcc47 gcc49 description {Build with GFortran 4.8} {
55    configure.compiler  macports-gcc-4.8
56    set lib ${prefix}/lib/gcc48
57}
58variant gcc49 conflicts gcc43 gcc45 gcc46 gcc47 gcc48 description {Build with GFortran 4.9} {
59    configure.compiler  macports-gcc-4.9
60    set lib ${prefix}/lib/gcc49
61}
62
63
64if {![variant_isset gcc43] && ![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset gcc48]} {
65    default_variants    +gcc49
66}
67
68}
Note: See TracBrowser for help on using the repository browser.