source: trunk/dports/python/py-mad/Portfile @ 38289

Last change on this file since 38289 was 38289, checked in by ryandesign@…, 12 years ago

Undo r38082 because the affected ports are in the xcode, gnustep, python24 and python25 portgroups where the default for use_configure is no. Thanks to Bryan Blackburn for pointing this out.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1# $Id: Portfile 38289 2008-07-15 04:06:14Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python24 1.0
5
6name                    py-mad
7version                 0.5.1
8revision                2
9categories              python audio
10platforms               darwin
11maintainers             nomaintainer
12description             python interface to the MPEG Audio Decoder library
13long_description        pymad is a Python module that allows Python programs \
14                                to use the MPEG Audio Decoder library. pymad provides \
15                                a high-level API, similar to the pyogg module, which \
16                                makes reading PCM data from MPEG audio streams a piece \
17                                of cake.
18
19homepage                http://spacepants.org/src/pymad/
20master_sites    ${homepage}/download/
21distname                pymad-${version}
22checksums               md5 9b9a6c77d1b7a7706e77fd2e7e964c01
23
24depends_lib-append      lib:libmad:libmad \
25                                port:py-ao
26
27patch   {
28        reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/config_unix.py
29}
30
31use_configure   yes
32configure.cmd   ${python.bin} config_unix.py
33
34post-destroot   {
35        xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING NEWS README THANKS \
36                ${destroot}${prefix}/share/doc/${name}
37        file rename ${destroot}${prefix}/lib/python2.4/site-packages/madmodule.so ${destroot}${prefix}/lib/python2.4/site-packages/mad.so
38}
Note: See TracBrowser for help on using the repository browser.