2006-04-29 15:47:23 +02:00
|
|
|
# New ports collection makefile for: pwcbsd
|
|
|
|
# Date created: 17 Feb 2006
|
|
|
|
# Whom: Raaf <freebsd@luna.afraid.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pwcbsd
|
2007-10-09 14:42:20 +02:00
|
|
|
PORTVERSION= 1.4.1
|
2008-03-13 15:28:35 +01:00
|
|
|
PORTREVISION= 1
|
2007-06-29 11:16:42 +02:00
|
|
|
CATEGORIES= multimedia sysutils kld
|
2006-10-07 10:44:20 +02:00
|
|
|
MASTER_SITES= http://raaf.atspace.org/ \
|
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= miwi
|
2006-04-29 15:47:23 +02:00
|
|
|
|
2008-03-20 22:05:48 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-04-29 15:47:23 +02:00
|
|
|
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
|
|
|
|
|
2006-06-16 22:16:24 +02:00
|
|
|
OPTIONS= PROGRAMS "Build the programs" on \
|
|
|
|
MMAP "Enable mmap support (MAY CRASH YOUR SYSTEM)" off
|
|
|
|
|
2006-04-29 15:47:23 +02:00
|
|
|
.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
|
|
|
|
|
2006-06-16 22:16:24 +02:00
|
|
|
.if defined(WITH_MMAP)
|
|
|
|
ALL_TARGET= mmap
|
|
|
|
.else
|
|
|
|
ALL_TARGET= all
|
|
|
|
.endif
|
2006-04-29 15:47:23 +02:00
|
|
|
.if !defined(WITHOUT_PROGRAMS)
|
2006-06-16 22:16:24 +02:00
|
|
|
ALL_TARGET+= pwcview
|
2006-04-29 15:47:23 +02:00
|
|
|
PROGRAMS= pwcview
|
2006-06-15 23:33:43 +02:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
|
2006-04-29 15:47:23 +02:00
|
|
|
MAN1= pwcview.1
|
|
|
|
USE_SDL= sdl
|
|
|
|
PLIST_SUB+= PROGRAMS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PROGRAMS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-09-24 21:30:46 +02:00
|
|
|
post-patch:
|
|
|
|
.if !defined(WITHOUT_PROGRAMS)
|
|
|
|
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile
|
|
|
|
.endif
|
|
|
|
|
2006-04-29 15:47:23 +02:00
|
|
|
post-install:
|
|
|
|
${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>
|