New package: opencv4 4.2.0.
[ci skip]
This commit is contained in:
parent
f7b516f73f
commit
e187e47828
7 changed files with 140 additions and 0 deletions
|
@ -2030,6 +2030,53 @@ libopencv_imgproc.so.3.4 libopencv-3.4.1_1
|
|||
libopencv_core.so.3.4 libopencv-3.4.1_1
|
||||
libopencv_superres.so.3.4 libopencv-3.4.1_1
|
||||
libopencv_videostab.so.3.4 libopencv-3.4.1_1
|
||||
libopencv_quality.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_reg.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_surface_matching.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_xphoto.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_freetype.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_fuzzy.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_hfs.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_img_hash.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_line_descriptor.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_saliency.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_structured_light.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_aruco.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_bgsegm.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_bioinspired.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_ccalib.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_face.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_tracking.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_xfeatures2d.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_optflow.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_ximgproc.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_plot.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_text.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_ml.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_objdetect.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_dnn.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_shape.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_stitching.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_photo.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_video.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_calib3d.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_features2d.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_flann.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_highgui.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_videoio.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_imgcodecs.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_imgproc.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_core.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_superres.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_videostab.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_gapi.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_xobjdetect.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_datasets.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_dnn_objdetect.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_dnn_superres.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_dpm.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_phase_unwrapping.so.4.2 libopencv4-4.2.0_1
|
||||
libopencv_stereo.so.4.2 libopencv4-4.2.0_1
|
||||
libcgmanager.so.0 libcgmanager-0.33_1
|
||||
libuniconf.so.4.6 wvstreams-4.6.1_2
|
||||
libwvbase.so.4.6 wvstreams-4.6.1_1
|
||||
|
|
1
srcpkgs/libopencv4
Symbolic link
1
srcpkgs/libopencv4
Symbolic link
|
@ -0,0 +1 @@
|
|||
opencv4
|
1
srcpkgs/libopencv4-devel
Symbolic link
1
srcpkgs/libopencv4-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
opencv4
|
1
srcpkgs/libopencv4-python
Symbolic link
1
srcpkgs/libopencv4-python
Symbolic link
|
@ -0,0 +1 @@
|
|||
opencv4
|
1
srcpkgs/libopencv4-python3
Symbolic link
1
srcpkgs/libopencv4-python3
Symbolic link
|
@ -0,0 +1 @@
|
|||
opencv4
|
16
srcpkgs/opencv4/patches/undef-altivec-macros-cpp.patch
Normal file
16
srcpkgs/opencv4/patches/undef-altivec-macros-cpp.patch
Normal file
|
@ -0,0 +1,16 @@
|
|||
This is necessary because otherwise conflicts are introduced in C++ code that
|
||||
includes this. The header itself does not rely on the macros. The issue is not
|
||||
visible on little endian because they undef the macros somewhere else.
|
||||
|
||||
--- 3rdparty/include/opencl/1.2/CL/cl_platform.h
|
||||
+++ 3rdparty/include/opencl/1.2/CL/cl_platform.h
|
||||
@@ -332,6 +332,9 @@ typedef unsigned int cl_GLenum;
|
||||
/* Define basic vector types */
|
||||
#if defined( __VEC__ )
|
||||
#include <altivec.h> /* may be omitted depending on compiler. AltiVec spec provides no way to detect whether the header is required. */
|
||||
+ #undef vector
|
||||
+ #undef pixel
|
||||
+ #undef bool
|
||||
typedef __vector unsigned char __cl_uchar16;
|
||||
typedef __vector signed char __cl_char16;
|
||||
typedef __vector unsigned short __cl_ushort8;
|
73
srcpkgs/opencv4/template
Normal file
73
srcpkgs/opencv4/template
Normal file
|
@ -0,0 +1,73 @@
|
|||
# Template file for 'opencv4'
|
||||
pkgname=opencv4
|
||||
version=4.2.0
|
||||
revision=1
|
||||
wrksrc=opencv-${version}
|
||||
build_style=cmake
|
||||
configure_args="-DENABLE_PRECOMPILED_HEADERS=OFF -DWITH_OPENMP=ON -DWITH_OPENCL=ON
|
||||
-DOPENCV_GENERATE_PKGCONFIG=YES
|
||||
-DWITH_EIGEN=ON -DENABLE_CXX11=ON -DOPENCV_SKIP_PYTHON_LOADER=ON
|
||||
-DOPENCV_PYTHON3_INSTALL_PATH=${py3_sitelib}
|
||||
-DOPENCV_PYTHON_INSTALL_PATH=${py2_sitelib}
|
||||
-DOPENCV_EXTRA_MODULES_PATH=${XBPS_BUILDDIR}/opencv_contrib-${version}/modules
|
||||
-DBUILD_opencv_rgbd=OFF"
|
||||
hostmakedepends="pkg-config eigen"
|
||||
makedepends="ffmpeg-devel libpng-devel libjpeg-turbo-devel tiff-devel
|
||||
jasper-devel ocl-icd-devel libgomp-devel libopenexr-devel gtk+3-devel
|
||||
libgphoto2-devel gst-plugins-base1-devel openblas-devel"
|
||||
short_desc="Computer vision and machine learning software library, version 4.x"
|
||||
maintainer="Hazel Levine <rose.hazel@protonmail.ch>"
|
||||
license="BSD-3-Clause"
|
||||
homepage="https://opencv.org"
|
||||
distfiles="https://github.com/opencv/${pkgname}/archive/${version}.tar.gz
|
||||
https://github.com/opencv/opencv_contrib/archive/${version}.tar.gz>contrib.tar.gz"
|
||||
checksum="9ccb2192d7e8c03c58fee07051364d94ed7599363f3b0dce1c5e6cc11c1bb0ec
|
||||
8a6b5661611d89baa59a26eb7ccf4abb3e55d73f99bb52d8f7c32265c8a43020"
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
armv[56]*|mips*) makedepends+=" libatomic-devel";;
|
||||
esac
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
||||
libopencv4_package() {
|
||||
short_desc+=" - library files"
|
||||
pkg_install() {
|
||||
vmove usr/lib/*.so.*
|
||||
}
|
||||
}
|
||||
|
||||
libopencv4-devel_package() {
|
||||
short_desc+=" - development files"
|
||||
depends="libopencv4>=${version}_${revision}"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove usr/lib/pkgconfig
|
||||
vmove usr/lib/*.so
|
||||
vmove usr/share/opencv4
|
||||
}
|
||||
}
|
||||
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
# because python-numpy cannot be cross compiled
|
||||
hostmakedepends+=" python-devel python3-devel"
|
||||
makedepends+=" python-numpy python3-numpy"
|
||||
|
||||
libopencv4-python_package() {
|
||||
short_desc+=" - Python2 bindings"
|
||||
depends="python-numpy"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python2.7
|
||||
}
|
||||
}
|
||||
|
||||
libopencv4-python3_package() {
|
||||
short_desc+=" - Python3 bindings"
|
||||
depends="python3-numpy"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3*
|
||||
}
|
||||
}
|
||||
fi
|
Loading…
Reference in a new issue