In order to use the TV-output from my Hauppauge PVR-350, I wanted to use the ivtvdev framebuffer (which is supposed to be better than xorg's framebuffer). I had to manually install it by using ebuild to unpack my xorg-x11 sources, then I downloaded ivtv_xdriver_src_0.10.6.tgz. After decompressing it, I moved the ivtv directory to
/var/tmp/portage/xorg-x11-6.8.2-r6/work/xc/programs/Xserver/hw/xfree86/drivers/
I changed to that directory and ran
xmkmf ../../../../../../
That command apparently made a bad Makefile because the subsequent "make" threw an error. I fixed the error by editing the Makefile to add an "endef" after one of the
# define ivtv
lines. After that, running "make" produced ivtvdev_drv.o, which I copied to /usr/X11R6/lib/modules/ and now ivtvdev works like it should.