1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

New port: graphics/opencv (Open Source Computer Vision Library from Intel)

The Open Computer Vision Library is a collection of algorithms
	and sample code for various computer vision problems. The
	library is compatible with IPL and utilizes Intel Integrated
	Performance Primitives for better performance.

	WWW: http://sourceforge.net/projects/opencvlibrary/
	     http://www.intel.com/research/mrl/research/opencv/

PR:		ports/78473
Submitted by:	Marc Abramowitz <msabramo@yahoo.com>
This commit is contained in:
Edwin Groothuis 2005-12-29 03:38:28 +00:00
parent 943100b795
commit 1398563371
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=152324
16 changed files with 388 additions and 0 deletions

View File

@ -369,6 +369,7 @@
SUBDIR += oglext
SUBDIR += ogre3d
SUBDIR += openclipart
SUBDIR += opencv
SUBDIR += opendis
SUBDIR += opendx
SUBDIR += opendx-samples

26
graphics/opencv/Makefile Normal file
View File

@ -0,0 +1,26 @@
# New ports collection makefile for: opencv - open source computer vision
# library from Intel
# Date created: 05 March 2005
# Whom: Marc Abramowitz (http://marc.abramowitz.info)
#
# $FreeBSD$
#
PORTNAME= opencv
PORTVERSION= 0.9.6
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= opencvlibrary
DISTNAME= opencv-${PORTVERSION}
MAINTAINER= OpenCV@yahoogroups.com
COMMENT= Open Source Computer Vision Library from Intel
HAS_CONFIGURE= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
INSTALLS_SHLIB= yes
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.mk>

3
graphics/opencv/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (opencv-0.9.6.tar.gz) = 00fe80e9b82bc29e9dd00934f7fd86db
SHA256 (opencv-0.9.6.tar.gz) = fbf6482c5bd223d5037eba47a5302653f57127f055bfd116bff1feddcc093d6e
SIZE (opencv-0.9.6.tar.gz) = 10017084

View File

@ -0,0 +1,103 @@
--- cxcore/src/cxswitcher.cpp Mon Feb 28 16:34:30 2005
+++ cxcore/src/cxswitcher.cpp.freebsd Mon Feb 28 16:34:17 2005
@@ -593,8 +593,8 @@
QueryPerformanceCounter( &counter );
return (int64)counter.QuadPart;
#else
- timeval tv;
- timezone tz;
+ struct timeval tv; // patch for FreeBSD: add "struct"
+ struct timezone tz; // patch for FreeBSD: add "struct"
gettimeofday( &tv, &tz );
return (int64)tv.tv_sec*1000000 + tv.tv_usec;
#endif
--- cxcore/src/Makefile.in.orig Mon Feb 28 16:40:06 2005
+++ cxcore/src/Makefile.in Mon Feb 28 16:40:18 2005
@@ -137,7 +137,7 @@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
-LIBS = -ldl -lpthread -lm
+LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
--- cv/src/Makefile.in.orig Mon Feb 28 16:41:54 2005
+++ cv/src/Makefile.in Mon Feb 28 16:42:14 2005
@@ -177,7 +177,7 @@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
-LIBS = -ldl -lpthread -lm
+LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
--- otherlibs/highgui/Makefile.in.orig Mon Feb 28 18:02:19 2005
+++ otherlibs/highgui/Makefile.in Mon Feb 28 18:02:40 2005
@@ -54,7 +54,7 @@
libhighgui_la_DEPENDENCIES =
am_libhighgui_la_OBJECTS = bitstrm.lo cvcap.lo cvcap_dc1394.lo \
cvcap_v4l.lo grfmt_base.lo grfmt_bmp.lo grfmt_jpeg.lo \
- grfmt_png.lo grfmt_pxm.lo grfmt_sunras.lo grfmt_tiff.lo \
+ grfmt_png.lo grfmt_pxm.lo grfmt_sunras.lo \
image.lo loadsave.lo precomp.lo utils.lo window_lnx.lo \
window_w32.lo
libhighgui_la_OBJECTS = $(am_libhighgui_la_OBJECTS)
@@ -201,7 +201,7 @@
lib_LTLIBRARIES = libhighgui.la
libhighgui_la_SOURCES = bitstrm.cpp cvcap.cpp cvcap_dc1394.cpp \
cvcap_v4l.cpp grfmt_base.cpp grfmt_bmp.cpp grfmt_jpeg.cpp \
- grfmt_png.cpp grfmt_pxm.cpp grfmt_sunras.cpp grfmt_tiff.cpp \
+ grfmt_png.cpp grfmt_pxm.cpp grfmt_sunras.cpp \
image.cpp loadsave.cpp precomp.cpp utils.cpp window_lnx.cpp \
window_w32.cpp
--- otherlibs/highgui/grfmts.h.orig Mon Feb 28 17:10:41 2005
+++ otherlibs/highgui/grfmts.h Mon Feb 28 17:10:45 2005
@@ -47,7 +47,6 @@
#include "grfmt_sunras.h"
#include "grfmt_jpeg.h"
#include "grfmt_pxm.h"
-#include "grfmt_tiff.h"
#include "grfmt_png.h"
#endif/*_GRFMTS_H_*/
--- otherlibs/highgui/loadsave.cpp.orig Mon Feb 28 17:12:05 2005
+++ otherlibs/highgui/loadsave.cpp Mon Feb 28 17:12:09 2005
@@ -299,7 +299,6 @@
m_factories->AddFactory( new GrFmtJpeg() );
m_factories->AddFactory( new GrFmtSunRaster() );
m_factories->AddFactory( new GrFmtPxM() );
- m_factories->AddFactory( new GrFmtTiff() );
#ifdef HAVE_PNG
m_factories->AddFactory( new GrFmtPng() );
#endif
--- configure.orig Thu Aug 19 03:46:49 2004
+++ configure Mon Feb 28 17:16:51 2005
@@ -21218,7 +21218,7 @@
have_v4l=no
-if test x$os_name=xLinux; then
+if test x$os_name = xLinux; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_CAMV4L
--- tests/cxcore/src/Makefile.in.orig Mon Feb 28 17:32:29 2005
+++ tests/cxcore/src/Makefile.in Mon Feb 28 17:32:57 2005
@@ -189,6 +189,7 @@
EXTRA_DIST = precomp.cpp cxcoretest.dsp cxcoretest.vcproj
INCLUDES = -I. -I../../../cxcore/include -I../../cxts -I../../..
cxcoretest_LDADD = -L../../../cxcore/src -lcxcore -L../../cxts -lcxts
+cxcoretest_LDFLAGS = -pthread
all: all-am
.SUFFIXES:

View File

@ -0,0 +1,11 @@
--- Makefile.in.orig Thu Dec 29 14:20:44 2005
+++ Makefile.in Thu Dec 29 14:21:13 2005
@@ -194,7 +194,7 @@
# All the rest of the distributed files
EXTRA_DIST = THANKS COPYING INSTALL README NEWS ChangeLog opencv.spec opencv.spec.in opencv.pc.in opencv.pc autogen.sh _make utils
-pkgconfigdir = $(libdir)/pkgconfig
+pkgconfigdir = $(libdir)data/pkgconfig
pkgconfig_DATA = opencv.pc
all: cvconfig.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive

View File

@ -0,0 +1,11 @@
--- apps/haartraining/src/cvboost.cpp.orig Thu Dec 29 13:52:01 2005
+++ apps/haartraining/src/cvboost.cpp Thu Dec 29 13:52:08 2005
@@ -40,7 +40,7 @@
//M*/
#include <stdio.h>
-#include <malloc.h>
+#include <stdlib.h>
#include <memory.h>
#include <float.h>
#include <math.h>

View File

@ -0,0 +1,12 @@
--- configure.orig Thu Aug 19 03:46:49 2004
+++ configure Mon Feb 28 17:16:51 2005
@@ -21218,7 +21218,7 @@
have_v4l=no
-if test x$os_name=xLinux; then
+if test x$os_name = xLinux; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_CAMV4L

View File

@ -0,0 +1,12 @@
--- cv/src/Makefile.in.orig Mon Feb 28 16:41:54 2005
+++ cv/src/Makefile.in Mon Feb 28 16:42:14 2005
@@ -177,7 +177,7 @@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
-LIBS = -ldl -lpthread -lm
+LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@

View File

@ -0,0 +1,12 @@
--- cxcore/src/Makefile.in.orig Mon Feb 28 16:40:06 2005
+++ cxcore/src/Makefile.in Mon Feb 28 16:40:18 2005
@@ -137,7 +137,7 @@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
-LIBS = -ldl -lpthread -lm
+LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@

View File

@ -0,0 +1,14 @@
--- cxcore/src/cxswitcher.cpp Mon Feb 28 16:34:30 2005
+++ cxcore/src/cxswitcher.cpp.freebsd Mon Feb 28 16:34:17 2005
@@ -593,8 +593,8 @@
QueryPerformanceCounter( &counter );
return (int64)counter.QuadPart;
#else
- timeval tv;
- timezone tz;
+ struct timeval tv; // patch for FreeBSD: add "struct"
+ struct timezone tz; // patch for FreeBSD: add "struct"
gettimeofday( &tv, &tz );
return (int64)tv.tv_sec*1000000 + tv.tv_usec;
#endif

View File

@ -0,0 +1,20 @@
--- otherlibs/highgui/Makefile.in.orig Thu Aug 19 20:46:43 2004
+++ otherlibs/highgui/Makefile.in Thu Dec 29 13:44:02 2005
@@ -54,7 +54,7 @@
libhighgui_la_DEPENDENCIES =
am_libhighgui_la_OBJECTS = bitstrm.lo cvcap.lo cvcap_dc1394.lo \
cvcap_v4l.lo grfmt_base.lo grfmt_bmp.lo grfmt_jpeg.lo \
- grfmt_png.lo grfmt_pxm.lo grfmt_sunras.lo grfmt_tiff.lo \
+ grfmt_png.lo grfmt_pxm.lo grfmt_sunras.lo \
image.lo loadsave.lo precomp.lo utils.lo window_lnx.lo \
window_w32.lo
libhighgui_la_OBJECTS = $(am_libhighgui_la_OBJECTS)
@@ -201,7 +201,7 @@
lib_LTLIBRARIES = libhighgui.la
libhighgui_la_SOURCES = bitstrm.cpp cvcap.cpp cvcap_dc1394.cpp \
cvcap_v4l.cpp grfmt_base.cpp grfmt_bmp.cpp grfmt_jpeg.cpp \
- grfmt_png.cpp grfmt_pxm.cpp grfmt_sunras.cpp grfmt_tiff.cpp \
+ grfmt_png.cpp grfmt_pxm.cpp grfmt_sunras.cpp \
image.cpp loadsave.cpp precomp.cpp utils.cpp window_lnx.cpp \
window_w32.cpp

View File

@ -0,0 +1,11 @@
--- otherlibs/highgui/grfmts.h.orig Mon Feb 28 17:10:41 2005
+++ otherlibs/highgui/grfmts.h Mon Feb 28 17:10:45 2005
@@ -47,7 +47,6 @@
#include "grfmt_sunras.h"
#include "grfmt_jpeg.h"
#include "grfmt_pxm.h"
-#include "grfmt_tiff.h"
#include "grfmt_png.h"
#endif/*_GRFMTS_H_*/

View File

@ -0,0 +1,11 @@
--- otherlibs/highgui/loadsave.cpp.orig Mon Feb 28 17:12:05 2005
+++ otherlibs/highgui/loadsave.cpp Mon Feb 28 17:12:09 2005
@@ -299,7 +299,6 @@
m_factories->AddFactory( new GrFmtJpeg() );
m_factories->AddFactory( new GrFmtSunRaster() );
m_factories->AddFactory( new GrFmtPxM() );
- m_factories->AddFactory( new GrFmtTiff() );
#ifdef HAVE_PNG
m_factories->AddFactory( new GrFmtPng() );
#endif

View File

@ -0,0 +1,11 @@
--- tests/cxcore/src/Makefile.in.orig Mon Feb 28 17:32:29 2005
+++ tests/cxcore/src/Makefile.in Mon Feb 28 17:32:57 2005
@@ -189,6 +189,7 @@
EXTRA_DIST = precomp.cpp cxcoretest.dsp cxcoretest.vcproj
INCLUDES = -I. -I../../../cxcore/include -I../../cxts -I../../..
cxcoretest_LDADD = -L../../../cxcore/src -lcxcore -L../../cxts -lcxts
+cxcoretest_LDFLAGS = -pthread
all: all-am
.SUFFIXES:

10
graphics/opencv/pkg-descr Normal file
View File

@ -0,0 +1,10 @@
The Open Computer Vision Library is a collection of algorithms and sample
code for various computer vision problems. The library is compatible with
IPL and utilizes Intel Integrated Performance Primitives for better
performance.
WWW: http://sourceforge.net/projects/opencvlibrary/
http://www.intel.com/research/mrl/research/opencv/
- Marc
http://marc.abramowitz.info

120
graphics/opencv/pkg-plist Normal file
View File

@ -0,0 +1,120 @@
bin/opencv-haartraining
bin/opencv-createsamples
bin/opencv-performance
lib/libcv.la
lib/libcv.so
lib/libcv.so.9
lib/libcvaux.la
lib/libcvaux.so
lib/libcvaux.so.9
lib/libcvhaartraining.a
lib/libhighgui.la
lib/libhighgui.so
lib/libhighgui.so.9
lib/libcxts.a
lib/libcxcore.la
lib/libcxcore.so
lib/libcxcore.so.9
libdata/pkgconfig/opencv.pc
include/opencv/cv.h
include/opencv/cv.hpp
include/opencv/cvaux.h
include/opencv/cvaux.hpp
include/opencv/cvcompat.h
include/opencv/cvhaartraining.h
include/opencv/cvmat.hpp
include/opencv/cvtypes.h
include/opencv/cxcore.h
include/opencv/cxerror.h
include/opencv/cxmisc.h
include/opencv/cxtypes.h
include/opencv/highgui.h
@dirrm include/opencv
share/opencv/readme.txt
share/opencv/doc/cvcam.rtf
share/opencv/doc/faq.htm
share/opencv/doc/index.htm
share/opencv/doc/license.txt
share/opencv/doc/opencv.jpg
share/opencv/doc/opencvman_old.pdf
share/opencv/haarcascades/haarcascade_frontalface_alt.xml
share/opencv/haarcascades/haarcascade_frontalface_alt2.xml
share/opencv/haarcascades/haarcascade_frontalface_alt_tree.xml
share/opencv/haarcascades/haarcascade_frontalface_default.xml
share/opencv/haarcascades/haarcascade_fullbody.xml
share/opencv/haarcascades/haarcascade_lowerbody.xml
share/opencv/haarcascades/haarcascade_profileface.xml
share/opencv/haarcascades/haarcascade_upperbody.xml
@dirrm share/opencv/haarcascades
share/opencv/doc/papers/algo_tracking.pdf
share/opencv/doc/papers/avbpa99.ps
share/opencv/doc/papers/camshift.pdf
@dirrm share/opencv/doc/papers
share/opencv/doc/ref/opencvref.css
share/opencv/doc/ref/opencvref_cv.htm
share/opencv/doc/ref/opencvref_cvaux.htm
share/opencv/doc/ref/opencvref_cxcore.htm
share/opencv/doc/ref/opencvref_highgui.htm
share/opencv/samples/c/airplane.jpg
share/opencv/samples/c/baboon.jpg
share/opencv/samples/c/build_all.sh
share/opencv/samples/c/camshiftdemo.c
share/opencv/samples/c/contours.c
share/opencv/samples/c/convexhull.c
share/opencv/samples/c/cvsample.dsp
share/opencv/samples/c/cvsample.vcproj
share/opencv/samples/c/delaunay.c
share/opencv/samples/c/demhist.c
share/opencv/samples/c/distrans.c
share/opencv/samples/c/drawing.c
share/opencv/samples/c/edge.c
share/opencv/samples/c/facedetect.c
share/opencv/samples/c/facedetect.cmd
share/opencv/samples/c/ffilldemo.c
share/opencv/samples/c/fitellipse.c
share/opencv/samples/c/fruits.jpg
share/opencv/samples/c/kalman.c
share/opencv/samples/c/kmeans.c
share/opencv/samples/c/laplace.c
share/opencv/samples/c/lena.jpg
share/opencv/samples/c/lkdemo.c
share/opencv/samples/c/makefile.gcc
share/opencv/samples/c/makefile.gen
share/opencv/samples/c/minarea.c
share/opencv/samples/c/morphology.c
share/opencv/samples/c/motempl.c
share/opencv/samples/c/pic1.png
share/opencv/samples/c/pic2.png
share/opencv/samples/c/pic3.png
share/opencv/samples/c/pic4.png
share/opencv/samples/c/pic5.png
share/opencv/samples/c/pic6.png
share/opencv/samples/c/pyramid_segmentation.c
share/opencv/samples/c/squares.c
share/opencv/samples/c/stuff.jpg
@dirrm share/opencv/samples/c
@dirrm share/opencv/samples
share/opencv/doc/ref/pics/backprojectpatch.png
share/opencv/doc/ref/pics/boundingrect.png
share/opencv/doc/ref/pics/building.jpg
share/opencv/doc/ref/pics/contoursecarea.png
share/opencv/doc/ref/pics/cornersubpix.png
share/opencv/doc/ref/pics/defects.png
share/opencv/doc/ref/pics/ellipse.png
share/opencv/doc/ref/pics/errmsg.png
share/opencv/doc/ref/pics/face.png
share/opencv/doc/ref/pics/haarfeatures.png
share/opencv/doc/ref/pics/houghp.png
share/opencv/doc/ref/pics/left.jpg
share/opencv/doc/ref/pics/maxrect.png
share/opencv/doc/ref/pics/memstorage1.png
share/opencv/doc/ref/pics/memstorage2.png
share/opencv/doc/ref/pics/minareabox.png
share/opencv/doc/ref/pics/quadedge.png
share/opencv/doc/ref/pics/right.jpg
share/opencv/doc/ref/pics/subdiv.png
share/opencv/doc/ref/pics/threshold.png
@dirrm share/opencv/doc/ref/pics
@dirrm share/opencv/doc/ref
@dirrm share/opencv/doc
@dirrm share/opencv