summaryrefslogtreecommitdiffstats
path: root/audio-drivers/alsa-driver/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'audio-drivers/alsa-driver/BUILD')
-rwxr-xr-xaudio-drivers/alsa-driver/BUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/audio-drivers/alsa-driver/BUILD b/audio-drivers/alsa-driver/BUILD
new file mode 100755
index 0000000000..960e1eb9e6
--- /dev/null
+++ b/audio-drivers/alsa-driver/BUILD
@@ -0,0 +1,26 @@
+# Clean out the old alsa drivers.
+rm -f /lib/modules/`installed_version linux-new`/misc/snd* &&
+
+if [ -e /proc/config.gz ] ; then
+ if [ `zgrep -c CONFIG_SOUND=m /proc/config.gz` = 1 ] ; then
+ modprobe -q soundcore
+ fi
+elif [ `grep -c CONFIG_SOUND=m /etc/sorcery/local/kernel.config` = 1 ] ; then
+ modprobe -q soundcore
+fi
+
+
+
+sedit "s:/usr/bin/awk:/bin/awk:" utils/convert_isapnp_ids &&
+sedit "s: install-scripts : :" Makefile &&
+sedit "s:root.root:root.audio:" snddevices &&
+
+./configure --prefix=/usr \
+ --with-isapnp=yes \
+ --with-sequencer=yes \
+ --with-oss=yes \
+ --with-debug=none \
+ --with-cards=$CARDS \
+ $OPTS &&
+make_single &&
+make