Ticket #29391: Portfile

File Portfile, 1.6 KB (added by kim@…, 14 years ago)

Portfile for libao 1.1.0

Line 
1# $Id: Portfile 65924 2010-04-03 03:07:09Z rmsfisher@macports.org $
2
3PortSystem 1.0
4
5name             libao
6version          1.1.0
7categories       audio
8maintainers      nomaintainer
9description      A Cross-platform Audio Library
10long_description \
11    libao is a way to easily add cross-platform audio output to your \
12    program. Output devices are implemented as dynamic plugins, and \
13    support for OSS, ESD, ALSA, aRTs, Solaris, and Irix outputs are \
14    currently supported.
15homepage         http://www.xiph.org/ao/
16platforms        darwin
17master_sites     http://downloads.xiph.org/releases/ao/
18checksums           md5     2b2508c29bc97e4dc218fa162cf883c8 \
19                    sha1    9301bc4886f170c7122ab62677fb71cf001c04fd \
20                    rmd160  374078af926bb0744fb2301e128a1c5276fdf4ee
21
22post-patch {
23        reinplace "s|/etc/libao.conf|${prefix}/etc/libao.conf|" \
24                ${worksrcpath}/CHANGES \
25                ${worksrcpath}/doc/config.html \
26                ${worksrcpath}/libao.conf.5 \
27                ${worksrcpath}/include/ao/ao_private.h \
28}
29
30configure.args   --disable-arts --disable-esd \
31                 --disable-oss --disable-X
32
33platform darwin {
34    if {${os.major} < 10} {
35        patchfiles patch-AU-src__plugins__macosx__ao_macosx.c
36    }
37    post-destroot {
38        system "echo default_driver=macosx >> ${destroot}${prefix}/etc/libao.conf"
39    }
40}
41
42variant esd description {Enable Enlightened Sound Daemon support} {
43    depends_lib-append    port:esound
44    configure.args-delete --disable-esd
45    configure.args-append --enable-esd
46}
47
48livecheck.type   regex
49livecheck.url    ${master_sites}?C=M&O=D
50livecheck.regex  ${name}-(\\d+(?:\\.\\d+)*)