source: trunk/dports/audio/libao/Portfile

Last change on this file was 140189, checked in by devans@…, 2 years ago

libao: update configuration, description, disable pulseaudio support by default to prevent opportunistic configuration and add +pulse variant to enable, increment revision.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 140189 2015-09-11 10:17:02Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libao
7version             1.2.0
8revision            1
9categories          audio
10maintainers         nomaintainer
11description         A Cross-platform Audio Library
12long_description    libao is a way to easily add cross-platform audio output to your \
13                    program. Output devices are implemented as dynamic plugins, and \
14                    OSS, ESD, ALSA, aRTs, PulseAudio, Solaris, and Irix outputs are \
15                    currently supported.
16homepage            http://www.xiph.org/ao/
17platforms           darwin
18license             GPL-2+
19master_sites        http://downloads.xiph.org/releases/ao/
20
21checksums           sha1    6b1d2c6a2e388e3bb6ebea158d51afef18aacc56 \
22                    rmd160  00921bf311f8d7a2be1f860221811924402beebd
23
24post-patch {
25    reinplace "s|/etc/libao.conf|${prefix}/etc/libao.conf|" \
26        ${worksrcpath}/CHANGES \
27        ${worksrcpath}/doc/config.html \
28        ${worksrcpath}/libao.conf.5 \
29        ${worksrcpath}/include/ao/ao_private.h \
30}
31
32configure.args      --disable-arts \
33                    --disable-esd \
34                    --disable-pulse \
35                    --without-x
36
37platform darwin {
38    post-destroot {
39        system "echo default_driver=macosx >> ${destroot}${prefix}/etc/libao.conf"
40    }
41}
42
43variant esd description {Enable Enlightened Sound Daemon support} {
44    depends_lib-append    port:esound
45    configure.args-delete --disable-esd
46    configure.args-append --enable-esd
47}
48
49variant pulse description {Enable PulseAudio support} {
50    depends_lib-append    port:pulseaudio
51    configure.args-delete --disable-pulse
52    configure.args-append --enable-pulse
53}
54
55livecheck.type      regex
56livecheck.url       ${master_sites}?C=M&O=D
57livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.