extra/opencv to 4.7.0-10

This commit is contained in:
Kevin Mihelich 2023-05-03 23:32:52 +00:00
parent c518c9338d
commit dda0977522

View file

@ -9,18 +9,18 @@
pkgbase=opencv pkgbase=opencv
pkgname=(opencv opencv-samples python-opencv) pkgname=(opencv opencv-samples python-opencv)
pkgver=4.7.0 pkgver=4.7.0
pkgrel=7 pkgrel=10
pkgdesc='Open Source Computer Vision Library' pkgdesc='Open Source Computer Vision Library'
arch=(x86_64) arch=(x86_64)
license=(BSD) license=(BSD)
url='https://opencv.org/' url='https://opencv.org/'
depends=(tbb openexr gst-plugins-base libdc1394 cblas lapack libgphoto2 openjpeg2 ffmpeg protobuf) depends=(tbb openexr gst-plugins-base libdc1394 cblas lapack libgphoto2 openjpeg2 ffmpeg protobuf)
makedepends=(cmake python-numpy python-setuptools mesa eigen hdf5 lapacke qt5-base vtk glew ant java-environment makedepends=(cmake python-numpy python-setuptools mesa eigen hdf5 lapacke qt6-5compat vtk glew ant java-environment
pugixml openmpi fmt nlohmann-json) pugixml openmpi fmt nlohmann-json)
optdepends=('opencv-samples: samples' optdepends=('opencv-samples: samples'
'vtk: for the viz module' 'vtk: for the viz module'
'glew: for the viz module' 'glew: for the viz module'
'qt5-base: for the HighGUI module' 'qt6-base: for the HighGUI module'
'hdf5: for the HDF5 module' 'hdf5: for the HDF5 module'
'opencl-icd-loader: For coding with OpenCL' 'opencl-icd-loader: For coding with OpenCL'
'java-runtime: Java interface') 'java-runtime: Java interface')
@ -40,6 +40,7 @@ build() {
# cmake's FindLAPACK doesn't add cblas to LAPACK_LIBRARIES, so we need to specify them manually # cmake's FindLAPACK doesn't add cblas to LAPACK_LIBRARIES, so we need to specify them manually
_opts="-DWITH_OPENCL=ON \ _opts="-DWITH_OPENCL=ON \
-DWITH_OPENGL=ON \ -DWITH_OPENGL=ON \
-DOpenGL_GL_PREFERENCE=LEGACY \
-DWITH_TBB=ON \ -DWITH_TBB=ON \
-DWITH_VULKAN=ON \ -DWITH_VULKAN=ON \
-DWITH_QT=ON \ -DWITH_QT=ON \
@ -98,7 +99,7 @@ package_opencv-samples() {
package_python-opencv() { package_python-opencv() {
pkgdesc='Python bindings for OpenCV' pkgdesc='Python bindings for OpenCV'
depends=(python-numpy opencv vtk glew qt5-base hdf5 jsoncpp openmpi pugixml fmt) depends=(python-numpy opencv vtk glew qt6-base hdf5 jsoncpp openmpi pugixml fmt)
unset optdepends unset optdepends
DESTDIR="$pkgdir" cmake --install build/modules/python3 DESTDIR="$pkgdir" cmake --install build/modules/python3