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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name portaudio |
---|
7 | version 19.20140130 |
---|
8 | revision 1 |
---|
9 | categories audio devel |
---|
10 | platforms darwin macosx |
---|
11 | maintainers hum openmaintainer |
---|
12 | license MIT |
---|
13 | |
---|
14 | description PortAudio is a free, cross platform, open-source, audio I/O library. |
---|
15 | |
---|
16 | long_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 | |
---|
24 | homepage http://www.portaudio.com/ |
---|
25 | master_sites ${homepage}archives |
---|
26 | |
---|
27 | distname pa_stable_v[strsed ${version} {g/\./_/}] |
---|
28 | extract.suffix .tgz |
---|
29 | |
---|
30 | checksums rmd160 0a290cea8a102a45b2df9b72046b3eed0ab35b4f \ |
---|
31 | sha256 8fe024a5f0681e112c6979808f684c3516061cc51d3acc0b726af98fc96c8d57 |
---|
32 | |
---|
33 | worksrcdir ${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 |
---|
39 | configure.args --disable-mac-universal --enable-cxx |
---|
40 | |
---|
41 | # patch-configure removes -Werror, and adds -DNDEBUG. |
---|
42 | patchfiles patch-configure \ |
---|
43 | patch-ltmain.sh.diff \ |
---|
44 | patch-src__common__pa_types.h \ |
---|
45 | audacity-portmixer.patch |
---|
46 | |
---|
47 | platform darwin { |
---|
48 | if {${os.major} >= 10} { |
---|
49 | patchfiles-append patch-src__hostapi__coreaudio__pa_mac_core.c |
---|
50 | } |
---|
51 | } |
---|
52 | |
---|
53 | use_parallel_build no |
---|
54 | |
---|
55 | post-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 | |
---|
66 | livecheck.type regex |
---|
67 | livecheck.url [lindex ${master_sites} 0] |
---|
68 | livecheck.version [strsed ${version} {g/\./_/}] |
---|
69 | livecheck.regex pa_stable_v(\[0-9._\]+)\\. |
---|