blob: 842cbf331bbd2ad98d9df0e4953a13cea2e3f5c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/opencv/opencv-2.0.0-r1.ebuild,v 1.2 2010/01/06 23:49:50 josejx Exp $
EAPI=2
inherit cmake-utils
MY_P=OpenCV-${PV}
DESCRIPTION="A collection of algorithms and sample code for various computer vision problems."
HOMEPAGE="http://opencv.willowgarage.com"
SRC_URI="mirror://sourceforge/${PN}library/${MY_P}.tar.bz2"
LICENSE="v4l? ( GPL-2 ) xine? ( GPL-2 ) Intel"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="debug +deprecated examples ffmpeg gstreamer gtk ieee1394 ipp jpeg jpeg2k
mmx octave openmp png python sse sse2 sse3 test tiff v4l xine"
RDEPEND="sys-libs/zlib
ipp? ( sci-libs/ipp )
python? ( >=dev-lang/python-2.5
deprecated? ( dev-lang/swig ) )
ieee1394? ( sys-libs/libraw1394
media-libs/libdc1394:2 )
ffmpeg? ( >=media-video/ffmpeg-0.5 )
gstreamer? ( media-libs/gstreamer )
gtk? ( x11-libs/gtk+:2 )
jpeg2k? ( media-libs/jasper )
jpeg? ( media-libs/jpeg )
png? ( media-libs/libpng )
tiff? ( media-libs/tiff )
xine? ( media-libs/xine-lib )
octave? ( sci-mathematics/octave
dev-lang/swig )"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
S=${WORKDIR}/${MY_P}
PATCHES=( "${FILESDIR}/${P}-multilib.patch" )
src_configure() {
mycmakeargs="${mycmakeargs}
-DCMAKE_SKIP_RPATH=ON
$(cmake-utils_use_build examples)
$(cmake-utils_use_build python NEW_PYTHON_SUPPORT)
$(cmake-utils_use_build octave OCTAVE_SUPPORT)
$(cmake-utils_use_build test TESTS)
$(cmake-utils_use_enable openmp)
$(cmake-utils_use ipp USE_IPP)
$(cmake-utils_use mmx USE_MMX)
-DUSE_O3=OFF
-DUSE_OMIT_FRAME_POINTER=OFF
$(cmake-utils_use sse USE_SSE)
$(cmake-utils_use sse2 USE_SSE2)
$(cmake-utils_use sse3 USE_SSE3)
$(cmake-utils_use_with ieee1394 1394)
$(cmake-utils_use_with ffmpeg)
$(cmake-utils_use_with gstreamer)
$(cmake-utils_use_with gtk)
$(cmake-utils_use_with jpeg2k jasper)
$(cmake-utils_use_with jpeg)
$(cmake-utils_use_with png)
$(cmake-utils_use_with tiff)
-DWITH_UNICAP=OFF
$(cmake-utils_use_with v4l)
$(cmake-utils_use_with xine)"
if use python; then
mycmakeargs="${mycmakeargs}
$(cmake-utils_use_build deprecated SWIG_PYTHON_SUPPORT)"
fi
cmake-utils_src_configure
}
|