Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Feb 2006 07:19:15 +0100 (CET)
From:      Raaf <raaf@luna.afraid.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/93464: New port: multimedia/pwcbsd  USB webcam driver
Message-ID:  <20060217061915.B83274F@gw.luna.afraid.org>
Resent-Message-ID: <200602170620.k1H6K4OM097169@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         93464
>Category:       ports
>Synopsis:       New port: multimedia/pwcbsd  USB webcam driver
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 17 06:20:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Raaf
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
>Environment:
FreeBSD 6.0-RELEASE


	
>Description:
pwcbsd provides a FreeBSD kernel module that
video4linux enabled and raw yuv420p applications
can use to access several USB based webcams.
>How-To-Repeat:
	
>Fix:

# 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:
#
#	/usr/ports/multimedia/pwcbsd/
#	/usr/ports/multimedia/pwcbsd/pkg-plist
#	/usr/ports/multimedia/pwcbsd/pkg-message
#	/usr/ports/multimedia/pwcbsd/pkg-descr
#	/usr/ports/multimedia/pwcbsd/Makefile
#	/usr/ports/multimedia/pwcbsd/distinfo
#
echo c - /usr/ports/multimedia/pwcbsd/
mkdir -p /usr/ports/multimedia/pwcbsd/ > /dev/null 2>&1
echo x - /usr/ports/multimedia/pwcbsd/pkg-plist
sed 's/^X//' >/usr/ports/multimedia/pwcbsd/pkg-plist << 'END-of-/usr/ports/multimedia/pwcbsd/pkg-plist'
X%%PROGRAMS%%bin/pwcview
Xinclude/linux/videodev.h
X@dirrm include/linux
X@cwd /boot/modules
Xpwc.ko
X@exec kldxref %D
X@unexec kldxref %D
END-of-/usr/ports/multimedia/pwcbsd/pkg-plist
echo x - /usr/ports/multimedia/pwcbsd/pkg-message
sed 's/^X//' >/usr/ports/multimedia/pwcbsd/pkg-message << 'END-of-/usr/ports/multimedia/pwcbsd/pkg-message'
X===============================================================================
X
XThis port has installed the pwc kernel module.
X
XTo load the kernel module immediately, type the following command:
X
X	kldload pwc
X
XIf your webcam was already plugged in before the kernel module
Xwas loaded you may have to unplug it first.
X
XTo load the kernel module at boot, add the following line to
X/boot/loader.conf:
X
X	pwc_load="YES"
X
X===============================================================================
END-of-/usr/ports/multimedia/pwcbsd/pkg-message
echo x - /usr/ports/multimedia/pwcbsd/pkg-descr
sed 's/^X//' >/usr/ports/multimedia/pwcbsd/pkg-descr << 'END-of-/usr/ports/multimedia/pwcbsd/pkg-descr'
XThis port provides a FreeBSD kernel module that
Xvideo4linux enabled and raw yuv420p applications
Xcan use to access several USB based webcams.
X
XWWW: http://www.saillard.org/linux/pwc/
END-of-/usr/ports/multimedia/pwcbsd/pkg-descr
echo x - /usr/ports/multimedia/pwcbsd/Makefile
sed 's/^X//' >/usr/ports/multimedia/pwcbsd/Makefile << 'END-of-/usr/ports/multimedia/pwcbsd/Makefile'
X# New ports collection makefile for:	pwcbsd
X# Date created:				17 Feb 2006
X# Whom:					Raaf <freebsd@luna.afraid.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	pwcbsd
XPORTVERSION=	1.0
XCATEGORIES=	multimedia devel
XMASTER_SITES=	http://raaf.atspace.org/
X
XMAINTAINER=	freebsd@luna.afraid.org
XCOMMENT=	The Linux pwc webcam driver ported to FreeBSD
X
XMAN4=	pwc.4
X
XWRKSRC=	${WRKDIR}/${PORTNAME}
XNO_PACKAGE=	should be recompiled for a particular FreeBSD kernel
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 504000
XIGNORE=		requires FreeBSD 5.4 or superior
X.endif
X
X.if !exists(/usr/src/sys/Makefile)
XIGNORE=		requires kernel source files
X.endif
X
X.if !defined(WITHOUT_PROGRAMS)
XALL_TARGET=	all pwcview
XPROGRAMS=	pwcview
XMAN1=	pwcview.1
XUSE_SDL=	sdl
XPLIST_SUB+=	PROGRAMS=""
X.else
XPLIST_SUB+=	PROGRAMS="@comment "
X.endif
X
Xpre-everything::
X.if !defined(WITHOUT_PROGRAMS)
X	@${ECHO_MSG} "=================================================="
X	@${ECHO_MSG} "You may specify the following on the command line:"
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "WITHOUT_PROGRAMS=yes	to only build the driver "
X	@${ECHO_MSG} "=================================================="
X.endif
X
Xpost-patch:
X.if !defined(WITHOUT_PROGRAMS)
X	@${REINPLACE_CMD} -e 's|sdl11-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile
X.endif
X
Xpost-install:
X	${MKDIR} ${PREFIX}/include/linux
X	${INSTALL_DATA} ${WRKSRC}/videodev.h ${PREFIX}/include/linux
X	${INSTALL_MAN} ${MAN4:S|^|${WRKSRC}/|} ${PREFIX}/man/man4
X.if !defined(WITHOUT_PROGRAMS)
X	${INSTALL_PROGRAM} ${PROGRAMS:S|^|${WRKSRC}/|} ${PREFIX}/bin
X	${INSTALL_MAN} ${MAN1:S|^|${WRKSRC}/|} ${PREFIX}/man/man1
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-/usr/ports/multimedia/pwcbsd/Makefile
echo x - /usr/ports/multimedia/pwcbsd/distinfo
sed 's/^X//' >/usr/ports/multimedia/pwcbsd/distinfo << 'END-of-/usr/ports/multimedia/pwcbsd/distinfo'
XMD5 (pwcbsd-1.0.tar.gz) = bcc872b02c44d9b902ce63fb92567ff1
XSHA256 (pwcbsd-1.0.tar.gz) = 4b1b42d0fca32247d1fa449084619cd44f0a76f9a9e265a65d7fc44a91bb8c21
XSIZE (pwcbsd-1.0.tar.gz) = 60920
END-of-/usr/ports/multimedia/pwcbsd/distinfo
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



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