|
|
|
|
@@ -3,8 +3,8 @@
|
|
|
|
|
_realname=opencv
|
|
|
|
|
pkgbase=mingw-w64-${_realname}
|
|
|
|
|
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
|
|
|
|
|
pkgver=4.5.5
|
|
|
|
|
pkgrel=6
|
|
|
|
|
pkgver=4.6.0
|
|
|
|
|
pkgrel=1
|
|
|
|
|
pkgdesc="Open Source Computer Vision Library (mingw-w64)"
|
|
|
|
|
arch=('any')
|
|
|
|
|
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
|
|
|
|
|
@@ -51,9 +51,10 @@ optdepends=("${MINGW_PACKAGE_PREFIX}-python-numpy: Python 3.x interface"
|
|
|
|
|
)
|
|
|
|
|
source=("${_realname}-${pkgver}.tar.gz"::https://github.com/opencv/opencv/archive/${pkgver}.tar.gz
|
|
|
|
|
"${_realname}_contrib-${pkgver}.tar.gz"::https://github.com/opencv/opencv_contrib/archive/${pkgver}.tar.gz
|
|
|
|
|
https://github.com/opencv/opencv_contrib/commit/57db17eca22d72ebe8ddc1f26e6adc2c421a9611.patch
|
|
|
|
|
https://github.com/opencv/opencv_contrib/commit/e182fc8675a167044b129a3bdf3c4ad2d3399f68.patch
|
|
|
|
|
'0001-mingw-w64-cmake.patch'
|
|
|
|
|
'0002-solve_deg3-underflow.patch'
|
|
|
|
|
'0003-issue-4107.patch'
|
|
|
|
|
'0004-generate-proper-pkg-config-file.patch'
|
|
|
|
|
'0008-mingw-w64-cmake-lib-path.patch'
|
|
|
|
|
'0010-find-libpng-header.patch'
|
|
|
|
|
@@ -61,18 +62,17 @@ source=("${_realname}-${pkgver}.tar.gz"::https://github.com/opencv/opencv/archiv
|
|
|
|
|
'0014-python-install-path.patch'
|
|
|
|
|
'0015-windres-cant-handle-spaces-in-defines.patch'
|
|
|
|
|
'0016-use-pkgconfig-and-link-pthread.patch'
|
|
|
|
|
'0017-fix-highgui-qt-opengl-linking.patch'
|
|
|
|
|
'0018-aarch64-fp16-mingw.patch'
|
|
|
|
|
'0101-somehow-uint-not-detected.patch'
|
|
|
|
|
'0102-mingw-w64-have-sincos.patch'
|
|
|
|
|
'0103-sfm-module-linking.patch'
|
|
|
|
|
'0104-rgbd-module-missing-include.patch'
|
|
|
|
|
'0105-wechat-iconv-dependency.patch')
|
|
|
|
|
sha256sums=('a1cfdcf6619387ca9e232687504da996aaa9f7b5689986b8331ec02cb61d28ad'
|
|
|
|
|
'a97c2eaecf7a23c6dbd119a609c6d7fae903e5f9ff5f1fe678933e01c67a6c11'
|
|
|
|
|
sha256sums=('1ec1cba65f9f20fe5a41fda1586e01c70ea0c9a6d7b67c9e13edf0cfe2239277'
|
|
|
|
|
'1777d5fd2b59029cf537e5fd6f8aa68d707075822f90bde683fcde086f85f7a7'
|
|
|
|
|
'd64b7d35a2cb630237d21b40561a7afb04da754e11b84806c22f9c2725a36f07'
|
|
|
|
|
'06b158abc07004b336dfd73fef33fb7433911cffdfef7e2014652e9105131e92'
|
|
|
|
|
'8a4053bcecb4c4781a4d87c74eb1cd3f03ad9288deaa22424f71a5e5cdc518c3'
|
|
|
|
|
'400f17bde074677566660b1baab52842c1a3d7024129a2d75af6015f6b55ba4f'
|
|
|
|
|
'480e45906b54c5b6079f437de50ebf2152a83860327613048b53d038526b8ad2'
|
|
|
|
|
'fcb3a4a469b09475dc2dad0c49bcaade8b80aa155eeaf0645398a77cd8c940cc'
|
|
|
|
|
'7398e66f80be37382bd427b5eb3a1201a23113c14e71435a44df8779ea1b8a34'
|
|
|
|
|
'd6ad5a0865eefe662ca4c7aceb6aa7b1fd5fcd27e1e65ca839d442f054095e69'
|
|
|
|
|
@@ -80,11 +80,9 @@ sha256sums=('a1cfdcf6619387ca9e232687504da996aaa9f7b5689986b8331ec02cb61d28ad'
|
|
|
|
|
'0c310a580d6700601d4b4f824b849c0f0d64d3953e249f04c6a91f15aa8bee0a'
|
|
|
|
|
'11522ffedb22980ba8d09ff715a25327fe14806e55588bffa761e39e1d035ea5'
|
|
|
|
|
'4b0b9ee5f93e3c26397badf6b296a674b8f115129520a845d9f50d77d2c086d7'
|
|
|
|
|
'f02b92aef58fcad8233a5041dfde7dacefa55efeb8266f58d1f6ba6ffc5301fc'
|
|
|
|
|
'cedb7593a377eb9e40c72762e79b2af56415ec410309ae8ff698557fe3f953f5'
|
|
|
|
|
'7d2ff25f97c84b59793502786dd64e25c8ca991b0523ffea56b45ce031e80c3f'
|
|
|
|
|
'2001804c5245af1894a308d6521f9cd044fb6dbd713b6e2e45106399a409c14d'
|
|
|
|
|
'0422317096007b72ab4928b48762da4252addf3e4f8066ba94e29344f5975ab8'
|
|
|
|
|
'c6c92cf39dfe45b8fb41d80ac0de3cd304e8b695420b307fd4320a105d8fe9f4'
|
|
|
|
|
'3cf6a17b234ddf4f20e042acce329823e970aa06873d63652fa132c46ee56739')
|
|
|
|
|
|
|
|
|
|
@@ -112,7 +110,6 @@ prepare() {
|
|
|
|
|
apply_patch_with_msg \
|
|
|
|
|
0001-mingw-w64-cmake.patch \
|
|
|
|
|
0002-solve_deg3-underflow.patch \
|
|
|
|
|
0003-issue-4107.patch \
|
|
|
|
|
0004-generate-proper-pkg-config-file.patch \
|
|
|
|
|
0008-mingw-w64-cmake-lib-path.patch \
|
|
|
|
|
0010-find-libpng-header.patch \
|
|
|
|
|
@@ -120,16 +117,16 @@ prepare() {
|
|
|
|
|
0014-python-install-path.patch \
|
|
|
|
|
0015-windres-cant-handle-spaces-in-defines.patch \
|
|
|
|
|
0016-use-pkgconfig-and-link-pthread.patch \
|
|
|
|
|
0017-fix-highgui-qt-opengl-linking.patch \
|
|
|
|
|
0018-aarch64-fp16-mingw.patch
|
|
|
|
|
|
|
|
|
|
cd "${srcdir}/${_realname}_contrib-${pkgver}"
|
|
|
|
|
apply_patch_with_msg \
|
|
|
|
|
0101-somehow-uint-not-detected.patch \
|
|
|
|
|
0102-mingw-w64-have-sincos.patch \
|
|
|
|
|
0103-sfm-module-linking.patch \
|
|
|
|
|
0104-rgbd-module-missing-include.patch \
|
|
|
|
|
0105-wechat-iconv-dependency.patch
|
|
|
|
|
0105-wechat-iconv-dependency.patch \
|
|
|
|
|
57db17eca22d72ebe8ddc1f26e6adc2c421a9611.patch \
|
|
|
|
|
e182fc8675a167044b129a3bdf3c4ad2d3399f68.patch
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
@@ -196,7 +193,7 @@ build() {
|
|
|
|
|
-DOPENCV_FORCE_VTK=ON \
|
|
|
|
|
-DPYTHON_DEFAULT_EXECUTABLE=${MINGW_PREFIX}/bin/python \
|
|
|
|
|
-DPYTHON3_EXECUTABLE=${MINGW_PREFIX}/bin/python \
|
|
|
|
|
-DPYTHON3_PACKAGES_PATH=$(cygpath -u $(${MINGW_PREFIX}/bin/python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")) \
|
|
|
|
|
-DPYTHON3_PACKAGES_PATH=$(cygpath -u $(${MINGW_PREFIX}/bin/python -c "import sysconfig; print(sysconfig.get_path('purelib'))")) \
|
|
|
|
|
-DPROTOBUF_UPDATE_FILES=ON \
|
|
|
|
|
-DENABLE_PRECOMPILED_HEADERS=OFF \
|
|
|
|
|
${extra_config[@]} \
|
|
|
|
|
|