[vlc-commits] commit: Symplify configure. ac regarding OpenCV and rename the example file from C++ to C (that' s a C file). ( Rémi Duraffort )
git at videolan.org
git at videolan.org
Sun Mar 7 23:02:09 CET 2010
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Mar 7 22:29:23 2010 +0100| [ea337a8a1f2adece000318ee287d85182df32e80] | committer: Rémi Duraffort
Symplify configure.ac regarding OpenCV and rename the example file from C++ to C (that's a C file).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ea337a8a1f2adece000318ee287d85182df32e80
---
configure.ac | 40 +-------------------
modules/video_filter/Modules.am | 2 +-
.../{opencv_example.cpp => opencv_example.c} | 0
3 files changed, 2 insertions(+), 40 deletions(-)
diff --git a/configure.ac b/configure.ac
index 9dab26a..8c6197e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1989,45 +1989,7 @@ fi
dnl
dnl OpenCV wrapper and example filters
dnl
-AC_ARG_ENABLE(opencv,
- [ --enable-opencv OpenCV (computer vision) filter (default disabled)])
-if test "${enable_opencv}" = "yes" -a "${CXX}" != "";
-then
- AC_ARG_WITH(opencv-tree,
- [ --with-opencv-tree=PATH opencv tree for linking])
- if test "${SYS}" = "mingw32"
- then
- test -z "${with_opencv_tree}" && AC_MSG_ERROR([You have to specify --with-opencv-tree])
- AC_MSG_CHECKING(for opencv in ${with_opencv_tree})
- if test -f ${with_opencv_tree}/cv/include/cv.h -a -f ${with_opencv_tree}/cxcore/include/cxcore.h \
- -a -f ${with_opencv_tree}/cvaux/include/cvaux.h -a -f ${with_opencv_tree}/otherlibs/highgui/highgui.h
- then
- AC_MSG_RESULT(yes)
- VLC_ADD_PLUGIN([opencv_wrapper])
- VLC_ADD_LIBS([opencv_wrapper],[-L${with_opencv_tree}/lib -lcv -lcxcore -lcvaux -lhighgui])
- VLC_ADD_CFLAGS([opencv_wrapper],[-I${with_opencv_tree}/cv/include -I${with_opencv_tree}/cxcore/include -I${with_opencv_tree}/cvaux/include -I${with_opencv_tree}/otherlibs/highgui])
- AC_LANG_PUSH(C++)
- VLC_ADD_PLUGIN([opencv_example])
- VLC_ADD_LIBS([opencv_example],[-L${with_opencv_tree}/lib -lcv -lcxcore -lcvaux -lhighgui])
- VLC_ADD_CXXFLAGS([opencv_example],[-I${with_opencv_tree}/cv/include -I${with_opencv_tree}/cxcore/include -I${with_opencv_tree}/cvaux/include -I${with_opencv_tree}/otherlibs/highgui])
- AC_LANG_POP(C++)
- else
- dnl No opencv could be found, sorry
- AC_MSG_RESULT(no)
- AC_MSG_ERROR([cannot find opencv in ${with_opencv_tree}])
- fi
- else
- PKG_CHECK_MODULES(OPENCV, opencv,
- [
- VLC_ADD_PLUGIN([opencv_example opencv_wrapper])
- VLC_ADD_LIBS([opencv_example opencv_wrapper],[${OPENCV_LIBS}])
- VLC_ADD_CFLAGS([opencv_wrapper],[${OPENCV_CFLAGS}])
- VLC_ADD_CXXFLAGS([opencv_example],[${OPENCV_CFLAGS}])
- ],
- [AC_MSG_ERROR([libopencv not found!])]
- )
- fi
-fi
+PKG_ENABLE_MODULES_VLC([OPENCV], [opencv_example opencv_wrapper], [opencv], (OpenCV (computer vision) filter), [off])
dnl
diff --git a/modules/video_filter/Modules.am b/modules/video_filter/Modules.am
index 660c03f..da3cbac 100644
--- a/modules/video_filter/Modules.am
+++ b/modules/video_filter/Modules.am
@@ -27,7 +27,7 @@ SOURCES_gradient = gradient.c
SOURCES_ball = ball.c
SOURCES_panoramix = panoramix.c
SOURCES_opencv_wrapper = opencv_wrapper.c
-SOURCES_opencv_example = opencv_example.cpp filter_event_info.h
+SOURCES_opencv_example = opencv_example.c filter_event_info.h
SOURCES_rotate = rotate.c
SOURCES_noise = noise.c
SOURCES_puzzle = puzzle.c
diff --git a/modules/video_filter/opencv_example.cpp b/modules/video_filter/opencv_example.c
similarity index 100%
rename from modules/video_filter/opencv_example.cpp
rename to modules/video_filter/opencv_example.c
More information about the vlc-commits
mailing list