openbsd-ports/devel/sdl/patches/patch-configure
jakemsr 99fccde5bc - make artsd audio output work by linking with libartsc instead
of trying to dlopen() it.  also fix a couple bugs in the artsd
  output module: when artsd is "suspended", it only means that
  it it not accessing the soundcard at the moment, not that it
  will not accept data.  fix output latency by setting parameters
  that actually are settable, instead of trying to set read-only(!)
  parameters.

- allow the default audio output method to be chosen with the
  SDL_AUDIO_DRIVER environment variable.  choices are 'arts',
  'esd' and 'audio'.  'audio' selects audio(4) output, and is
  the default if SDL_AUDIO_DRIVER is not set.

ok pvalchev@
2008-03-19 13:33:29 +00:00

36 lines
1.3 KiB
Plaintext

$OpenBSD: patch-configure,v 1.17 2008/03/19 13:33:29 jakemsr Exp $
--- configure.orig Sun Dec 30 21:09:39 2007
+++ configure Mon Feb 18 00:21:17 2008
@@ -25578,7 +25578,7 @@ fi
: # arts isn't installed
else
ARTS_CFLAGS=`$ARTSCONFIG --cflags`
- ARTS_LIBS=`$ARTSCONFIG --libs`
+ ARTS_LIBS="`$ARTSCONFIG --libs` -lstdc++"
ARTS_PREFIX=`$ARTSCONFIG --arts-prefix`
{ echo "$as_me:$LINENO: checking for aRts development environment" >&5
echo $ECHO_N "checking for aRts development environment... $ECHO_C" >&6; }
@@ -26333,9 +26333,6 @@ echo "${ECHO_T}$CompileNASM_ret" >&6; }
win32)
NASMFLAGS="-f win32"
;;
- openbsd)
- NASMFLAGS="-f aoutb"
- ;;
macosx)
NASMFLAGS="-f macho"
;;
@@ -33612,10 +33609,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)