Date: Fri, 09 Feb 2007 12:44:06 -0600 From: "Jeremy Messenger" <mezz7@cox.net> To: "Luigi Rizzo" <rizzo@icir.org> Cc: mi@aldan.algebra.com, multimedia@freebsd.org Subject: Re: vic patches for video4linux support Message-ID: <op.tnhvnsg49aq2h7@mezz.mezzweb.com> In-Reply-To: <20070209073353.A99372@xorpc.icir.org> References: <20070209073353.A99372@xorpc.icir.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 09 Feb 2007 09:33:53 -0600, Luigi Rizzo <rizzo@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@cox.net - mezz@FreeBSD.org
FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src)
http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org
http://wiki.freebsd.org/multimedia - multimedia@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.tnhvnsg49aq2h7>
