source: trunk/dports/math/svdlibc/Portfile

Last change on this file was 140802, checked in by ryandesign@…, 2 years ago

svdlibc: update to 1.4; add universal variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 140802 2015-10-03 11:47:17Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                svdlibc
7version             1.4
8license             BSD
9maintainers         nomaintainer
10
11categories          math science
12description         SVDLIBC is a C library to perform singular value decomposition
13long_description    SVDLIBC is a C library based on the SVDPACKC library. It offers a \
14                    cleaned-up version of the code with a sane library interface and a \
15                    front-end executable that performs matrix file type conversions, along \
16                    with computing singular value decompositions. Currently the only SVDPACKC \
17                    algorithm implemented in SVDLIBC is las2, because it seems to be \
18                    consistently the fastest.
19
20platforms           darwin
21
22homepage            http://tedlab.mit.edu/~dr/SVDLIBC/
23master_sites        ${homepage}
24dist_subdir         ${name}/${version}
25distname            ${name}
26extract.suffix      .tgz
27worksrcdir          SVDLIBC
28
29checksums           md5     1b644ab4a3df72d6d0a1aeccb93ac503 \
30                    sha1    9243fbc0516af42b020423442212a025b3406dac \
31                    rmd160  3ef133f8ccd9cb1659c11c7692e148709aca7431
32
33use_configure       no
34
35variant universal {}
36
37configure.cflags-append -Wall -fno-common
38
39set hosttype        bin
40build.env-append    HOSTTYPE='${hosttype}'
41build.target        svd
42build.args          CC="${configure.cc} ${configure.cflags} [get_canonical_archflags cc]"
43
44destroot {
45    xinstall -m 644 ${worksrcpath}/${hosttype}/libsvd.a ${destroot}${prefix}/lib
46    xinstall -m 755 ${worksrcpath}/${hosttype}/svd ${destroot}${prefix}/bin
47    foreach h {svdutil.h svdlib.h} {
48        xinstall -m 644 ${worksrcpath}/${h} ${destroot}${prefix}/include
49    }
50
51    # Documentation
52    set docdir ${prefix}/share/doc/${subport}
53    xinstall -d ${destroot}${docdir}
54    copy {*}[glob ${worksrcpath}/Manual/*] ${destroot}${docdir}
55    delete ${destroot}${docdir}/svdlib.h
56}
57
58livecheck.type    regexm
59livecheck.regex   Version Notes</h3>\n\n<table>\n<tr><td valign=top><b>(\[0-9.\]+)
Note: See TracBrowser for help on using the repository browser.