From owner-freebsd-multimedia@FreeBSD.ORG Fri May 6 22:16:15 2011 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A774106566B; Fri, 6 May 2011 22:16:15 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 373A88FC17; Fri, 6 May 2011 22:16:14 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id C523C1E00231; Sat, 7 May 2011 00:16:13 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.3) with ESMTP id p46LMaq5022982; Fri, 6 May 2011 23:22:36 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id p46LMaRR022981; Fri, 6 May 2011 23:22:36 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Fri, 6 May 2011 23:22:36 +0200 To: Juergen Lock Message-ID: <20110506212236.GA22733@triton8.kn-bremen.de> References: <20110503215642.GA26299@triton8.kn-bremen.de> <20110504111252.11606aa6la3gcsso@webmail.leidinger.net> <4DC11B6D.7000205@yandex.ru> <20110504115312.223533eznfjofcow@webmail.leidinger.net> <20110504182740.GB58980@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110504182740.GB58980@triton8.kn-bremen.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: kwm@FreeBSD.org, Alexander Leidinger , hselasky@FreeBSD.org, avg@FreeBSD.org, freebsd-multimedia@FreeBSD.org, ae@FreeBSD.org, freebsd-emulation@FreeBSD.org Subject: Re: skype 2.1.0.81; alternate versions of the Linuxolator v4l2 patches 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, 06 May 2011 22:16:15 -0000 On Wed, May 04, 2011 at 08:27:40PM +0200, Juergen Lock wrote: > On Wed, May 04, 2011 at 11:53:12AM +0200, Alexander Leidinger wrote: > > > > Quoting "Andrey V. Elsukov" (from Wed, 04 May 2011 > > 13:25:01 +0400): > > > > > On 04.05.2011 13:12, Alexander Leidinger wrote: > > >> want to provide a v4l2 kld, there is no way to know if the kernel > > >> has support already or not > > > > > > AFAIK, we have FEATURE() macro for that purpose. > > > > Done: > > linuxulator_v4l > > linuxulator_v4l2 > > Thanx you, also for committing! :) > > I'll see if I can make a port later. First version ready, also at: http://people.freebsd.org/~nox/dvb/linux_v4l2wrapper-kmod.shar Pleas test/comment... :) Thanx, Juergen # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # linux_v4l2wrapper-kmod/ # linux_v4l2wrapper-kmod/Makefile # linux_v4l2wrapper-kmod/distinfo # linux_v4l2wrapper-kmod/pkg-descr # linux_v4l2wrapper-kmod/files/ # linux_v4l2wrapper-kmod/files/patch-Makefile # linux_v4l2wrapper-kmod/files/patch-linux_v4l2.c # echo c - linux_v4l2wrapper-kmod/ mkdir -p linux_v4l2wrapper-kmod/ > /dev/null 2>&1 echo x - linux_v4l2wrapper-kmod/Makefile sed 's/^X//' >linux_v4l2wrapper-kmod/Makefile << 'f00048d7c6818b8fd8b16fa54c7100d8' X# New ports collection makefile for: linux_v4l2wrapper-kmod X# Date created: Fri May 6 22:30:00 CEST 2011 X# Whom: nox@FreeBSD.org X# X# $FreeBSD: $ X# X XPORTNAME= linux_v4l2wrapper-kmod XPORTVERSION= 1.0 XCATEGORIES= multimedia kld XMASTER_SITES= http://people.freebsd.org/~ae/ XDISTNAME= linux_v4l2_kld XEXTRACT_SUFX= .tgz X XMAINTAINER= nox@FreeBSD.org XCOMMENT= Linux compatibility layer - V4L2 ioctl handler X XONLY_FOR_ARCHS= i386 amd64 XPATCH_STRIP= -p1 XWRKSRC= ${WRKDIR}/linux_v4l2 X X.include X XPLIST_FILES+= "@cwd /" XPLIST_FILES+= ${KMODDIR:C,^/,,}/linux_v4l2wrapper.ko XPLIST_FILES+= "@exec kldxref ${KMODDIR}" XPLIST_FILES+= "@unexec kldxref ${KMODDIR}" X X# install where x11/nvidia-driver does also: XKMODDIR= /boot/modules X XMAKE_ENV+= KMODDIR="${KMODDIR}" X XSYSDIR?= ${SRC_BASE}/sys XMAKE_ENV+= SYSDIR="${SYSDIR}" X XCFLAGS+= ${DEBUG_FLAGS} X X# try to avoid child process when finding out if already in the kernel X.if ${OSVERSION} > 900036 XINBASE= 1 X.else X.if ${OSVERSION} == 900036 XINBASE!= ($(SYSCTL) -n kern.features.linuxulator_v4l2 2>/dev/null 2>/dev/null || true) X.else XINBASE= 0 X.endif X.endif X X.if ${INBASE} == "1" XIGNORE= is already in kernel X.else X.if !exists(${SYSDIR}/Makefile) XIGNORE= requires kernel source to be installed X.endif X.endif X X.include f00048d7c6818b8fd8b16fa54c7100d8 echo x - linux_v4l2wrapper-kmod/distinfo sed 's/^X//' >linux_v4l2wrapper-kmod/distinfo << '26d01d887cd79f3f861aedca6c373c9f' XSHA256 (linux_v4l2_kld.tgz) = 1d8d4fad58bc829f85541d41d5e29425e1453375d6b25848c20eea677119ee32 XSIZE (linux_v4l2_kld.tgz) = 22170 26d01d887cd79f3f861aedca6c373c9f echo x - linux_v4l2wrapper-kmod/pkg-descr sed 's/^X//' >linux_v4l2wrapper-kmod/pkg-descr << '693c30a938bcc6461a28e97353ca5346' XThis kld adds V4L2 ioctl handling to the Linux compatibility layer Xso that Linux apps can talk to V4L2 devices (like webcams) via X/dev/videoX. The patches this kld is based on have been committed Xto FreeBSD 9.0-current now so this port is only needed on eaerlier Xversions. X XNote this port does not contain actual V4L2 drivers, those are Xprovided by e.g. the multimedia/webcamd port. X XWWW: http://people.freebsd.org/~nox/dvb/ 693c30a938bcc6461a28e97353ca5346 echo c - linux_v4l2wrapper-kmod/files/ mkdir -p linux_v4l2wrapper-kmod/files/ > /dev/null 2>&1 echo x - linux_v4l2wrapper-kmod/files/patch-Makefile sed 's/^X//' >linux_v4l2wrapper-kmod/files/patch-Makefile << 'f867d3b6a52dfbd690ce66d177d0b239' X--- a/Makefile X+++ b/Makefile X@@ -1,11 +1,11 @@ X # $FreeBSD$ X X-.if ${MACHINE_CPUARCH} == "amd64" X+.if ${MACHINE_ARCH} == "amd64" X SFX= 32 X CFLAGS+=-DCOMPAT_FREEBSD32 -DCOMPAT_LINUX32 X .endif X X-KMOD= linux_v4l2 X+KMOD= linux_v4l2wrapper X SRCS= linux_v4l2.c X X .include f867d3b6a52dfbd690ce66d177d0b239 echo x - linux_v4l2wrapper-kmod/files/patch-linux_v4l2.c sed 's/^X//' >linux_v4l2wrapper-kmod/files/patch-linux_v4l2.c << 'fcbef861bf23ec0e44d09a68f94a3bfb' X--- a/linux_v4l2.c X+++ b/linux_v4l2.c X@@ -47,8 +47,6 @@ __FBSDID("$FreeBSD$"); X #endif X X #include X-#include X-#include X X #include "linux_v4l2_ioctl.h" X #include "linux_videodev2.h" fcbef861bf23ec0e44d09a68f94a3bfb exit