This port provides a FreeBSD kernel module that
video4linux enabled and raw yuv420p applications can use to access several USB based webcams. WWW: http://www.saillard.org/linux/pwc/ PR: ports/93464 Submitted by: Raaf <raaf@luna.afraid.org>
This commit is contained in:
parent
c7179e5ec5
commit
be0b65d43e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=160766
6 changed files with 98 additions and 0 deletions
|
@ -152,6 +152,7 @@
|
|||
SUBDIR += ppm2fli
|
||||
SUBDIR += projectx
|
||||
SUBDIR += pvr250
|
||||
SUBDIR += pwcbsd
|
||||
SUBDIR += py-gstreamer
|
||||
SUBDIR += qdvdauthor
|
||||
SUBDIR += quodlibet
|
||||
|
|
65
multimedia/pwcbsd/Makefile
Normal file
65
multimedia/pwcbsd/Makefile
Normal file
|
@ -0,0 +1,65 @@
|
|||
# New ports collection makefile for: pwcbsd
|
||||
# Date created: 17 Feb 2006
|
||||
# Whom: Raaf <freebsd@luna.afraid.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pwcbsd
|
||||
PORTVERSION= 1.0
|
||||
CATEGORIES= multimedia sysutils
|
||||
MASTER_SITES= http://raaf.atspace.org/
|
||||
|
||||
MAINTAINER= freebsd@luna.afraid.org
|
||||
COMMENT= The Linux pwc webcam driver ported to FreeBSD
|
||||
|
||||
MAN4= pwc.4
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
NO_PACKAGE= should be recompiled for a particular FreeBSD kernel
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 504000
|
||||
IGNORE= requires FreeBSD 5.4 or superior
|
||||
.endif
|
||||
|
||||
.if !exists(/usr/src/sys/Makefile)
|
||||
IGNORE= requires kernel source files
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_PROGRAMS)
|
||||
ALL_TARGET= all pwcview
|
||||
PROGRAMS= pwcview
|
||||
MAN1= pwcview.1
|
||||
USE_SDL= sdl
|
||||
PLIST_SUB+= PROGRAMS=""
|
||||
.else
|
||||
PLIST_SUB+= PROGRAMS="@comment "
|
||||
.endif
|
||||
|
||||
pre-everything::
|
||||
.if !defined(WITHOUT_PROGRAMS)
|
||||
@${ECHO_MSG} "=================================================="
|
||||
@${ECHO_MSG} "You may specify the following on the command line:"
|
||||
@${ECHO_MSG} ""
|
||||
@${ECHO_MSG} "WITHOUT_PROGRAMS=yes to only build the driver "
|
||||
@${ECHO_MSG} "=================================================="
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.if !defined(WITHOUT_PROGRAMS)
|
||||
@${REINPLACE_CMD} -e 's|sdl11-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${PREFIX}/include/linux
|
||||
${INSTALL_DATA} ${WRKSRC}/videodev.h ${PREFIX}/include/linux
|
||||
${INSTALL_MAN} ${MAN4:S|^|${WRKSRC}/|} ${PREFIX}/man/man4
|
||||
.if !defined(WITHOUT_PROGRAMS)
|
||||
${INSTALL_PROGRAM} ${PROGRAMS:S|^|${WRKSRC}/|} ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${MAN1:S|^|${WRKSRC}/|} ${PREFIX}/man/man1
|
||||
.endif
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
multimedia/pwcbsd/distinfo
Normal file
3
multimedia/pwcbsd/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (pwcbsd-1.0.tar.gz) = bcc872b02c44d9b902ce63fb92567ff1
|
||||
SHA256 (pwcbsd-1.0.tar.gz) = 4b1b42d0fca32247d1fa449084619cd44f0a76f9a9e265a65d7fc44a91bb8c21
|
||||
SIZE (pwcbsd-1.0.tar.gz) = 60920
|
5
multimedia/pwcbsd/pkg-descr
Normal file
5
multimedia/pwcbsd/pkg-descr
Normal file
|
@ -0,0 +1,5 @@
|
|||
This port provides a FreeBSD kernel module that
|
||||
video4linux enabled and raw yuv420p applications
|
||||
can use to access several USB based webcams.
|
||||
|
||||
WWW: http://www.saillard.org/linux/pwc/
|
17
multimedia/pwcbsd/pkg-message
Normal file
17
multimedia/pwcbsd/pkg-message
Normal file
|
@ -0,0 +1,17 @@
|
|||
===============================================================================
|
||||
|
||||
This port has installed the pwc kernel module.
|
||||
|
||||
To load the kernel module immediately, type the following command:
|
||||
|
||||
kldload pwc
|
||||
|
||||
If your webcam was already plugged in before the kernel module
|
||||
was loaded you may have to unplug it first.
|
||||
|
||||
To load the kernel module at boot, add the following line to
|
||||
/boot/loader.conf:
|
||||
|
||||
pwc_load="YES"
|
||||
|
||||
===============================================================================
|
7
multimedia/pwcbsd/pkg-plist
Normal file
7
multimedia/pwcbsd/pkg-plist
Normal file
|
@ -0,0 +1,7 @@
|
|||
%%PROGRAMS%%bin/pwcview
|
||||
include/linux/videodev.h
|
||||
@dirrmtry include/linux
|
||||
@cwd /boot/modules
|
||||
pwc.ko
|
||||
@exec kldxref %D
|
||||
@unexec kldxref %D
|
Loading…
Reference in a new issue