# $Id: Portfile 38289 2008-07-15 04:06:14Z ryandesign@macports.org $ PortSystem 1.0 PortGroup python24 1.0 name py-mad version 0.5.1 revision 2 categories python audio platforms darwin maintainers nomaintainer description python interface to the MPEG Audio Decoder library long_description pymad is a Python module that allows Python programs \ to use the MPEG Audio Decoder library. pymad provides \ a high-level API, similar to the pyogg module, which \ makes reading PCM data from MPEG audio streams a piece \ of cake. homepage http://spacepants.org/src/pymad/ master_sites ${homepage}/download/ distname pymad-${version} checksums md5 9b9a6c77d1b7a7706e77fd2e7e964c01 depends_lib-append lib:libmad:libmad \ port:py-ao 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 NEWS README THANKS \ ${destroot}${prefix}/share/doc/${name} file rename ${destroot}${prefix}/lib/python2.4/site-packages/madmodule.so ${destroot}${prefix}/lib/python2.4/site-packages/mad.so }