summaryrefslogtreecommitdiffstats
path: root/audio-players/timidity/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'audio-players/timidity/BUILD')
-rwxr-xr-xaudio-players/timidity/BUILD10
1 files changed, 10 insertions, 0 deletions
diff --git a/audio-players/timidity/BUILD b/audio-players/timidity/BUILD
new file mode 100755
index 0000000000..3de6500980
--- /dev/null
+++ b/audio-players/timidity/BUILD
@@ -0,0 +1,10 @@
+# always build with oss
+OPTS="$OPTS --audio-oss"
+# those lines remove the --audio-* switches and put them in the AUDIO array
+# instead
+# --audio-oss --audio-alsa will result in AUDIO=oss,alsa
+local AUDIO="$(echo "$OPTS" | tr ' ' '\n' | grep audio)"
+OPTS="$(echo "$OPTS" | tr ' ' '\n' | grep -v audio | tr '\n' ' ')"
+AUDIO="$(echo "$AUDIO" | sed -e 's/--audio-//' | tr '\n' ',' | sed -e 's/,$//')"
+OPTS="$OPTS --enable-audio=$AUDIO"
+default_build