mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-27 00:10:29 +00:00
extra/opencv to 4.0.1-3
This commit is contained in:
parent
925db9728e
commit
ed7b800fdd
1 changed files with 7 additions and 4 deletions
|
@ -7,19 +7,20 @@
|
||||||
pkgbase=opencv
|
pkgbase=opencv
|
||||||
pkgname=(opencv opencv-samples)
|
pkgname=(opencv opencv-samples)
|
||||||
pkgver=4.0.1
|
pkgver=4.0.1
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="Open Source Computer Vision Library"
|
pkgdesc="Open Source Computer Vision Library"
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
license=(BSD)
|
license=(BSD)
|
||||||
url="http://opencv.org/"
|
url="http://opencv.org/"
|
||||||
depends=(intel-tbb openexr gst-plugins-base libdc1394 cblas lapack libgphoto2 jasper ffmpeg)
|
depends=(intel-tbb openexr gst-plugins-base libdc1394 cblas lapack libgphoto2 jasper ffmpeg)
|
||||||
makedepends=(cmake python-numpy python-setuptools mesa eigen hdf5 lapacke gtk3 vtk glew)
|
makedepends=(cmake python-numpy python-setuptools mesa eigen hdf5 lapacke gtk3 vtk glew ant java-environment)
|
||||||
optdepends=('opencv-samples: samples'
|
optdepends=('opencv-samples: samples'
|
||||||
'gtk3: for the HighGUI module'
|
'gtk3: for the HighGUI module'
|
||||||
'vtk: for the viz module'
|
'vtk: for the viz module'
|
||||||
'hdf5: support for HDF5 format'
|
'hdf5: support for HDF5 format'
|
||||||
'opencl-icd-loader: For coding with OpenCL'
|
'opencl-icd-loader: For coding with OpenCL'
|
||||||
'python-numpy: Python interface')
|
'python-numpy: Python interface'
|
||||||
|
'java-runtime: Java interface')
|
||||||
source=("$pkgbase-$pkgver.tar.gz::https://github.com/opencv/opencv/archive/$pkgver.zip"
|
source=("$pkgbase-$pkgver.tar.gz::https://github.com/opencv/opencv/archive/$pkgver.zip"
|
||||||
"opencv_contrib-$pkgver.tar.gz::https://github.com/opencv/opencv_contrib/archive/$pkgver.tar.gz")
|
"opencv_contrib-$pkgver.tar.gz::https://github.com/opencv/opencv_contrib/archive/$pkgver.tar.gz")
|
||||||
sha256sums=('b79ccdc4797a959c5ab17249a8a302c066248ae070e4d7010e2d77a625fdb30a'
|
sha256sums=('b79ccdc4797a959c5ab17249a8a302c066248ae070e4d7010e2d77a625fdb30a'
|
||||||
|
@ -31,6 +32,7 @@ prepare() {
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd build
|
cd build
|
||||||
|
export JAVA_HOME="/usr/lib/jvm/default"
|
||||||
# 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
|
||||||
_pythonpath=`python -c "from sysconfig import get_path; print(get_path('platlib'))"`
|
_pythonpath=`python -c "from sysconfig import get_path; print(get_path('platlib'))"`
|
||||||
cmake ../$pkgname-$pkgver \
|
cmake ../$pkgname-$pkgver \
|
||||||
|
@ -53,7 +55,8 @@ build() {
|
||||||
-DLAPACK_CBLAS_H="/usr/include/cblas.h" \
|
-DLAPACK_CBLAS_H="/usr/include/cblas.h" \
|
||||||
-DLAPACK_LAPACKE_H="/usr/include/lapacke.h" \
|
-DLAPACK_LAPACKE_H="/usr/include/lapacke.h" \
|
||||||
-DOPENCV_GENERATE_PKGCONFIG=ON \
|
-DOPENCV_GENERATE_PKGCONFIG=ON \
|
||||||
-DOPENCV_ENABLE_NONFREE=ON
|
-DOPENCV_ENABLE_NONFREE=ON \
|
||||||
|
-DOPENCV_JNI_INSTALL_PATH=lib
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue