source: trunk/dports/audio/esound/Portfile

Last change on this file was 108128, checked in by devans@…, 4 years ago

esound: use gnome livecheck type, whitespace.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 108128 2013-07-13 16:54:42Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            esound
7version         0.2.41
8revision        3
9set branch      [join [lrange [split ${version} .] 0 1] .]
10categories      audio
11platforms       darwin
12maintainers     nomaintainer
13license         LGPL-2
14description     Enlightened Sound Daemon (ESD)
15long_description \
16                EsounD, the Enlightened Sound Daemon, is a server process that mixes \
17                several audio streams for playback by a single audio device.  For example, \
18                if you're listening to music on a CD and you receive a sound-related event \
19                from ICQ, the two applications won't have to jockey for the use of your \
20                sound card.
21homepage        http://www.tux.org/~ricdude/EsounD.html
22
23master_sites    gnome:sources/esound/${branch}/
24depends_lib     port:audiofile
25
26use_bzip2       yes
27
28checksums       md5 8d9aad3d94d15e0d59ba9dc0ea990c6c \
29                sha1 6c343483b3789f439277935eaad7e478bee685ea \
30                rmd160 72597ea46e507008e3a43efaaf5b4b9ef62b896f
31
32configure.args  --enable-ipv6
33
34post-patch {
35    reinplace "s|int esd_spawn_wait_ms=100;|int esd_spawn_wait_ms=999;|" \
36              ${worksrcpath}/esd_config.c
37    reinplace "s|spawn_wait_ms=100|spawn_wait_ms=999|" \
38              ${worksrcpath}/esd.conf
39
40    if {${os.major} >= 9} {
41            # esound tries to get the host name from the DISPLAY environment variable
42            # See http://trac.macports.org/ticket/13848
43            reinplace "s|len = strcspn( display, \":\" );|len = strcspn( display, \":/\" );|" \
44                    ${worksrcpath}/esdlib.c
45    }
46}
47
48depends_build   port:pkgconfig
49
50platform puredarwin {
51    configure.args-append   --disable-local-sound
52}
53
54livecheck.type  gnome
Note: See TracBrowser for help on using the repository browser.