--- ./libsdl-1.2.14-r2.ebuild 2010-04-08 22:25:47.000000000 +0200 +++ ./libsdl-1.2.14-r3.ebuild 2010-05-29 20:20:38.000000000 +0200 @@ -16,7 +16,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 # if you disable the audio, video, joystick use flags or turn on the custom-cflags use flag # in USE and something breaks, you pick up the pieces. Be prepared for # bug reports to be marked INVALID. -IUSE="oss alsa nas X dga xv xinerama fbcon directfb ggi svga tslib aalib opengl libcaca +audio +video +joystick custom-cflags pulseaudio ps3 static-libs" +IUSE="oss alsa nas X dga xv xinerama fbcon directfb ggi svga tslib aalib opengl libcaca +audio +video +joystick custom-cflags pulseaudio ps3 static-libs alsa-shared pulseaudio-shared" RDEPEND="audio? ( >=media-libs/audiofile-0.1.9 ) alsa? ( media-libs/alsa-lib ) @@ -55,6 +55,9 @@ DEPEND="${RDEPEND} S=${WORKDIR}/SDL-${PV} pkg_setup() { + ewarn "If you are using VirtualBox and want audio," + ewarn "You must activate alsa and alsa-shared." + epause 5 if use !audio || use !video || use !joystick ; then ewarn "Since you've chosen to turn off some of libsdl's functionality," ewarn "don't bother filing libsdl-related bugs until trying to remerge" @@ -115,13 +118,13 @@ src_configure() { --enable-timers \ --enable-file \ --enable-cpuinfo \ - --disable-alsa-shared \ --disable-esd-shared \ - --disable-pulseaudio-shared \ --disable-arts-shared \ --disable-nas-shared \ --disable-x11-shared \ --disable-osmesa-shared \ + $(use_enable alsa-shared) + $(use_enable pulseaudio-shared) $(use_enable oss) \ $(use_enable alsa) \ $(use_enable pulseaudio) \