diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2011-10-05 09:39:38 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2011-10-05 09:39:38 +0200 |
commit | fca4aa233659fa15c7518a3cc83bc2331beb87bf (patch) | |
tree | f67f5dff4c43cb4327bcaae714b72ee8d57d2104 /package/multimedia/mpg123 | |
parent | d1c54ade86e8cae6f0aa1bf1709941c70cea1af7 (diff) |
mpg123: tweak audio module selection
Fix build if host has libarts-dev, and add optional sdl+portaudio support.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/multimedia/mpg123')
-rw-r--r-- | package/multimedia/mpg123/mpg123.mk | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/package/multimedia/mpg123/mpg123.mk b/package/multimedia/mpg123/mpg123.mk index 53b7b39f3..c01c8adb4 100644 --- a/package/multimedia/mpg123/mpg123.mk +++ b/package/multimedia/mpg123/mpg123.mk @@ -9,6 +9,7 @@ MPG123_SOURCE = mpg123-$(MPG123_VERSION).tar.bz2 MPG123_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mpg123 MPG123_CONF_OPT = --with-optimization=0 --disable-lfs-alias MPG123_INSTALL_STAGING = YES + MPG123_CPU = $(if $(BR2_SOFT_FLOAT),generic_nofpu,generic_fpu) ifeq ($(BR2_arm),y) @@ -34,11 +35,26 @@ endif MPG123_CONF_OPT += --with-cpu=$(MPG123_CPU) -# Check if ALSA is built, then we should configure after alsa-lib so -# ./configure can find alsa-lib. +MPG123_AUDIO = dummy oss + +ifeq ($(BR2_PACKAGE_PORTAUDIO),y) +MPG123_AUDIO += portaudio +MPG123_CONF_OPT += --with-default-audio=portaudio +MPG123_DEPENDENCIES += portaudio +endif + +ifeq ($(BR2_PACKAGE_SDL),y) +MPG123_AUDIO += sdl +MPG123_CONF_OPT += --with-default-audio=sdl +MPG123_DEPENDENCIES += sdl +endif + ifeq ($(BR2_PACKAGE_ALSA_LIB),y) -MPG123_CONF_OPT += --with-audio=alsa +MPG123_AUDIO += alsa +MPG123_CONF_OPT += --with-default-audio=alsa MPG123_DEPENDENCIES += alsa-lib endif +MPG123_CONF_OPT += --with-audio=$(shell echo $(MPG123_AUDIO) | tr ' ' ,) + $(eval $(call AUTOTARGETS)) |