Ticket #47172: Portfile

File Portfile, 2.6 KB (added by RJVB (René Bertin), 10 years ago)
Line 
1# $Id: Portfile 116836 2014-02-08 12:34:59Z hum@macports.org $
2# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
3
4PortSystem          1.0
5
6name                portaudio
7version             19.20140130
8revision            1
9categories          audio devel
10platforms           darwin macosx
11maintainers         hum openmaintainer
12license             MIT
13
14description         PortAudio is a free, cross platform, open-source, audio I/O library.
15
16long_description    PortAudio is a free, cross platform, open-source, audio I/O library. \
17                    It lets you write simple audio programs in 'C' or C++ that will \
18                    compile and run on many platforms including Windows, \
19                    Macintosh OS X, and Unix (OSS/ALSA). \
20                    It is intended to promote the exchange of audio \
21                    software between developers on different platforms. \
22                    Many applications use PortAudio for Audio I/O.
23
24homepage            http://www.portaudio.com/
25master_sites        ${homepage}archives
26
27distname            pa_stable_v[strsed ${version} {g/\./_/}]
28extract.suffix      .tgz
29
30checksums           rmd160  0a290cea8a102a45b2df9b72046b3eed0ab35b4f \
31                    sha256  8fe024a5f0681e112c6979808f684c3516061cc51d3acc0b726af98fc96c8d57
32
33worksrcdir          ${name}
34
35# By default, PortAudio is built as a universal binary.
36# To build a non-universal library for the host architecture,
37# simply use the --disable-mac-universal option with configure.
38# http://www.portaudio.com/trac/wiki/TutorialDir/Compile/MacintoshCoreAudio
39configure.args      --disable-mac-universal --enable-cxx
40
41# patch-configure removes -Werror, and adds -DNDEBUG.
42patchfiles          patch-configure \
43                    patch-ltmain.sh.diff \
44                    patch-src__common__pa_types.h \
45                    audacity-portmixer.patch
46
47platform darwin {
48    if {${os.major} >= 10} {
49        patchfiles-append patch-src__hostapi__coreaudio__pa_mac_core.c
50    }
51}
52
53use_parallel_build  no
54
55post-destroot {
56    xinstall -d ${destroot}${prefix}/share/doc/${name}
57    xinstall -m 644 -W ${worksrcpath} \
58        README.txt \
59        LICENSE.txt \
60        ${destroot}${prefix}/share/doc/${name}
61    # The build of PyAudio requires pa_mac_core.h.
62    xinstall -m 644 ${worksrcpath}/include/pa_mac_core.h \
63        ${destroot}${prefix}/include
64}
65
66livecheck.type      regex
67livecheck.url       [lindex ${master_sites} 0]
68livecheck.version   [strsed ${version} {g/\./_/}]
69livecheck.regex     pa_stable_v(\[0-9._\]+)\\.