Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Dec 2007 14:43:29 +0900
From:      Norikatsu Shigemura <nork@FreeBSD.org>
To:        Marc Abramowitz <msabramo@yahoo.com>
Cc:        ports@FreeBSD.org
Subject:   [ports/graphics/opencv] Add support V4L compat.
Message-ID:  <20071215144329.7dd2a14a.nork@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
Hi Marc.

	I'm tring to use opencv with USB camera.  So I hope to support
	Video for Linux compat to opencv.  May I commit following patch?

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/graphics/opencv/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	7 Oct 2007 17:46:15 -0000	1.6
+++ Makefile	15 Dec 2007 05:39:13 -0000
@@ -8,7 +8,7 @@
 
 PORTNAME=	opencv
 PORTVERSION=	1.0.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	opencvlibrary
@@ -16,6 +16,8 @@
 MAINTAINER=	msabramo@yahoo.com
 COMMENT=	Open Source Computer Vision Library from Intel
 
+BUILD_DEPENDS=	${LOCALBASE}/include/linux/videodev.h:${PORTSDIR}/multimedia/v4l_compat
+
 CFLAGS+=	-I${LOCALBASE}/include/OpenEXR
 CPPFLAGS+=	-I${LOCALBASE}/include -I${LOCALBASE}/include/OpenEXR
 LDFLAGS+=	-L${LOCALBASE}/lib
@@ -24,7 +26,7 @@
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-CONFIGURE_ARGS=	--without-v4l --without-quicktime --without-carbon \
+CONFIGURE_ARGS=	--with-v4l --without-quicktime --without-carbon \
 				--without-1394libs \
 				--without-swig # I don't know anything about swig ...
 CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071215144329.7dd2a14a.nork>