From owner-freebsd-multimedia@FreeBSD.ORG Fri Feb 9 18:42:18 2007 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AF0E916A401 for ; Fri, 9 Feb 2007 18:42:18 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from centrmmtao06.cox.net (centrmmtao06.cox.net [70.168.83.78]) by mx1.freebsd.org (Postfix) with ESMTP id 4236913C4A6 for ; Fri, 9 Feb 2007 18:42:15 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by centrmmtao06.cox.net (InterMail vM.6.01.06.03 201-2131-130-104-20060516) with ESMTP id <20070209184215.PAQE26738.centrmmtao06.cox.net@eastrmimpo01.cox.net>; Fri, 9 Feb 2007 13:42:15 -0500 Received: from mezz.mezzweb.com ([24.255.149.218]) by eastrmimpo01.cox.net with bizsmtp id MWiE1W00h4iy4EG0000000; Fri, 09 Feb 2007 13:42:14 -0500 Date: Fri, 09 Feb 2007 12:44:06 -0600 To: "Luigi Rizzo" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <20070209073353.A99372@xorpc.icir.org> Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: <20070209073353.A99372@xorpc.icir.org> User-Agent: Opera Mail/9.10 (Linux) Cc: mi@aldan.algebra.com, multimedia@freebsd.org Subject: Re: vic patches for video4linux support X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2007 18:42:18 -0000 On Fri, 09 Feb 2007 09:33:53 -0600, Luigi Rizzo 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+=3D = > v4l_compat>=3D1.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-configu= re = to REINPLACE_CMD with ${LOCALBASE}. Something like this (untest): =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D post-patch: @${REINPLACE_CMD} -e 's|/usr/include/linux|${LOCALBASE}/include/linux|g= ' \ ${WRKSRC}/configure =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D If it's too general, then patch in configure by replace from hardcore pa= th = to %%LOCALBASE%% in somewhere for REINPLACE_CMD can know where to replac= e = 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: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D CONFIGURE_ENV=3D CPPFLAGS=3D"-I${WRKSRC}/include ${CPPFLAGS} = -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \ LDFLAGS=3D"${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LI= BS}" =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + 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