Add an option to enable PulseAudio

The option is disabled by default, so the package is not modified, no
PORTREVISION bump needed.

PR:		234225
Approved by:	crees (maintainer)
This commit is contained in:
Romain Tartière 2018-12-20 17:58:02 +00:00
parent 5d2df0dd9c
commit 4f77d2193f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=487895
2 changed files with 7 additions and 1 deletions

View file

@ -26,7 +26,7 @@ PORTEXAMPLES= *
#OPTIONS_NOT_YET_WORKING= ALSA BV32 G722_1 PLC ISAC OPENGLES #OPTIONS_NOT_YET_WORKING= ALSA BV32 G722_1 PLC ISAC OPENGLES
OPTIONS_DEFINE= CONS DOCS EXAMPLES FFMPEG G711 G722 G726 GSM GSTREAMER ILBC \ OPTIONS_DEFINE= CONS DOCS EXAMPLES FFMPEG G711 G722 G726 GSM GSTREAMER ILBC \
L16 OPUS OSS PORTAUDIO SDL SNDFILE SPEEX STDIO UUID V4L V4L2 X11 \ L16 OPUS OSS PORTAUDIO PULSEAUDIO SDL SNDFILE SPEEX STDIO UUID V4L V4L2 X11 \
DTLS_SRTP AUBRIDGE VIDBRIDGE HTTPD DSHOW DIRECTFB ACCOUNT \ DTLS_SRTP AUBRIDGE VIDBRIDGE HTTPD DSHOW DIRECTFB ACCOUNT \
NATPMP SDL MIW SNAPSHOT SELFVIEW VUMETER AULOOP CONTACT \ NATPMP SDL MIW SNAPSHOT SELFVIEW VUMETER AULOOP CONTACT \
MENU PRESENCE SYSLOG VIDLOOP MENU PRESENCE SYSLOG VIDLOOP
@ -70,6 +70,11 @@ $o_DESC= ${o:C,^(.).*,\1,}${o:C,^.,,:tl} module
PORT_OPTIONS+= GST PORT_OPTIONS+= GST
.endif .endif
# Port calls it PULSE, standard OPTION is PULSEAUDIO
.if ${PORT_OPTIONS:MPULSEAUDIO}
PORT_OPTIONS+= PULSE
.endif
.if ${PORT_OPTIONS:MSDL} .if ${PORT_OPTIONS:MSDL}
USE_SDL= sdl sound USE_SDL= sdl sound
.endif .endif

View file

@ -17,6 +17,7 @@ OPUS_DEPEND= ${LOCALBASE}/include/opus/opus.h:audio/opus
OSS_DEPEND= # In base OSS_DEPEND= # In base
PLC_DEPEND= ${LOCALBASE}/include/spandsp/plc.h:comms/spandsp PLC_DEPEND= ${LOCALBASE}/include/spandsp/plc.h:comms/spandsp
PORTAUDIO_DEPEND= ${LOCALBASE}/include/portaudio.h:audio/portaudio PORTAUDIO_DEPEND= ${LOCALBASE}/include/portaudio.h:audio/portaudio
PULSEAUDIO_DEPEND= ${LOCALBASE}/include/pulse/pulseaudio.h:audio/pulseaudio
SDL_DEPEND= # Handled with USE_SDL in Makefile SDL_DEPEND= # Handled with USE_SDL in Makefile
SNDFILE_DEPEND= ${LOCALBASE}/include/sndfile.h:audio/libsndfile SNDFILE_DEPEND= ${LOCALBASE}/include/sndfile.h:audio/libsndfile
SPEEX_DEPEND= ${LOCALBASE}/include/speex/speex.h:audio/speex SPEEX_DEPEND= ${LOCALBASE}/include/speex/speex.h:audio/speex