diff --git a/packages/mediacenter/xbmc/package.mk b/packages/mediacenter/xbmc/package.mk index 009660652c..2ce04ab3b0 100644 --- a/packages/mediacenter/xbmc/package.mk +++ b/packages/mediacenter/xbmc/package.mk @@ -97,6 +97,15 @@ else XBMC_ALSA="--disable-alsa" fi +if [ "$PULSEAUDIO_SUPPORT" = yes ]; then +# for PulseAudio support + PKG_BUILD_DEPENDS_TARGET="$PKG_BUILD_DEPENDS_TARGET pulseaudio" + PKG_DEPENDS="$PKG_DEPENDS pulseaudio" + XBMC_PULSEAUDIO="--enable-pulse" +else + XBMC_PULSEAUDIO="--disable-pulse" +fi + if [ "$CEC_SUPPORT" = yes ]; then # for CEC support PKG_BUILD_DEPENDS_TARGET="$PKG_BUILD_DEPENDS_TARGET libcec" @@ -364,7 +373,7 @@ PKG_CONFIGURE_OPTS_TARGET="gl_cv_func_gettimeofday_clobber=no \ $XBMC_XORG \ --disable-ccache \ $XBMC_ALSA \ - --disable-pulse \ + $XBMC_PULSEAUDIO \ --enable-rtmp \ $XBMC_SAMBA \ $XBMC_NFS \ diff --git a/packages/multimedia/SDL/build b/packages/multimedia/SDL/build index 644b6eb16b..e4694e42d4 100755 --- a/packages/multimedia/SDL/build +++ b/packages/multimedia/SDL/build @@ -38,6 +38,12 @@ else SDL_OPENGL="--disable-video-opengl" fi +if [ "$PULSEAUDIO_SUPPORT" = yes ]; then + SDL_PULSEAUDIO="--enable-pulseaudio --enable-pulseaudio-shared" +else + SDL_PULSEAUDIO="--disable-pulseaudio --disable-pulseaudio-shared" +fi + cd $PKG_BUILD rm -f acinclude/alsa.m4 @@ -74,8 +80,7 @@ mkdir -p .build-target && cd .build-target --disable-esd \ --disable-esdtest \ --disable-esd-shared \ - --disable-pulseaudio \ - --disable-pulseaudio-shared \ + $SDL_PULSEAUDIO \ --disable-arts \ --disable-arts-shared \ --disable-nas \ diff --git a/packages/multimedia/SDL/meta b/packages/multimedia/SDL/meta index f45e8cf34b..ff52beee38 100644 --- a/packages/multimedia/SDL/meta +++ b/packages/multimedia/SDL/meta @@ -43,3 +43,7 @@ if [ "$OPENGL" = "Mesa" ]; then PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS Mesa glu" fi +if [ "$PULSEAUDIO_SUPPORT" = yes ]; then + PKG_DEPENDS="$PKG_DEPENDS pulseaudio" + PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS pulseaudio" +fi diff --git a/projects/ARCTIC_MC/options b/projects/ARCTIC_MC/options index cb6b4cebea..a414b81f9b 100755 --- a/projects/ARCTIC_MC/options +++ b/projects/ARCTIC_MC/options @@ -146,6 +146,9 @@ # build and install ALSA Audio support (yes / no) ALSA_SUPPORT="yes" +# build and install PulseAudio support (yes / no) + PULSEAUDIO_SUPPORT="no" + # build and install with non-free support # (RAR compression support in XBMC) (yes / no) NONFREE_SUPPORT="yes" diff --git a/projects/ATV/options b/projects/ATV/options index 0800bd00c7..c7ea45ca81 100755 --- a/projects/ATV/options +++ b/projects/ATV/options @@ -146,6 +146,9 @@ # build and install ALSA Audio support (yes / no) ALSA_SUPPORT="yes" +# build and install PulseAudio support (yes / no) + PULSEAUDIO_SUPPORT="no" + # build and install with non-free support # (RAR compression support in XBMC) (yes / no) NONFREE_SUPPORT="yes" diff --git a/projects/Generic/options b/projects/Generic/options index d31991fffc..6b62735ff3 100755 --- a/projects/Generic/options +++ b/projects/Generic/options @@ -146,6 +146,9 @@ # build and install ALSA Audio support (yes / no) ALSA_SUPPORT="yes" +# build and install PulseAudio support (yes / no) + PULSEAUDIO_SUPPORT="no" + # build and install with non-free support # (RAR compression support in XBMC) (yes / no) NONFREE_SUPPORT="yes" diff --git a/projects/RPi/options b/projects/RPi/options index 44e840d984..2c84597c2b 100755 --- a/projects/RPi/options +++ b/projects/RPi/options @@ -147,6 +147,9 @@ # build and install ALSA Audio support (yes / no) ALSA_SUPPORT="no" +# build and install PulseAudio support (yes / no) + PULSEAUDIO_SUPPORT="no" + # build and install with non-free support # (RAR compression support in XBMC) (yes / no) NONFREE_SUPPORT="yes" diff --git a/projects/Virtual/options b/projects/Virtual/options index 78ca83041b..a8bcb691a9 100755 --- a/projects/Virtual/options +++ b/projects/Virtual/options @@ -141,6 +141,9 @@ # build and install ALSA Audio support (yes / no) ALSA_SUPPORT="yes" +# build and install PulseAudio support (yes / no) + PULSEAUDIO_SUPPORT="no" + # build and install with non-free support # (RAR compression support in XBMC) (yes / no) NONFREE_SUPPORT="yes"