Ticket #21767: Portfile

File Portfile, 1.8 KB (added by yves@…, 14 years ago)

Another solution : remove the args in configure

Line 
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
4PortSystem              1.0
5
6name                    aubio
7version                 0.3.2
8revision                1
9categories              audio
10maintainers             devans openmaintainer
11platforms               darwin
12use_parallel_build      yes
13homepage                http://aubio.piem.org/
14
15description             audio labeling library
16long_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
22master_sites            ${homepage}pub/
23checksums               md5 ffc3e5e4880fec67064f043252263a44
24depends_lib             port:fftw-3 \
25                        port:libsamplerate \
26                        port:python25
27
28configure.args          --disable-alsa \
29                        --disable-jack \
30                        --disable-lash
31
32configure.python        ${prefix}/bin/python2.5
33
34platform darwin 10 {
35    post-patch { reinplace "s| -Wno-long-double||g" ${worksrcpath}/configure }
36}
37
38post-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
44variant 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
50livecheck.type  regex
51livecheck.url   ${master_sites}
52livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
53