2013-05-11 12:58:40 +00:00
|
|
|
# Created by: Raaf <freebsd@luna.afraid.org>
|
2006-04-29 13:47:23 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pwcbsd
|
2007-10-09 12:42:20 +00:00
|
|
|
PORTVERSION= 1.4.1
|
2012-02-18 10:18:33 +00:00
|
|
|
PORTREVISION= 9
|
2007-06-29 09:16:42 +00:00
|
|
|
CATEGORIES= multimedia sysutils kld
|
2006-10-07 08:44:20 +00:00
|
|
|
MASTER_SITES= http://raaf.atspace.org/ \
|
2008-11-21 18:58:27 +00:00
|
|
|
http://www.bsd-geek.de/FreeBSD/distfiles/ \
|
2006-10-07 08:44:20 +00:00
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= miwi
|
2006-04-29 13:47:23 +00:00
|
|
|
|
2008-11-21 18:58:27 +00:00
|
|
|
MAINTAINER= lme@FreeBSD.org
|
2006-04-29 13:47:23 +00:00
|
|
|
COMMENT= The Linux pwc webcam driver ported to FreeBSD
|
|
|
|
|
2010-01-16 20:49:48 +00:00
|
|
|
CONFLICTS= pwcview-[0-9]*
|
|
|
|
|
2006-04-29 13:47:23 +00:00
|
|
|
MAN4= pwc.4
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
NO_PACKAGE= should be recompiled for a particular FreeBSD kernel
|
|
|
|
|
2013-05-11 12:58:40 +00:00
|
|
|
OPTIONS_DEFINE= PROGRAMS MMAP
|
|
|
|
OPTIONS_DEFAULT= PROGRAMS
|
|
|
|
PROGRAMS_DESC= Build the programs
|
|
|
|
MMAP_DESC= Enable mmap support (MAY CRASH YOUR SYSTEM)
|
2006-06-16 20:16:24 +00:00
|
|
|
|
2013-05-11 12:58:40 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2006-04-29 13:47:23 +00:00
|
|
|
|
2009-05-28 18:53:53 +00:00
|
|
|
EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile.kld \
|
|
|
|
${FILESDIR}/extra-patch-pwc-ctrl.c \
|
|
|
|
${FILESDIR}/extra-patch-pwc-v4l.c \
|
|
|
|
${FILESDIR}/extra-patch-pwc.c \
|
|
|
|
${FILESDIR}/extra-patch-pwc.h
|
|
|
|
|
2010-12-17 03:54:54 +00:00
|
|
|
.if !exists(${SRC_BASE}/sys/Makefile)
|
2006-04-29 13:47:23 +00:00
|
|
|
IGNORE= requires kernel source files
|
|
|
|
.endif
|
|
|
|
|
2013-05-11 12:58:40 +00:00
|
|
|
.if ${PORT_OPTIONS:MMMAP}
|
2006-06-16 20:16:24 +00:00
|
|
|
ALL_TARGET= mmap
|
|
|
|
.else
|
|
|
|
ALL_TARGET= all
|
|
|
|
.endif
|
2013-05-11 12:58:40 +00:00
|
|
|
.if ${PORT_OPTIONS:MPROGRAMS}
|
2006-06-16 20:16:24 +00:00
|
|
|
ALL_TARGET+= pwcview
|
2006-04-29 13:47:23 +00:00
|
|
|
PROGRAMS= pwcview
|
2010-02-05 11:46:55 +00:00
|
|
|
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg
|
2006-04-29 13:47:23 +00:00
|
|
|
MAN1= pwcview.1
|
|
|
|
USE_SDL= sdl
|
|
|
|
PLIST_SUB+= PROGRAMS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PROGRAMS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-09-24 19:30:46 +00:00
|
|
|
post-patch:
|
2013-05-11 12:58:40 +00:00
|
|
|
.if ${PORT_OPTIONS:MPROGRAMS}
|
2006-09-24 19:30:46 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile
|
|
|
|
.endif
|
|
|
|
|
2006-04-29 13:47:23 +00:00
|
|
|
post-install:
|
|
|
|
${INSTALL_MAN} ${MAN4:S|^|${WRKSRC}/|} ${PREFIX}/man/man4
|
2013-05-11 12:58:40 +00:00
|
|
|
.if ${PORT_OPTIONS:MPROGRAMS}
|
2006-04-29 13:47:23 +00:00
|
|
|
${INSTALL_PROGRAM} ${PROGRAMS:S|^|${WRKSRC}/|} ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${MAN1:S|^|${WRKSRC}/|} ${PREFIX}/man/man1
|
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2013-05-11 12:58:40 +00:00
|
|
|
.include <bsd.port.mk>
|