source: trunk/dports/audio/portaudio/Portfile @ 34336

Last change on this file since 34336 was 34336, checked in by gui_dos@…, 12 years ago

portaudio: updated to release 19.20071207
(maintainer timeout, closes #14362)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 34336 2008-02-21 19:36:58Z gui_dos@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
3PortSystem       1.0
4name             portaudio
5version          19.20071207
6categories       audio devel
7platforms        macosx
8maintainers      themiwi@users.sourceforge.net
9homepage         http://www.portaudio.com/
10
11description      PortAudio is a free, cross platform, open-source, audio I/O library.
12long_description PortAudio is a free, cross platform, open-source, audio I/O library. \
13                 It lets you write simple audio programs in 'C' that will compile and \
14                 run on many platforms including Windows, Macintosh (8,9,X), Unix (OSS), \
15                 SGI, and BeOS. PortAudio is intended to promote the exchange of audio \
16                 synthesis software between developers on different platforms. \
17                 PortAudio provides a very simple API for recording and/or playing sound \
18                 using a simple callback function.  Example programs are included that \
19                 synthesize sine waves and pink noise, perform fuzz distortion on a guitar, \
20                 list available audio devices, etc.
21
22master_sites     ${homepage}archives
23distname         pa_stable_v19_20071207
24checksums        md5 d2943e4469834b25afe62cc51adc025f \
25                 sha1 3841453bb7be672a15b6b632ade6f225eb0a4efc \
26                 rmd160 5185bd85bd4bc75dddb3fa56f172a346bdeea0c7
27
28worksrcdir       ${name}
29
30# Universal building is on by default
31universal_variant   no
32
33post-build {
34  copy ${worksrcpath}/portaudio-2.0.pc.in ${worksrcpath}/portaudio.pc
35  reinplace -E "s|\@prefix\@|${prefix}|g" ${worksrcpath}/portaudio.pc
36  reinplace -E "s|\@exec_prefix\@|${prefix}/bin|g" ${worksrcpath}/portaudio.pc
37  reinplace -E "s|\@libdir\@|${prefix}/lib|g" ${worksrcpath}/portaudio.pc
38  reinplace -E "s|\@includedir\@|${prefix}/include|g" ${worksrcpath}/portaudio.pc
39  reinplace -E "s|\@LIBS\@|-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework -framework CoreServices|g" ${worksrcpath}/portaudio.pc
40  reinplace -E "s|\@THREAD_CFLAGS\@||g" ${worksrcpath}/portaudio.pc
41}
42
43post-destroot {
44  xinstall -c -${destroot}/${prefix}/lib/pkgconfig
45  xinstall -c -m 644 ${worksrcpath}/portaudio.pc ${destroot}/${prefix}/lib/pkgconfig
46  xinstall -c -${destroot}/${prefix}/share/doc/${name}
47  xinstall -c -m 644 ${worksrcpath}/README.txt  \
48                     ${worksrcpath}/COMPILING.DARWIN \
49                     ${worksrcpath}/LICENSE.txt \
50                     ${worksrcpath}/V19-devel-readme.txt \
51                     ${destroot}/${prefix}/share/doc/${name}
52}
53
Note: See TracBrowser for help on using the repository browser.