--- sdl-mixer-1.2.12.ebuild.orig 2012-03-04 06:01:17.000000000 +0000 +++ sdl-mixer-1.2.12.ebuild 2012-04-14 23:08:54.189793416 +0100 @@ -13,7 +13,7 @@ LICENSE="ZLIB" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" -IUSE="flac fluidsynth mad midi mikmod modplug mp3 playtools static-libs timidity vorbis +wav" +IUSE="flac fluidsynth mad midi mikmod modplug mp3 playtools static-libs +timidity vorbis +wav" REQUIRED_USE="midi? ( || ( timidity fluidsynth ) )" DEPEND=">=media-libs/libsdl-1.2.10 @@ -63,3 +63,17 @@ || die "la removal failed" fi } + +pkg_postinst() { + if use fluidsynth; then + ewarn "FluidSynth support requires you to set the SDL_SOUNDFONTS" + ewarn "environment variable to the location of a SoundFont file" + ewarn "unless the game or application happens to do this for you." + + if use timidity; then + ewarn "Failing to do so will result in Timidity being used instead." + else + ewarn "Failing to do so will result in silence!" + fi + fi +}