--- DirectFB-0.9.22.ebuild 2005-05-18 16:50:42.000000000 +0800 +++ DirectFB-0.9.22.ebuild 2005-05-18 17:20:27.000000000 +0800 @@ -5,6 +5,7 @@ inherit eutils flag-o-matic toolchain-funcs IUSE_VIDEO_CARDS="ati128 cle266 cyber5k i810 mach64 matrox neomagic nsc nvidia radeon savage sis315 tdfx unichrome" +IUSE_INPUT_DRIVERS="dbox2remote elo-input h3600_ts joystick keyboard dreamboxremote linuxinput lirc mutouch ps2mouse serialmouse sonypijofdial wm97xx" DESCRIPTION="Thin library on top of the Linux framebuffer devices" HOMEPAGE="http://www.directfb.org/" @@ -29,6 +30,11 @@ ewarn "via the VIDEO_CARDS variable what video card you use." einfo "DirectFB supports: ${IUSE_VIDEO_CARDS} all none" fi + if [[ -z ${INPUT_DRIVERS} ]] ; then + ewarn "All input drivers will be built since you did not specify" + ewarn "via the INPUT_DRIVERS variable which input drivers to use." + einfo "DirectFB supports: ${IUSE_INPUT_DRIVERS} all none" + fi } src_unpack() { @@ -51,14 +57,22 @@ } src_compile() { - local vidcards card + local vidcards card input inputdrivers for card in ${VIDEO_CARDS} ; do has ${card} ${IUSE_VIDEO_CARDS} && vidcards="${vidcards},${card}" done + for input in ${INPUT_DRIVERS} ; do + has ${input} ${IUSE_INPUT_DRIVERS} && inputdrivers="${inputdrivers},${input}" + done + [[ -z ${vidcards} ]] \ && vidcards="all" \ || vidcards="${vidcards:1}" + [[ -z ${inputdrivers} ]] \ + && inputdrivers="all" \ + || inputdrivers="${inputdrivers:1}" + local sdlconf="--disable-sdl" if use sdl ; then # since SDL can link against DirectFB and trigger a @@ -86,6 +100,7 @@ $(use_enable sysfs) \ ${sdlconf} \ --with-gfxdrivers="${vidcards}" \ + --with-inputdrivers="${inputdrivers}" \ || die emake || die } @@ -105,4 +120,10 @@ ewarn "breaks DirectFB related applications." ewarn "Please run \"revdep-rebuild\" which can be" ewarn "found by emerging the package 'gentoolkit'." + ewarn + ewarn "If you have an ALPS touchpad, then you might" + ewarn "get your mouse unexpectedly set in absolute" + ewarn "mode in all DirectFB applications." + ewarn "This can be fixed by removing linuxinput from" + ewarn "INPUT_DRIVERS." }