summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/alsa-utils/files/alsa-utils-1.0.17-seq.patch')
-rw-r--r--media-sound/alsa-utils/files/alsa-utils-1.0.17-seq.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/media-sound/alsa-utils/files/alsa-utils-1.0.17-seq.patch b/media-sound/alsa-utils/files/alsa-utils-1.0.17-seq.patch
new file mode 100644
index 000000000000..3214a01b29ee
--- /dev/null
+++ b/media-sound/alsa-utils/files/alsa-utils-1.0.17-seq.patch
@@ -0,0 +1,40 @@
+diff -ur alsa-utils-1.0.17.orig/configure.in alsa-utils-1.0.17/configure.in
+--- alsa-utils-1.0.17.orig/configure.in 2008-07-30 21:44:32.000000000 -0400
++++ alsa-utils-1.0.17/configure.in 2008-07-30 21:45:45.000000000 -0400
+@@ -102,6 +102,18 @@
+ TESTSOUND="$dir/test.wav")
+ AC_SUBST(TESTSOUND)
+
++AC_ARG_ENABLE([sequencer],
++ [AC_HELP_STRING([--disable-sequencer], [Disable sequencer utilities (aconnect, aplaymidi, aseqdump, aseqnet)])] )
++
++if test "x$enable_sequencer" != "xno"; then
++ AC_CHECK_LIB([asound], [snd_seq_open], [has_seq=yes], [has_seq=no])
++fi
++if test "x$enable_sequencer" = "xyes" && test "x$has_seq" = "xno"; then
++ AC_MSG_FAILURE([cannot find snd_seq_open. ALSA was built without sequencer support])
++fi
++
++AM_CONDITIONAL([BUILD_SEQ], [test "x$has_seq" = "xyes"])
++
+ AM_CONFIG_HEADER(include/aconfig.h)
+
+ dnl Checks for typedefs, structures, and compiler characteristics.
+Only in alsa-utils-1.0.17: configure.in.orig
+diff -ur alsa-utils-1.0.17.orig/Makefile.am alsa-utils-1.0.17/Makefile.am
+--- alsa-utils-1.0.17.orig/Makefile.am 2008-07-30 21:44:32.000000000 -0400
++++ alsa-utils-1.0.17/Makefile.am 2008-07-30 21:47:04.000000000 -0400
+@@ -4,7 +4,12 @@
+ else
+ ALSAMIXER_DIR=
+ endif
+-SUBDIRS= include alsactl alsaconf $(ALSAMIXER_DIR) amidi amixer aplay iecset seq speaker-test utils m4 po
++
++if BUILD_SEQ
++SEQ_DIR=seq
++endif
++
++SUBDIRS= include alsactl alsaconf $(ALSAMIXER_DIR) amidi amixer aplay iecset $(SEQ_DIR) speaker-test utils m4 po
+ EXTRA_DIST= config.rpath config.rpath mkinstalldirs ChangeLog INSTALL TODO README configure gitcompile depcomp
+ AUTOMAKE_OPTIONS=foreign
+ ACLOCAL_AMFLAGS = -I m4