aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/alsa-utils/files/alsa-utils-1.0.22-cross-ncurses.patch')
-rw-r--r--media-sound/alsa-utils/files/alsa-utils-1.0.22-cross-ncurses.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/media-sound/alsa-utils/files/alsa-utils-1.0.22-cross-ncurses.patch b/media-sound/alsa-utils/files/alsa-utils-1.0.22-cross-ncurses.patch
new file mode 100644
index 0000000..ee2dbef
--- /dev/null
+++ b/media-sound/alsa-utils/files/alsa-utils-1.0.22-cross-ncurses.patch
@@ -0,0 +1,20 @@
+--- configure.in 2009-12-16 16:28:45.000000000 +0100
++++ configure.in.new 2010-02-07 19:01:40.000000000 +0100
+@@ -142,6 +142,17 @@
+ AC_CHECK_LIB(curses, initscr,
+ [ CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; curseslib="curses"])
+ fi
++ if test "$curseslib" = "cross" -o "$curseslib" = "auto"; then
++ AC_CHECK_LIB(ncursesw,
++ initscr,
++ [CURSESINC='<ncurses.h>'; CURSESLIB='-lncursesw'; curseslib="ncursesw"],
++ [AC_CHECK_LIB(ncurses,
++ initscr,
++ [CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; curseslib="ncurses"]
++ )]
++ )
++ fi
++
+ if test -z "$CURSESINC"; then
+ AC_MSG_ERROR(this packages requires a curses library)
+ fi