summaryrefslogtreecommitdiff
path: root/libre/opencv
diff options
context:
space:
mode:
Diffstat (limited to 'libre/opencv')
-rw-r--r--libre/opencv/PKGBUILD33
1 files changed, 23 insertions, 10 deletions
diff --git a/libre/opencv/PKGBUILD b/libre/opencv/PKGBUILD
index 8535c6837..e05aa2607 100644
--- a/libre/opencv/PKGBUILD
+++ b/libre/opencv/PKGBUILD
@@ -1,13 +1,14 @@
-# $Id$
+# $Id: PKGBUILD 242915 2015-08-01 10:41:34Z schiv $
# Maintainer (Arch): Ray Rashif <schiv@archlinux.org>
# Contributor (Arch): Tobias Powalowski <tpowa@archlinux.org>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+# Maintainer: André Silva <emulatorman@parabola.nu>
pkgbase=opencv
pkgname=opencv
pkgver=2.4.11
-pkgrel=1.parabola1
-pkgdesc="Open Source Computer Vision Library, without nonfree and 3rdparty modules and Milky icons"
+pkgrel=1.parabola2
+pkgdesc="Free Computer Vision Library, without nonfree SIFT algorithm and Milky icons"
arch=('i686' 'x86_64')
license=('BSD')
url="http://opencv.org/"
@@ -18,9 +19,9 @@ optdepends=('opencv-samples'
'libcl: For coding with OpenCL'
'python2-numpy: Python 2.x interface')
mksource=("http://downloads.sourceforge.net/opencvlibrary/$pkgname-$pkgver.zip")
-source=("https://repo.parabola.nu/other/${pkgname}-libre/${pkgname}-${pkgver}.zip")
+source=("https://repo.parabola.nu/other/${pkgname}-libre/${pkgname}-libre-${pkgver}.zip")
mkmd5sums=('32f498451bff1817a60e1aabc2939575')
-md5sums=('57b9856922b1fcf067f77f9fa14f1da7')
+md5sums=('2d33fcdfb2687bb5adcd5ab7bac8f1c3')
_cmakeopts=('-D WITH_OPENCL=ON'
'-D WITH_OPENGL=ON'
@@ -47,11 +48,23 @@ _cmakeopts=('-D WITH_OPENCL=ON'
[[ "$CARCH" = 'x86_64' ]] && _cmakeopts+=('-D ENABLE_SSE3=OFF')
mksource() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # remove nonfree SIFT algorithm that is patented in some countries and have some other limitations on the use
+ rm -rv modules/nonfree/src/sift.cpp
+
+ # remove nonfree Milky icons
+ rm -rv modules/highgui/src/files_Qt/Milky
+}
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # remove useless folder
+ rm -rv 3rdparty
- rm -rv 3rdparty
- rm -rv modules/nonfree
- rm -rv modules/highgui/src/files_Qt/Milky
+ # remove nonfree SIFT references
+ rm -rv modules/nonfree
}
build() {
@@ -77,7 +90,7 @@ package_opencv() {
# separate samples package; also be -R friendly
if [[ -d OpenCV/samples ]]; then
- mv OpenCV/samples "$srcdir/$pkgname-samples"
+ rm -r OpenCV/samples
mv OpenCV $pkgname # otherwise folder naming is inconsistent
elif [[ ! -d OpenCV ]]; then
warning "Directory naming issue; samples package may not be built!"