vic patches for video4linux support

Jeremy Messenger mezz7 at
Fri Feb 9 18:42:18 UTC 2007

On Fri, 09 Feb 2007 09:33:53 -0600, Luigi Rizzo <rizzo at> wrote:

> attached are some small patches to let mbone/vic
> detect and make use of video4linux devices including
> the webcam drivers recently made available as
> multimedia/linux-gspca-kmod and multimedia/linux-ov511-kmod
> If there are no objections i will commit them, and also a
> v4l_compat>=1.0.20060801:${PORTSDIR}/multimedia/v4l_compat
> line in the main Makefile to set a proper build environment.
> In detail, the patches do the following:
> + fix configure to look for videodev.h in the place where it is on
>   FreeBSD, and disable v4l2 support for the time being as there
>   is none as far as i know;

Disapprove because of hardcore. You should be replace from patch-configure  
to REINPLACE_CMD with ${LOCALBASE}. Something like this (untest):

	@${REINPLACE_CMD} -e 's|/usr/include/linux|${LOCALBASE}/include/linux|g' \

If it's too general, then patch in configure by replace from hardcore path  
to %%LOCALBASE%% in somewhere for REINPLACE_CMD can know where to replace  

> + add -I/usr/local/include in the search path, for the above file;

Why? The CONFIGURE_ENV doesn't work?

In Makefile at 44 line:
-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \

> + patch the v4l detection module so that it doesn't exit if the driver
>   does not support mmap, and instead fall back to read()

No object if it works for you.


> cheers
> luigi

mezz7 at  -  mezz at
FreeBSD GNOME Team  -  FreeBSD Multimedia Hat (ports, not src)  -  gnome at  -  multimedia at

More information about the freebsd-multimedia mailing list