1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

devel/sdl20: Add option to enable sndio support

- This adds support for building with the sndio audio output (audio/sndio).

PR:		211663
Submitted by:	Tobias Kortkamp <t@tobik.me>
Approved by:	mva (maintainer timeout)
This commit is contained in:
Kurt Jaeger 2016-08-26 13:39:48 +00:00
parent b6b3749d7a
commit 2cd6ea3062
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=420918

View File

@ -47,7 +47,7 @@ CONFIGURE_ARGS+= --disable-sse2
.endif
OPTIONS_DEFINE= ALSA ASM DLOPEN ESOUND NAS OSS \
PULSEAUDIO PTHREADS SDL_ATOMIC SDL_AUDIO \
PULSEAUDIO SNDIO PTHREADS SDL_ATOMIC SDL_AUDIO \
SDL_CPUINFO SDL_EVENTS SDL_FILE SDL_HAPTIC \
SDL_JOYSTICK SDL_LOADSO SDL_POWER SDL_RENDER \
SDL_THREADS SDL_TIMERS SDL_VIDEO VIDEO_OPENGL VIDEO_X11
@ -146,6 +146,16 @@ CONFIGURE_ARGS+= --enable-pulseaudio --enable-pulseaudio-shared
CONFIGURE_ARGS+= --disable-pulseaudio --disable-pulseaudio-shared
.endif
.if ${PORT_OPTIONS:MSNDIO}
.if !${PORT_OPTIONS:MSDL_AUDIO}
IGNORE= option SNDIO requires SDL_AUDIO
.endif
CONFIGURE_ARGS+= --enable-sndio --enable-sndio-shared
LIB_DEPENDS+= libsndio.so:audio/sndio
.else
CONFIGURE_ARGS+= --disable-sndio --disable-sndio-shared
.endif
.if ${PORT_OPTIONS:MVIDEO_OPENGL}
.if !${PORT_OPTIONS:MSDL_VIDEO}
IGNORE= option VIDEO_OPENGL requires SDL_VIDEO