pkgsrc/multimedia/xine-lib/patches/patch-na
drochner d14ba10f96 update to 1.2.1
changes:
-Rewrite of VDPAU OSD handling
-sndio plugin is now buildable
-Various bug fixes
2012-03-21 16:37:15 +00:00

36 lines
1.1 KiB
Text

$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