# -*- 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

PortSystem      1.0

name            fort77
version         1.18
revision        0
categories      lang devel
platforms       darwin
# According to https://sources.debian.org/src/fort77/1.15-11.1/debian/copyright/
license         public-domain
maintainers     {@kamischi web.de:karl-michael.schindler} openmaintainer
homepage        https://www.ibiblio.org/pub/Linux/devel/lang/fortran/
master_sites    https://www.ibiblio.org/pub/Linux/devel/lang/fortran/
checksums       rmd160  9748f9e068b8071a5b89009bfdb533ee2a9b0c11 \
                sha256  bfb3d054b92f97c63bdeb4bd31193824d8ab0469b47aed7d43ec5a66368e097d \
                size    6562

description     Wrapper for the f2c Fortran to C converter

long_description \
    fort77 compiles Fortran, C and assembler code and links with the f2c \
    libraries. It behaves like a 'real' fortran compiler and accepts more \
    options than shell-script 'fc' included in f2c package.

depends_lib         port:f2c port:libf2c

patchfiles      fort77.patch
patch.pre_args-replace  -p0 -p1
post-patch {
    reinplace "s|<PREFIX>|${prefix}|g"  ${worksrcpath}/fort77
}

destroot.args   PREFIX=${destroot}${prefix}

use_configure   no
build           {}
