summaryrefslogtreecommitdiff
path: root/user/opencv/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-01 17:40:41 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-01 17:40:41 -0500
commit879d0c8f29f4bfbe87e4a6572592d8a79bf55e6b (patch)
tree8d5ea6faf91969a5695568514d4996cddc420502 /user/opencv/APKBUILD
parent26baf6ee4e010ad434c4b3c3d4bd4c7ebf981ecc (diff)
downloadpackages-879d0c8f29f4bfbe87e4a6572592d8a79bf55e6b.tar.gz
packages-879d0c8f29f4bfbe87e4a6572592d8a79bf55e6b.tar.bz2
packages-879d0c8f29f4bfbe87e4a6572592d8a79bf55e6b.tar.xz
packages-879d0c8f29f4bfbe87e4a6572592d8a79bf55e6b.zip
user/opencv: fix build on Intel platforms
Diffstat (limited to 'user/opencv/APKBUILD')
-rw-r--r--user/opencv/APKBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/user/opencv/APKBUILD b/user/opencv/APKBUILD
index 7d403770e..3f4c9e58c 100644
--- a/user/opencv/APKBUILD
+++ b/user/opencv/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer:
pkgname=opencv
pkgver=3.4.1
-pkgrel=1
+pkgrel=2
pkgdesc="Computer vision and machine learning software library"
url="https://opencv.org"
arch="all"
@@ -13,7 +13,9 @@ makedepends="cmake doxygen ffmpeg-dev gst-plugins-base-dev gtk+2.0-dev
gtk+3.0-dev jasper-dev libdc1394-dev libgomp libgphoto2-dev
libjpeg-turbo-dev libpng-dev libwebp-dev tiff-dev v4l-utils-dev"
subpackages="$pkgname-dev $pkgname-libs"
-source="opencv-$pkgver.tar.gz::https://github.com/opencv/opencv/archive/$pkgver.tar.gz"
+source="opencv-$pkgver.tar.gz::https://github.com/opencv/opencv/archive/$pkgver.tar.gz
+ pmmx.patch
+ "
prepare() {
cd "$builddir"
@@ -23,6 +25,7 @@ prepare() {
case $i in
*/carotene*) continue;;
*/protobuf*) continue;;
+ */ittnotify) continue;; # Else FTBFS on x86_64
esac
rm -rf "$i"
done
@@ -39,8 +42,8 @@ build() {
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
- -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
- -DCMAKE_C_FLAGS="$CFLAGS" \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS -U_FORTIFY_SOURCE" \
+ -DCMAKE_C_FLAGS="$CFLAGS -U_FORTIFY_SOURCE" \
-DENABLE_PRECOMPILED_HEADERS=OFF \
-DWITH_OPENMP=ON \
-DWITH_OPENCL=ON \
@@ -61,4 +64,5 @@ package() {
make DESTDIR="$pkgdir" install
}
-sha512sums="e1fc14285090c6fe9e26e721f2d67d7096650c523147e925567426ef76aa7f4c6f12035d6f6ce3ec7991a75a6828a810fd4f9b75f78ed5fcccecefbadd79944b opencv-3.4.1.tar.gz"
+sha512sums="e1fc14285090c6fe9e26e721f2d67d7096650c523147e925567426ef76aa7f4c6f12035d6f6ce3ec7991a75a6828a810fd4f9b75f78ed5fcccecefbadd79944b opencv-3.4.1.tar.gz
+8ebf573e3f02b78b5769eaf828215698073096a1dade9214af0382cfbbe2353307df836a6af8c4e86246ad33fefe1f64a1087d0ff7a6dc7c5f3e231592c20b4c pmmx.patch"