Changeset 140802


Ignore:
Timestamp:
Oct 3, 2015, 11:47:17 AM (4 years ago)
Author:
ryandesign@…
Message:

svdlibc: update to 1.4; add universal variant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/svdlibc/Portfile

    r140793 r140802  
    55
    66name                svdlibc
    7 version             1.34
     7version             1.4
    88license             BSD
    99maintainers         nomaintainer
     
    2222homepage            http://tedlab.mit.edu/~dr/SVDLIBC/
    2323master_sites        ${homepage}
     24dist_subdir         ${name}/${version}
    2425distname            ${name}
    2526extract.suffix      .tgz
     
    3132
    3233use_configure       no
    33 universal_variant   no
    3434
    35 set hosttype        macos
     35variant universal {}
     36
     37configure.cflags-append -Wall -fno-common
     38
     39set hosttype        bin
    3640build.env-append    HOSTTYPE='${hosttype}'
    3741build.target        svd
    38  
    39 pre-build {
    40     reinplace "s|-march=i486|${configure.cc_archflags}|g" ${worksrcpath}/Makefile
    41 }
     42build.args          CC="${configure.cc} ${configure.cflags} [get_canonical_archflags cc]"
    4243
    43 # this phase fails. it appears this code does not respect destroot.
    4444destroot {
    4545    xinstall -m 644 ${worksrcpath}/${hosttype}/libsvd.a ${destroot}${prefix}/lib
     
    5050
    5151    # Documentation
    52     xinstall -m 755 -d ${destroot}${prefix}/share/${name}
    53     file copy ${worksrcpath}/Manual ${destroot}${prefix}/share/${name}
     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
    5456}
    5557
Note: See TracChangeset for help on using the changeset viewer.