From 494fd293a62d4d3ba1e7fca0eddfd2eac60035a5 Mon Sep 17 00:00:00 2001 From: onekk Date: Wed, 10 Dec 2014 16:45:26 +0100 Subject: [PATCH] New package: opencv 2.4.10 and accompaining packages --- common/shlibs | 18 +++++++++++++++ srcpkgs/libopencv | 1 + srcpkgs/libopencv-devel | 1 + srcpkgs/libopencv-python | 1 + srcpkgs/opencv/template | 48 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 69 insertions(+) create mode 120000 srcpkgs/libopencv create mode 120000 srcpkgs/libopencv-devel create mode 120000 srcpkgs/libopencv-python create mode 100644 srcpkgs/opencv/template diff --git a/common/shlibs b/common/shlibs index e8882abd16a..6ad3b71fd3f 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1837,4 +1837,22 @@ libcapstone.so.3 capstone-3.0_1 libhavege.so.1 libhaveged-1.9.1_1 libnih.so.1 libnih-1.0.3_1 libnih-dbus.so.1 libnih-1.0.3_1 +libopencv_videostab.so.2 libopencv-2.4.10_1 +libopencv_flann.so.2.4 libopencv-2.4.10_1 +libopencv_features2d.so.2.4 libopencv-2.4.10_1 +libopencv_ml.so.2.4 libopencv-2.4.10_1 +libopencv_nonfree.so.2.4 libopencv-2.4.10_1 +libopencv_highgui.so.2.4 libopencv-2.4.10_1 +libopencv_imgproc.so.2.4 libopencv-2.4.10_1 +libopencv_gpu.so.2.4 libopencv-2.4.10_1 +libopencv_ocl.so.2.4 libopencv-2.4.10_1 +libopencv_objdetect.so.2.4 libopencv-2.4.10_1 +libopencv_superres.so.2.4 libopencv-2.4.10_1 +libopencv_core.so.2.4 libopencv-2.4.10_1 + libopencv_video.so.2.4 libopencv-2.4.10_1 +libopencv_calib3d.so.2.4 libopencv-2.4.10_1 +libopencv_contrib.so.2.4 libopencv-2.4.10_1 +libopencv_stitching.so.2.4 libopencv-2.4.10_1 +libopencv_photo.so.2.4 libopencv-2.4.10_1 +libopencv_legacy.so.2.4 libopencv-2.4.10_1 diff --git a/srcpkgs/libopencv b/srcpkgs/libopencv new file mode 120000 index 00000000000..f5341cf3678 --- /dev/null +++ b/srcpkgs/libopencv @@ -0,0 +1 @@ +opencv \ No newline at end of file diff --git a/srcpkgs/libopencv-devel b/srcpkgs/libopencv-devel new file mode 120000 index 00000000000..f5341cf3678 --- /dev/null +++ b/srcpkgs/libopencv-devel @@ -0,0 +1 @@ +opencv \ No newline at end of file diff --git a/srcpkgs/libopencv-python b/srcpkgs/libopencv-python new file mode 120000 index 00000000000..f5341cf3678 --- /dev/null +++ b/srcpkgs/libopencv-python @@ -0,0 +1 @@ +opencv \ No newline at end of file diff --git a/srcpkgs/opencv/template b/srcpkgs/opencv/template new file mode 100644 index 00000000000..421916c2f2d --- /dev/null +++ b/srcpkgs/opencv/template @@ -0,0 +1,48 @@ +# Template file for 'opencv' +# vim: set ts=4 sw=4 sts=4 et: + +pkgname=opencv +version=2.4.10 +revision=1 +build_style=cmake +maintainer="Carlo Dormeletti " +homepage="http://opencv.org" +license="BSD" +short_desc="Computer vision and machine learning software library" +configure_args="-Wno-dev -DCMAKE_BUILD_TYPE=RELEASE " +hostmakedepends="cmake pkg-config python-devel eigen2 unzip python-numpy-devel" +makedepends="ffmpeg-devel libpng-devel libjpeg-turbo-devel tiff-devel + jasper-devel libopenexr-devel" +distfiles="${SOURCEFORGE_SITE}/opencvlibrary/opencv-unix/${version}/opencv-${version}.zip" +checksum="1bf4cb87283797fd91669d4f90b622a677a903c20b4a577b7958a2164f7596c6" + + +libopencv_package() { + short_desc+=" - library files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/lib/libopencv_*.so.* + } +} + +libopencv-devel_package() { + short_desc+=" - development files" + depends="libopencv>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove "usr/share/OpenCV/*" + } +} + +libopencv-python_package(){ + short_desc+=" - python files" + depends="libopencv>=${version}_${revision}" + pkg_install() { + vmove usr/lib/python2.7 + } +} + +