source: trunk/dports/audio/portaudio/Portfile

Last change on this file was 134108, checked in by hum@…, 3 years ago

portaudio: add patch-audacity-portmixer.diff to suport audacity; see #47172

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 134108 2015-03-18 15:38:41Z ryandesign@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                    patch-audacity-portmixer.diff
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._\]+)\\.
Note: See TracBrowser for help on using the repository browser.