Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 May 2011 23:22:36 +0200
From:      Juergen Lock <nox@jelal.kn-bremen.de>
To:        Juergen Lock <nox@jelal.kn-bremen.de>
Cc:        kwm@FreeBSD.org, Alexander Leidinger <netchild@FreeBSD.org>, 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
Message-ID:  <20110506212236.GA22733@triton8.kn-bremen.de>
In-Reply-To: <20110504182740.GB58980@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>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <bu7cher@yandex.ru> (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 <bsd.port.pre.mk>
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 <bsd.port.post.mk>
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 <bsd.kmod.mk>
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 <compat/linux/linux_ioctl.h>
X-#include <compat/linux/linux_videodev.h>
X-#include <compat/linux/linux_videodev_compat.h>
X 
X #include "linux_v4l2_ioctl.h"
X #include "linux_videodev2.h"
fcbef861bf23ec0e44d09a68f94a3bfb
exit




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110506212236.GA22733>