aboutsummaryrefslogtreecommitdiff
path: root/multimedia/pwcbsd
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2006-06-16 20:16:24 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2006-06-16 20:16:24 +0000
commit5e7831b31d59fc75dccd8f71002fea08c361d05b (patch)
tree76664b9aef96d2de2158e773cd4e3b90b17ef1af /multimedia/pwcbsd
parent1b41a788a06cb8df132c37314957e7c4e753b0bf (diff)
downloadports-5e7831b31d59fc75dccd8f71002fea08c361d05b.tar.gz
ports-5e7831b31d59fc75dccd8f71002fea08c361d05b.zip
Notes
Diffstat (limited to 'multimedia/pwcbsd')
-rw-r--r--multimedia/pwcbsd/Makefile19
-rw-r--r--multimedia/pwcbsd/pkg-message5
2 files changed, 14 insertions, 10 deletions
diff --git a/multimedia/pwcbsd/Makefile b/multimedia/pwcbsd/Makefile
index 9358734c791e..6c94de5ede89 100644
--- a/multimedia/pwcbsd/Makefile
+++ b/multimedia/pwcbsd/Makefile
@@ -18,6 +18,9 @@ MAN4= pwc.4
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_PACKAGE= should be recompiled for a particular FreeBSD kernel
+OPTIONS= PROGRAMS "Build the programs" on \
+ MMAP "Enable mmap support (MAY CRASH YOUR SYSTEM)" off
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 504000
@@ -28,8 +31,13 @@ IGNORE= requires FreeBSD 5.4 or superior
IGNORE= requires kernel source files
.endif
+.if defined(WITH_MMAP)
+ALL_TARGET= mmap
+.else
+ALL_TARGET= all
+.endif
.if !defined(WITHOUT_PROGRAMS)
-ALL_TARGET= all pwcview
+ALL_TARGET+= pwcview
PROGRAMS= pwcview
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
MAN1= pwcview.1
@@ -39,15 +47,6 @@ PLIST_SUB+= PROGRAMS=""
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
diff --git a/multimedia/pwcbsd/pkg-message b/multimedia/pwcbsd/pkg-message
index f3a107d85f99..ee63d8194d79 100644
--- a/multimedia/pwcbsd/pkg-message
+++ b/multimedia/pwcbsd/pkg-message
@@ -14,4 +14,9 @@ To load the kernel module at boot, add the following line to
pwc_load="YES"
+CAUTION: If you enabled mmap support in the driver, beware that
+unplugging your webcam while it is in use may crash your system. So
+if you enabled mmap support, always remember to first exit the
+application that is using the webcam before unplugging the webcam.
+
===============================================================================