openbsd-ports/devel/sdl/patches/patch-configure

56 lines
1.4 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-configure,v 1.19 2008/12/30 02:15:20 jakemsr Exp $
--- configure.orig Sun Dec 30 21:09:39 2007
+++ configure Mon Sep 22 20:13:46 2008
@@ -25411,6 +25411,20 @@ _ACEOF
fi
}
+
+CheckLibsndio()
+{
+ if [ x"$WITH_LIBSNDIO" = x"Yes" ]; then
+
+ cat >>confdefs.h <<\_ACEOF
+#define SDL_AUDIO_DRIVER_LIBSNDIO 1
+_ACEOF
+ SOURCES="$SOURCES $srcdir/src/audio/libsndio/*.c"
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsndio"
+ fi
+}
+
+
CheckPulseAudio()
{
# Check whether --enable-pulseaudio was given.
@@ -26333,9 +26347,6 @@ echo "${ECHO_T}$CompileNASM_ret" >&6; }
win32)
NASMFLAGS="-f win32"
;;
- openbsd)
- NASMFLAGS="-f aoutb"
- ;;
macosx)
NASMFLAGS="-f macho"
;;
@@ -33577,6 +33588,7 @@ _ACEOF
CheckALSA
CheckARTSC
CheckESD
+ CheckLibsndio
CheckPulseAudio
CheckNAS
CheckX11
@@ -33612,10 +33624,10 @@ _ACEOF
;;
netbsd|openbsd)
cat >>confdefs.h <<\_ACEOF
-#define SDL_AUDIO_DRIVER_BSD 1
+#define SDL_AUDIO_DRIVER_SUNAUDIO 1
_ACEOF
- SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
+ SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
have_audio=yes
;;
aix)