mirror of
https://git.freebsd.org/ports.git
synced 2025-07-15 08:19:13 -04:00
While here - Add LICENSE_FILE, USES=localbase - Strip library - Group audio backend options - Use options helpers for VGL I think the configure script patch needs to be explained. OpenBSD regenerates the configure script from configure.in after patching sndio detection into it. However SDL 1.2 requires an older autoconf version (2.59) which is not available on FreeBSD. Lots of errors when using autoconf 2.69. Since I was unable to regenerate it I opted to edit configure manually. So it does the bare minimum to wire the backend sources into the build and make sure that SNDIO_CONFIGURE_ENABLE can do its job in enabling/disabling sndio support. Approved by: lme (mentor) Obtained from: OpenBSD Differential Revision: https://reviews.freebsd.org/D10658
19 lines
470 B
C
19 lines
470 B
C
$OpenBSD: patch-src_audio_SDL_audio_c,v 1.17 2012/03/02 09:10:38 dcoppa Exp $
|
|
--- src/audio/SDL_audio.c.orig 2012-01-19 06:30:06 UTC
|
|
+++ src/audio/SDL_audio.c
|
|
@@ -36,11 +36,15 @@
|
|
|
|
/* Available audio drivers */
|
|
static AudioBootStrap *bootstrap[] = {
|
|
+
|
|
#if SDL_AUDIO_DRIVER_PULSE
|
|
&PULSE_bootstrap,
|
|
#endif
|
|
#if SDL_AUDIO_DRIVER_ALSA
|
|
&ALSA_bootstrap,
|
|
+#endif
|
|
+#if SDL_AUDIO_DRIVER_SNDIO
|
|
+ &SNDIO_bootstrap,
|
|
#endif
|
|
#if SDL_AUDIO_DRIVER_BSD
|
|
&BSD_AUDIO_bootstrap,
|