Ticket #38977: Portfile

File Portfile, 1.7 KB (added by dstrubbe (David Strubbe), 12 years ago)
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
5
6name                sparskit
7version             2
8categories          science
9platforms           darwin
10license             LGPL-2.1+
11maintainers         gmail.com:dstrubbe
12description         A basic tool-kit for sparse matrix computations
13long_description    A basic tool-kit for sparse matrix computations: programs for converting data structures, printing simple \
14                    statistics on a matrix, plotting a matrix profile, performing basic linear algebra operations with sparse matrices and so on.
15homepage            http://www-users.cs.umn.edu/~saad/software/SPARSKIT
16master_sites        http://www-users.cs.umn.edu/~saad/software/SPARSKIT
17
18checksums           rmd160  95554593896300d7823f40956a428e8e7c57bb78 \
19                    sha1    702bb646024f62fafbd827aa29d4f8994a74b90a
20
21distfiles           SPARSKIT${version}.tar.gz
22worksrcdir          SPARSKIT${version}
23
24use_configure       no
25
26pre-build {
27    build.args      F77=${configure.f90} OPT="-c -O3"
28}
29
30use_parallel_build  yes
31
32destroot {
33    xinstall ${worksrcpath}/libskit.a  ${destroot}${prefix}/lib/
34}
35
36variant gcc46 conflicts gcc47 description {Build with GCC 4.6} {
37    configure.compiler  macports-gcc-4.6
38    depends_lib-append  port:gcc46
39}
40variant gcc47 conflicts gcc46 description {Build with GCC 4.7} {
41    configure.compiler  macports-gcc-4.7
42    depends_lib-append  port:gcc47
43}
44
45if {![variant_isset gcc46]} {
46    default_variants    +gcc47
47}
48
49livecheck.url       ${master_sites}
50livecheck.type      regex
51livecheck.regex     SPARSKIT(\[0-9.\]+)${extract.suffix}