[43674] trunk/dports/audio/esound/Portfile
mcalhoun at macports.org
mcalhoun at macports.org
Sat Dec 13 08:53:02 PST 2008
Revision: 43674
http://trac.macports.org/changeset/43674
Author: mcalhoun at macports.org
Date: 2008-12-13 08:53:01 -0800 (Sat, 13 Dec 2008)
Log Message:
-----------
esound: For OS X >= Leopard, prevent esound from trying to get the host name from the DISPLAY environment variable.
Replace patchfiles with reinplace.
Fixes #13848.
Modified Paths:
--------------
trunk/dports/audio/esound/Portfile
Modified: trunk/dports/audio/esound/Portfile
===================================================================
--- trunk/dports/audio/esound/Portfile 2008-12-13 16:52:19 UTC (rev 43673)
+++ trunk/dports/audio/esound/Portfile 2008-12-13 16:53:01 UTC (rev 43674)
@@ -4,6 +4,7 @@
name esound
version 0.2.41
+revision 1
set branch [join [lrange [split ${version} .] 0 1] .]
categories audio
maintainers nomaintainer
@@ -21,9 +22,21 @@
configure.args \
--enable-ipv6
-patchfiles \
- patch-esd.conf.diff \
- patch-esd_config.c.diff
+
+post-patch {
+ reinplace "s|int esd_spawn_wait_ms=100;|int esd_spawn_wait_ms=999;|" \
+ ${worksrcpath}/esd_config.c
+ reinplace "s|spawn_wait_ms=100|spawn_wait_ms=999|" \
+ ${worksrcpath}/esd.conf
+
+ if {${os.major} >= 9} {
+ # esound tries to get the host name from the DISPLAY environment variable
+ # See http://trac.macports.org/ticket/13848
+ reinplace "s|len = strcspn( display, \":\" );|len = strcspn( display, \":/\" );|" \
+ ${worksrcpath}/esdlib.c
+ }
+}
+
depends_build \
port:pkgconfig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081213/05028f16/attachment.html>
More information about the macports-changes
mailing list