1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name aubio |
---|
7 | version 0.3.2 |
---|
8 | revision 1 |
---|
9 | categories audio |
---|
10 | maintainers devans openmaintainer |
---|
11 | platforms darwin |
---|
12 | use_parallel_build yes |
---|
13 | homepage http://aubio.piem.org/ |
---|
14 | |
---|
15 | description audio labeling library |
---|
16 | long_description \ |
---|
17 | ${name} is a library for audio labeling. \ |
---|
18 | Its features include segmenting a sound file before each of its attacks, \ |
---|
19 | performing pitch detection, \ |
---|
20 | tapping the beat and producing MIDI streams from live audio. |
---|
21 | |
---|
22 | master_sites ${homepage}pub/ |
---|
23 | checksums md5 ffc3e5e4880fec67064f043252263a44 |
---|
24 | depends_lib port:fftw-3 \ |
---|
25 | port:libsamplerate \ |
---|
26 | port:python25 |
---|
27 | |
---|
28 | configure.args --disable-alsa \ |
---|
29 | --disable-jack \ |
---|
30 | --disable-lash |
---|
31 | |
---|
32 | configure.python ${prefix}/bin/python2.5 |
---|
33 | |
---|
34 | platform darwin 10 { |
---|
35 | post-patch { reinplace "s| -Wno-long-double||g" ${worksrcpath}/configure } |
---|
36 | } |
---|
37 | |
---|
38 | post-build { |
---|
39 | # aubio's includedir is ${prefix}/include/aubio but aubio's file fft.h |
---|
40 | # includes fftw-3's fftw3.h but fftw3.h is in ${prefix}/include. |
---|
41 | reinplace {s%-I${includedir}%-I${includedir} -I${prefix}/include%} ${worksrcpath}/${name}.pc |
---|
42 | } |
---|
43 | |
---|
44 | variant python description "Enable gnuplot and python interface" { |
---|
45 | depends_lib-append port:py25-numarray \ |
---|
46 | port:swig |
---|
47 | depends_run-append port:py25-gnuplot |
---|
48 | } |
---|
49 | |
---|
50 | livecheck.type regex |
---|
51 | livecheck.url ${master_sites} |
---|
52 | livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" |
---|
53 | |
---|