1 | # $Id: Portfile 65924 2010-04-03 03:07:09Z rmsfisher@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name libao |
---|
6 | version 1.1.0 |
---|
7 | categories audio |
---|
8 | maintainers nomaintainer |
---|
9 | description A Cross-platform Audio Library |
---|
10 | long_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. |
---|
15 | homepage http://www.xiph.org/ao/ |
---|
16 | platforms darwin |
---|
17 | master_sites http://downloads.xiph.org/releases/ao/ |
---|
18 | checksums md5 2b2508c29bc97e4dc218fa162cf883c8 \ |
---|
19 | sha1 9301bc4886f170c7122ab62677fb71cf001c04fd \ |
---|
20 | rmd160 374078af926bb0744fb2301e128a1c5276fdf4ee |
---|
21 | |
---|
22 | post-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 | |
---|
30 | configure.args --disable-arts --disable-esd \ |
---|
31 | --disable-oss --disable-X |
---|
32 | |
---|
33 | platform 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 | |
---|
42 | variant 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 | |
---|
48 | livecheck.type regex |
---|
49 | livecheck.url ${master_sites}?C=M&O=D |
---|
50 | livecheck.regex ${name}-(\\d+(?:\\.\\d+)*) |
---|