1 DESCRIPTION
= "Opencv : The Open Computer Vision Library"
2 HOMEPAGE
= "http://sourceforge.net/projects/opencvlibrary"
9 DEPENDS
= "libtool swig swig-native python jpeg zlib libpng tiff glib-2.0"
10 #RDEPENDS
= "python jpeg zlib libpng tiff glib-2.0"
12 SRC_URI
= "${SOURCEFORGE_MIRROR}/opencvlibrary/opencv-${PV}.tar.gz \
13 file://debian/010_enable_static.diff;patch=1 \
14 file://debian/010_ffmpeg_linking.diff;patch=1 \
15 file://debian/010_fix_optimisations.diff;patch=1 \
16 file://debian/010_m4_syntax.diff;patch=1 \
17 file://debian/010_makefile_syntax.diff;patch=1 \
18 file://debian/010_python_cspec.diff;patch=1 \
19 file://debian/020_python_linking.diff;patch=1 \
20 file://debian/030_install_hook.diff;patch=1 \
21 file://debian/050_rebootstrap.diff;patch=1 \
22 file://debian/100_amd64.diff;patch=1 \
23 file://debian/100_static_inline.diff;patch=1 \
24 file://debian/100_ffmpeg_updates.diff;patch=1 \
25 file://debian/110_dc1394.diff;patch=1 \
26 file://debian/120_header_warnings.diff;patch=1 \
27 file://debian/200_documentation.diff;patch=1 \
28 file://debian/200_examples_makefile.diff;patch=1 \
29 file://debian/210_openmp_compilation.diff;patch=1 \
30 file://debian/300_fix_segfault_in_window_gtk.diff;patch=1 \
33 inherit distutils
-base autotools pkgconfig
35 EXTRA_OECONF
= "--disable-debug --without-gtk --without-python --disable-apps az_python_cspec=${STAGING_INCDIR}/${PYTHON_DIR}"
42 cp $
{STAGING_DATADIR
}/libtool
/config.
{sub
,guess
} autotools
46 PACKAGES
+= "python-opencv"
48 python populate_packages_prepend
() {
49 cv_libdir
= bb.
data.expand
('$
{libdir
}'
, d
)
50 cv_libdir_dbg
= bb.
data.expand
('$
{libdir
}/.debug'
, d
)
51 do_split_packages
(d
, cv_libdir
, '^lib
(.
*)\.so$'
, 'lib
%s
-dev'
, 'OpenCV
%s development package'
, extra_depends
='$
{PN
}-dev'
, allow_links
=True)
52 do_split_packages
(d
, cv_libdir
, '^lib
(.
*)\.la$'
, 'lib
%s
-dev'
, 'OpenCV
%s development package'
, extra_depends
='$
{PN
}-dev'
)
53 do_split_packages
(d
, cv_libdir
, '^lib
(.
*)\.a$'
, 'lib
%s
-dev'
, 'OpenCV
%s development package'
, extra_depends
='$
{PN
}-dev'
)
54 do_split_packages
(d
, cv_libdir
, '^lib
(.
*)\.so\.
*'
, 'lib
%s'
, 'OpenCV
%s library'
, extra_depends
=''
, allow_links
=True)
57 FILES_$
{PN
}-doc
+= "${datadir}/opencv/"
58 FILES_$
{PN
} = "${bindir}"
59 FILES_$
{PN
}-dbg
+= "${libdir}/.debug"
60 FILES_$
{PN
}-dev
= "${includedir} ${libdir}/pkgconfig"
62 DESCRIPTION_python
-opencv
= "Python bindings to opencv"
63 FILES_python
-opencv
= "${PYTHON_SITEPACKAGES_DIR}/*"
64 RDEPENDS_python
-opencv
= "python-core"
71 SRC_URI
[md5sum
] = "146a05005f2d2c16c4ee10ebd7f1dd58"
72 SRC_URI
[sha256sum
] = "3a6ee888e4dd4ab7f2bc80d046688c099c6a95d1267af554b7c8f1543b66f21e"