diff options
Diffstat (limited to 'multimedia/xine-lib/patches/patch-na')
-rw-r--r-- | multimedia/xine-lib/patches/patch-na | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/multimedia/xine-lib/patches/patch-na b/multimedia/xine-lib/patches/patch-na new file mode 100644 index 00000000000..e03be623223 --- /dev/null +++ b/multimedia/xine-lib/patches/patch-na @@ -0,0 +1,36 @@ +$NetBSD: patch-na,v 1.1 2012/03/21 16:37:15 drochner Exp $ + +--- m4/audio_out.m4.orig 2012-02-05 12:50:15.000000000 +0000 ++++ m4/audio_out.m4 +@@ -151,9 +151,22 @@ AC_DEFUN([XINE_AUDIO_OUT_PLUGINS], [ + dnl OSS (Open Sound System) + XINE_ARG_ENABLE([oss], [Enable OSS (Open Sound System) support]) + if test x"$enable_oss" != x"no"; then ++ ++ case "$host" in ++ *-*-netbsd*|*-*-openbsd*) ++ OSS_LIBS="-lossaudio" ++ ;; ++ *) ++ OSS_LIBS="" ++ ;; ++ esac ++ + AC_CHECK_HEADERS([sys/soundcard.h machine/soundcard.h soundcard.h], [break]) + AC_CHECK_DECL([SNDCTL_DSP_SETFRAGMENT], [have_oss=yes], [have_oss=no], +- [#ifdef HAVE_SYS_SOUNDCARD_H ++ [#ifdef __NetBSD__ ++ #include <sys/ioctl.h> ++ #endif ++ #ifdef HAVE_SYS_SOUNDCARD_H + # include <sys/soundcard.h> + #endif + #ifdef HAVE_MACHINE_SOUNDCARD_H +@@ -167,6 +180,7 @@ AC_DEFUN([XINE_AUDIO_OUT_PLUGINS], [ + fi + fi + AM_CONDITIONAL([ENABLE_OSS], [test x"$have_oss" = x"yes"]) ++ AC_SUBST(OSS_LIBS) + + + dnl PulseAudio |