Ticket #46234: Portfile

File Portfile, 1.5 KB (added by aque (Allan Que), 8 years ago)

update to 0.6.7 and use the compilers PortGroup to pull the fortran requirement

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
5PortGroup           compilers 1.0
6
7name                voacapl
8version             0.6.7
9categories          science
10platforms           darwin
11license             Permissive
12maintainers         gmail.com:allan.que openmaintainer
13description         HF radio propagation prediction and ionospheric communications analysis
14long_description    Voice of America Coverage Analysis Program - free professional \
15                    HF propagation prediction software from NTIA/ITS, originally \
16                    developed for Voice of America (VOA)
17homepage            http://www.voacap.com
18master_sites        http://www.qsl.net/hz1jw/voacapl/downloads/
19
20checksums           rmd160  f882ff16cbc61431ec5450d093f444e47e918b74 \
21                    sha256  a55afe8d10728573b147dfd6e73dc87a1e81d281c60547f5a800a2220e699278
22
23compilers.choose    f77
24compilers.setup     require_fortran
25
26patch {
27    reinplace "s|echo \$SRC_ROOT_DIR||" ${worksrcpath}/makeitshfbc
28}
29
30post-configure {
31    # install bombs out due to the length of the destination path
32    # switch to relative directories
33    # starting from parent of the working directory
34    reinplace "s|\$(DESTDIR)\/\$(datadir)\/voacapl\/|../destroot${prefix}/share/voacapl\/|g" \
35        ${worksrcpath}/Makefile
36}
37
38notes "Run \'makeitshfbc\' to create the ~/itshfbc directory structure."