# $Id: Portfile 41306 2008-10-30 08:11:22Z pguyot@kallisys.net $

PortSystem      1.0

name            audiofile
version         0.2.6
revision        2
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 9c1049876cd51c0f1b12c2886cce4d42 \
                sha1 94a6ab8e5122bc1971cf186e5a52d032811c9bc5 \
                rmd160 b61fbc856768a5838ca5c0fad602f35205e8d037

depends_build   port:libtool

patchfiles	    patch-audiofile.m4.diff

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 {
    if {[variant_isset universal]} {
        file delete ${worksrcpath}/libtool
        file link -s ${worksrcpath}/libtool ${prefix}/bin/glibtool
    }
}

livecheck.check regex
livecheck.regex {Version (\d+(?:\.\d+)*)}
