From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Feb 17 06:20:05 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F28616A428 for ; Fri, 17 Feb 2006 06:20:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABBA843D48 for ; Fri, 17 Feb 2006 06:20:04 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1H6K4G5097170 for ; Fri, 17 Feb 2006 06:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1H6K4OM097169; Fri, 17 Feb 2006 06:20:04 GMT (envelope-from gnats) Resent-Date: Fri, 17 Feb 2006 06:20:04 GMT Resent-Message-Id: <200602170620.k1H6K4OM097169@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Raaf Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC28216A420 for ; Fri, 17 Feb 2006 06:19:17 +0000 (GMT) (envelope-from raaf@luna.afraid.org) Received: from gw.luna.afraid.org (lls-c-13303.adsl.wanadoo.nl [81.69.81.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5693743D46 for ; Fri, 17 Feb 2006 06:19:17 +0000 (GMT) (envelope-from raaf@luna.afraid.org) Received: by gw.luna.afraid.org (Postfix, from userid 1001) id B83274F; Fri, 17 Feb 2006 07:19:15 +0100 (CET) Message-Id: <20060217061915.B83274F@gw.luna.afraid.org> Date: Fri, 17 Feb 2006 07:19:15 +0100 (CET) From: Raaf To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/93464: New port: multimedia/pwcbsd USB webcam driver X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Raaf List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2006 06:20:05 -0000 >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 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 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 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: