summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2013-01-03 16:23:04 +0000
committerChris Rees <crees@FreeBSD.org>2013-01-03 16:23:04 +0000
commit8377fcd139d4a6abaf9c417f30c1a80c9086278c (patch)
tree6c6147aa4c1b73a4e4f492e8d29178b09980f90c /audio
parent- Update to 0.72 (diff)
Make OSS audio work out of the box
Suggested by: theraven
Notes
Notes: svn path=/head/; revision=309897
Diffstat (limited to 'audio')
-rw-r--r--audio/musicpd/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/audio/musicpd/Makefile b/audio/musicpd/Makefile
index 8cbf8fc2500a..11a06bb1ab78 100644
--- a/audio/musicpd/Makefile
+++ b/audio/musicpd/Makefile
@@ -236,6 +236,14 @@ post-patch:
@${REINPLACE_CMD} -e 's,^#\([^"]*"\)~/,\1${MPDDIR}/,g' \
-e 's,^#\(user[^"]*"\)nobody,\1${MPDUSER},g' \
${WRKSRC}/doc/mpdconf.example
+# Uncomment OSS audio output part from MPDCONF; dragons!
+ start=$$(expr $$(${SED} -n '/^# type *"oss"/=' \
+ ${WRKSRC}/doc/mpdconf.example) - 1); \
+ finish=$$(for n in $$(${JOT} 10 $$start); do \
+ [ "$$(${SED} -n $${n}p ${WRKSRC}/doc/mpdconf.example)" = \
+ "#}" ] && echo $$n || true; done); \
+ ${REINPLACE_CMD} -e "$${start},$${finish}s,^#,," \
+ ${WRKSRC}/doc/mpdconf.example
# Fix man pages for executable names
@${REINPLACE_CMD} -e 's/^\(\.B m\)pd/\1usicpd/' \
-e 's#^\(\.BI \)/etc/mpd.conf#\1${PREFIX}/etc/${MPDCONF}#' \