aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2011-05-03 09:20:30 +0800
committerswills <swills@FreeBSD.org>2011-05-03 09:20:30 +0800
commiteb17b2a27f4276ccc3b58cced70c1a3bf6c27cfa (patch)
tree23d0d733173fc2310d76b6627acee532104db93f /audio
parent05a361241055cb9348904857cb8bae4519d154b9 (diff)
downloadfreebsd-ports-gnome-eb17b2a27f4276ccc3b58cced70c1a3bf6c27cfa.tar.gz
freebsd-ports-gnome-eb17b2a27f4276ccc3b58cced70c1a3bf6c27cfa.tar.zst
freebsd-ports-gnome-eb17b2a27f4276ccc3b58cced70c1a3bf6c27cfa.zip
- Fix build with Ruby 1.9
PR: ports/156468 Submitted by: Eric Freeman <freebsdports@chillibear.com> Approved by: maintainer (timeout)
Diffstat (limited to 'audio')
-rw-r--r--audio/ruby-esound/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/ruby-esound/Makefile b/audio/ruby-esound/Makefile
index 330b1726cf15..4352fa10785d 100644
--- a/audio/ruby-esound/Makefile
+++ b/audio/ruby-esound/Makefile
@@ -34,6 +34,10 @@ post-patch:
${REINPLACE_CMD} -E \
-e "s,^(require[[:space:]]+')./esd.so('.*),\1esd\2," \
${WRKSRC}/test/*.rb
+ ${REINPLACE_CMD} -E \
+ -e 's|RSTRING\(([^)]+)\)->len|RSTRING_LEN(\1)|g' \
+ -e 's|RSTRING\(([^)]+)\)->ptr|RSTRING_PTR(\1)|g' \
+ ${WRKSRC}/esd.c
post-install:
.if !defined(NOPORTDOCS)