diff options
author | ume <ume@FreeBSD.org> | 2006-06-17 04:16:24 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2006-06-17 04:16:24 +0800 |
commit | 177bbcdad31230ea29b94c20a24c93d9452d3510 (patch) | |
tree | bf782e54b7dae54a6f87b8776c787926683f593f | |
parent | 7de211436c7d57649f2ca63f6af04a9c46691c86 (diff) | |
download | freebsd-ports-gnome-177bbcdad31230ea29b94c20a24c93d9452d3510.tar.gz freebsd-ports-gnome-177bbcdad31230ea29b94c20a24c93d9452d3510.tar.zst freebsd-ports-gnome-177bbcdad31230ea29b94c20a24c93d9452d3510.zip |
- OPTION'fy.
- Add an option for enable mmap support.
Approved by: freebsd__at__luna.afraid.org (maintainer)
-rw-r--r-- | multimedia/pwcbsd/Makefile | 19 | ||||
-rw-r--r-- | multimedia/pwcbsd/pkg-message | 5 |
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. + =============================================================================== |