Portfile

# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name py-ao
version 0.81
revision 2
categories python audio
platforms darwin
maintainers nomaintainer@macports.org
description Python interface to libao, an audio device abstraction library
long_description This is a wrapper for libao, an audio device \
abstraction library. libao is available with \
ogg/vorbis.

homepage http://www.vorbis.com/
master_sites ${homepage}/files/1.0.1/unix/py/
distname pyao-${version}
checksums md5 398069a5c5b2429e18e0461d7129d21a

depends_lib-append lib:libao:libao

patch {
reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/config_unix.py
}

use_configure yes
configure.cmd ${python.bin} config_unix.py

post-destroot {
xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README \
${destroot}${prefix}/share/doc/${name}
cd ${destroot}${prefix}/lib/python2.4/site-packages/
file rename aomodule.so ao.so
}