From owner-freebsd-ports@FreeBSD.ORG Sat Dec 15 05:49:02 2007 Return-Path: Delivered-To: ports@freebsd.org Received: from freefall.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with SMTP id 24BA516A418; Sat, 15 Dec 2007 05:49:02 +0000 (UTC) (envelope-from nork@FreeBSD.org) Date: Sat, 15 Dec 2007 14:49:01 +0900 From: Norikatsu Shigemura To: Marc Abramowitz Message-Id: <20071215144901.a4fdbaf1.nork@FreeBSD.org> In-Reply-To: <20071215144329.7dd2a14a.nork@FreeBSD.org> References: <20071215144329.7dd2a14a.nork@FreeBSD.org> X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: [ports/graphics/opencv] Add support V4L compat. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2007 05:49:02 -0000 On Sat, 15 Dec 2007 14:43:29 +0900 Norikatsu Shigemura wrote: > 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? Oops! I forgot that there is a added patch. Please look at 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} Index: files/patch-otherlibs-highgui-cvcap_v4l.cpp =================================================================== RCS file: files/patch-otherlibs-highgui-cvcap_v4l.cpp diff -N files/patch-otherlibs-highgui-cvcap_v4l.cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-otherlibs-highgui-cvcap_v4l.cpp 15 Dec 2007 05:45:59 -0000 @@ -0,0 +1,10 @@ +--- otherlibs/highgui/cvcap_v4l.cpp.orig 2006-09-27 10:40:03.000000000 +0900 ++++ otherlibs/highgui/cvcap_v4l.cpp 2007-12-15 14:44:37.000000000 +0900 +@@ -209,7 +209,6 @@ + + #include + #include +-#include /* for videodev2.h */ + #include + #include + #include