Changeset View
Changeset View
Standalone View
Standalone View
devel/sdl12/files/patch-configure
Show All 16 Lines | @@ -15826,7 +15820,7 @@ case "$host" in | ||||
BASE_LDFLAGS="-mno-cygwin" | BASE_LDFLAGS="-mno-cygwin" | ||||
;; | ;; | ||||
*) | *) | ||||
- BASE_CFLAGS="-D_GNU_SOURCE=1" | - BASE_CFLAGS="-D_GNU_SOURCE=1" | ||||
+ BASE_CFLAGS="" | + BASE_CFLAGS="" | ||||
BASE_LDFLAGS="" | BASE_LDFLAGS="" | ||||
;; | ;; | ||||
esac | esac | ||||
@@ -20999,6 +20993,16 @@ | |||||
fi | |||||
fi | |||||
} | |||||
+ | |||||
+CheckSndio() | |||||
+{ | |||||
+if test "x${enable_sndio}" = "xyes"; then : | |||||
+ SOURCES="$SOURCES $srcdir/src/audio/sndio/SDL_sndioaudio.c" | |||||
+ EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_AUDIO_DRIVER_SNDIO=1" | |||||
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsndio" | |||||
+ have_audio=yes | |||||
+fi | |||||
+} | |||||
tobik: I think this needs to be explained. OpenBSD regenerates the configure
script from configure.in… | |||||
CheckPulseAudio() | |||||
{ | |||||
@@ -29551,6 +29555,7 @@ | |||||
CheckALSA | |||||
CheckARTSC | |||||
CheckESD | |||||
+ CheckSndio | |||||
CheckPulseAudio | |||||
CheckNAS | |||||
CheckX11 |
I think this 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 this 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.