# $Id: Portfile,v 1.1 2005/07/31 06:08:26 ben Exp $

PortSystem      1.0
name            ftidy
version	        7.2
categories      lang
maintainers     ben@opendarwin.org
description     Fortran Tidy

long_description TIDY v7.2 (ftidy) is a highly configurable FORTRAN program \
                 to indent and renumber statements, selectively change case \
                 of keywords or non-keywords, and do various other clean-up \
                 tasks on FORTRAN-77 source programs.

homepage        http://www.unb.ca/fredericton/science/chem/ajit/tidy/
master_sites    ${homepage}
distfiles       tidy72sc.zip
checksums       md5 f940dfa793408368f92af6aab535619b
extract.cmd     unzip
default_variants +gcc40

variant gcc33 {
depends_build   port:gcc33
build.cmd       g77-dp-3.3
}

variant gcc34 {
depends_build   port:gcc34
build.cmd       g77-dp-3.4
}

variant gcc40 {
depends_build   port:gcc40
build.cmd       gfortran-dp-4.0
}

variant gcc41 {
depends_build   port:gcc41
build.cmd       gfortran-dp-4.1
}

build.target    tidy.for -o ftidy

set worksrcdir  c

configure       {}

destroot        {
                cd ${worksrcpath}
                xinstall -m 755 ftidy ${destroot}${prefix}/bin/
}
