# $Id: Portfile 65283 2010-03-25 00:24:27Z ryandesign@macports.org $

PortSystem      1.0

name            audiofile
version         0.2.7
categories      audio
platforms       darwin
maintainers     nomaintainer
description     Library for dealing with SGI audio files

long_description \
    The Silicon Graphics Audio File Library provides a uniform \
    programming interface to standard digital audio file formats.

homepage        http://www.68k.org/~michael/audiofile/
master_sites    ${homepage}

checksums       md5     a39be317a7b1971b408805dc5e371862 \
                sha1    1d8a5bb0ca63c7047436f136fb1fb98ea886e920 \
                rmd160  70327d38c6a9057045f5c59f67f45e2f6f9bf677

depends_build   port:libtool

configure.ccache    no

test.run        yes
test.target     check

post-destroot {
    set docdir ${prefix}/share/doc/${name}-${version}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} ACKNOWLEDGEMENTS AUTHORS COPYING \
        COPYING.GPL ChangeLog NEWS NOTES README TODO ${destroot}${docdir}
}

post-configure {
    # Bundled libtool does not understand -arch for linking
    file delete ${worksrcpath}/libtool
    file link -s ${worksrcpath}/libtool ${prefix}/bin/glibtool
}

livecheck.type  regex
livecheck.regex ${name}-(\[0-9.\]+)\\.tar
