mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
4ba19e7015
ports, or had been recently unblocked. While here, pet portlint. Approved by: portmgr (tier-2 blanket)
74 lines
1.7 KiB
Makefile
74 lines
1.7 KiB
Makefile
# Created by: Raaf <freebsd@luna.afraid.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pwcbsd
|
|
PORTVERSION= 1.4.1
|
|
PORTREVISION= 12
|
|
CATEGORIES= multimedia sysutils kld
|
|
MASTER_SITES= http://raaf.atspace.org/ \
|
|
http://www.bsd-geek.de/FreeBSD/distfiles/ \
|
|
LOCAL/miwi
|
|
|
|
MAINTAINER= lme@FreeBSD.org
|
|
COMMENT= The Linux pwc webcam driver ported to FreeBSD
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BROKEN_powerpc64= fails to compile: pcpu.h:187: error: size of array '__assert_0' is negative
|
|
|
|
CONFLICTS= pwcview-[0-9]*
|
|
|
|
SSP_UNSAFE= kernel module does not support ssp
|
|
|
|
USES= kmod
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
OPTIONS_DEFINE= PROGRAMS MMAP
|
|
OPTIONS_DEFAULT= PROGRAMS
|
|
PROGRAMS_DESC= Build the programs
|
|
MMAP_DESC= Enable mmap support (MAY CRASH YOUR SYSTEM)
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
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
|
|
|
|
.if !exists(${SRC_BASE}/sys/Makefile)
|
|
IGNORE= requires kernel source files
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMMAP}
|
|
ALL_TARGET= mmap
|
|
.else
|
|
ALL_TARGET= all
|
|
.endif
|
|
.if ${PORT_OPTIONS:MPROGRAMS}
|
|
ALL_TARGET+= pwcview
|
|
PROGRAMS= pwcview
|
|
USES+= jpeg
|
|
USE_SDL= sdl
|
|
PLIST_SUB+= PROGRAMS=""
|
|
.else
|
|
PLIST_SUB+= PROGRAMS="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
.if ${PORT_OPTIONS:MPROGRAMS}
|
|
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile
|
|
.endif
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${KMODDIR}
|
|
${INSTALL_KLD} ${WRKSRC}/pwc.ko ${STAGEDIR}${KMODDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/pwc.4 ${STAGEDIR}${PREFIX}/man/man4
|
|
.if ${PORT_OPTIONS:MPROGRAMS}
|
|
${INSTALL_PROGRAM} ${PROGRAMS:S|^|${WRKSRC}/|} ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${PROGRAMS:S|^|${WRKSRC}/|}.1 ${STAGEDIR}${PREFIX}/man/man1
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|