vic patches for video4linux support
Jeremy Messenger
mezz7 at cox.net
Fri Feb 9 18:42:18 UTC 2007
On Fri, 09 Feb 2007 09:33:53 -0600, Luigi Rizzo <rizzo at icir.org> 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
> BUILD_DEPENDS+=
> 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):
==================================
post-patch:
@${REINPLACE_CMD} -e 's|/usr/include/linux|${LOCALBASE}/include/linux|g' \
${WRKSRC}/configure
==================================
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
them.
> + 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:
==================================
CONFIGURE_ENV= CPPFLAGS="-I${WRKSRC}/include ${CPPFLAGS}
-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
==================================
> + 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,
Mezz
> cheers
> luigi
--
mezz7 at cox.net - mezz at FreeBSD.org
FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src)
http://www.FreeBSD.org/gnome/ - gnome at FreeBSD.org
http://wiki.freebsd.org/multimedia - multimedia at FreeBSD.org
More information about the freebsd-multimedia
mailing list