source: trunk/dports/science/sparskit/Portfile

Last change on this file was 130949, checked in by sean@…, 3 years ago

compilers-1.0: set default fortran variant in the portgroup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 130949 2015-01-04 06:00:49Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           compilers 1.0
6
7name                sparskit
8version             2
9categories          science
10platforms           darwin
11maintainers         dstrubbe
12license             LGPL-2.1+
13
14description         A basic tool-kit for sparse matrix computations
15
16long_description    A basic tool-kit for sparse matrix computations: programs \
17                    for converting data structures, printing simple \
18                    statistics on a matrix, plotting a matrix profile, \
19                    performing basic linear algebra operations with sparse \
20                    matrices and so on.
21
22homepage            http://www-users.cs.umn.edu/~saad/software/SPARSKIT
23master_sites        ${homepage}
24distname            SPARSKIT${version}
25
26checksums           rmd160  95554593896300d7823f40956a428e8e7c57bb78 \
27                    sha1    702bb646024f62fafbd827aa29d4f8994a74b90a
28
29use_configure       no
30
31patchfiles          patch-makefile.diff \
32                    patch-INFO-makefile.diff \
33                    patch-INOUT-makefile.diff \
34                    patch-MATGEN-FEM-makefile.diff
35
36compilers.choose    fc
37compilers.setup     require_fortran
38
39build.args          OPT="-c -O3"
40
41use_parallel_build  yes
42
43test.run            yes
44test.args           FFLAGS=-O3
45# test requires FC, FFLAGS set because test makefiles lack explicit rule for .f -> .o and these are in the implicit rule
46
47post-fetch {
48    build.args-append  F77=${configure.fc}
49    test.args-append   F77=${configure.fc} FC=${configure.fc}
50}
51
52destroot {
53    xinstall ${worksrcpath}/libskit.a ${destroot}${prefix}/lib/
54}
55
56post-test {
57    ui_notice "Examine log file for test results."
58}
59
60livecheck.type      regex
61livecheck.url       [lindex ${master_sites} 0]
62livecheck.regex     SPARSKIT(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.