[arch-commits] Commit in opencv/trunk (PKGBUILD opencv-legacy-headers.patch)
Antonio Rojas
arojas at archlinux.org
Sun Nov 18 16:54:10 UTC 2018
Date: Sunday, November 18, 2018 @ 16:54:09
Author: arojas
Revision: 340099
Fix missing legacy headers
Added:
opencv/trunk/opencv-legacy-headers.patch
Modified:
opencv/trunk/PKGBUILD
-----------------------------+
PKGBUILD | 11 ++++++++---
opencv-legacy-headers.patch | 12 ++++++++++++
2 files changed, 20 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-11-18 16:53:43 UTC (rev 340098)
+++ PKGBUILD 2018-11-18 16:54:09 UTC (rev 340099)
@@ -4,7 +4,7 @@
pkgbase=opencv
pkgname=(opencv opencv-samples)
pkgver=4.0.0
-pkgrel=2
+pkgrel=3
pkgdesc="Open Source Computer Vision Library"
arch=(x86_64)
license=(BSD)
@@ -18,12 +18,17 @@
'opencl-icd-loader: For coding with OpenCL'
'python-numpy: Python interface')
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"
+ opencv-legacy-headers.patch)
sha256sums=('86fd08fc02893e05e2944fa7b0daa7d02643232450f020b475e1b2f24587b99a'
- '4fb0681414df4baedce6e3f4a01318d6f4fcde6ee14854d761fd4e397a397763')
+ '4fb0681414df4baedce6e3f4a01318d6f4fcde6ee14854d761fd4e397a397763'
+ '7c31ab3855b047d35b1d953431dea4145fa2a408451d8a23e19d020a9afda4ad')
prepare() {
mkdir -p build
+
+ cd $pkgname-$pkgver
+ patch -p1 -i ../opencv-legacy-headers.patch # Install legacy headers
}
build() {
Added: opencv-legacy-headers.patch
===================================================================
--- opencv-legacy-headers.patch (rev 0)
+++ opencv-legacy-headers.patch 2018-11-18 16:54:09 UTC (rev 340099)
@@ -0,0 +1,12 @@
+diff --git a/modules/imgcodecs/CMakeLists.txt b/modules/imgcodecs/CMakeLists.txt
+index d771224d4..dc9587927 100644
+--- a/modules/imgcodecs/CMakeLists.txt
++++ b/modules/imgcodecs/CMakeLists.txt
+@@ -102,6 +102,7 @@ file(GLOB imgcodecs_ext_hdrs
+ "${CMAKE_CURRENT_LIST_DIR}/include/opencv2/*.hpp"
+ "${CMAKE_CURRENT_LIST_DIR}/include/opencv2/${name}/*.hpp"
+ "${CMAKE_CURRENT_LIST_DIR}/include/opencv2/${name}/*.h"
++ "${CMAKE_CURRENT_LIST_DIR}/include/opencv2/${name}/*/*.h"
+ )
+
+ if(IOS)
More information about the arch-commits
mailing list