mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
extra/opencv to 2.4.9-1
This commit is contained in:
parent
332793722c
commit
0f90eeeda4
1 changed files with 14 additions and 12 deletions
|
@ -8,8 +8,8 @@
|
|||
|
||||
pkgbase=opencv
|
||||
pkgname=('opencv' 'opencv-samples')
|
||||
pkgver=2.4.8
|
||||
pkgrel=2
|
||||
pkgver=2.4.9
|
||||
pkgrel=1
|
||||
pkgdesc="Open Source Computer Vision Library"
|
||||
arch=('i686' 'x86_64')
|
||||
license=('BSD')
|
||||
|
@ -23,7 +23,7 @@ optdepends=('opencv-samples'
|
|||
source=("http://downloads.sourceforge.net/opencvlibrary/$pkgname-$pkgver.zip"
|
||||
'pkgconfig.patch'
|
||||
'fsh.patch')
|
||||
md5sums=('50cc1433b3654074206f5b3dbfd49848'
|
||||
md5sums=('7f958389e71c77abdf5efe1da988b80c'
|
||||
'c7cea48ed7d4f729ebdb9673bac41bd3'
|
||||
'c597598d142dd34d0eb4af7d6e9779d8')
|
||||
|
||||
|
@ -53,15 +53,16 @@ _cmakeopts=('-D WITH_OPENCL=OFF'
|
|||
prepare() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
|
||||
# hack-fix pkg-config mess
|
||||
msg2 "Fixing broken pkg-config (downstream)"
|
||||
# see https://bugs.archlinux.org/task/32430
|
||||
# and http://code.opencv.org/issues/1925
|
||||
patch -Np1 -i "$srcdir/pkgconfig.patch"
|
||||
|
||||
# hack-fix folder naming inconsistency that they won't fix
|
||||
# TODO: this is mostly upstream frei0r; they hardcode the path
|
||||
#msg2 "Hack-fixing folder naming inconsistency (downstream)"
|
||||
# see http://code.opencv.org/issues/2512
|
||||
# and https://bugs.archlinux.org/task/32342
|
||||
patch -Np1 -i "$srcdir/fsh.patch"
|
||||
#patch -Np1 -i "$srcdir/fsh.patch"
|
||||
|
||||
# no longer including docs, see https://bugs.archlinux.org/task/34185
|
||||
# python2 compatibility for generating (html) docs
|
||||
|
@ -84,16 +85,17 @@ package_opencv() {
|
|||
make DESTDIR="$pkgdir" install
|
||||
|
||||
# install license file
|
||||
install -Dm644 "$srcdir/$pkgname-$pkgver/doc/license.txt" \
|
||||
install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" \
|
||||
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
|
||||
cd "$pkgdir/usr/share"
|
||||
|
||||
# separate samples package; also be -R friendly
|
||||
if [[ -d $pkgname/samples ]]; then
|
||||
mv $pkgname/samples "$srcdir/opencv-samples"
|
||||
elif [[ -d $_realname ]]; then
|
||||
warn "Directory naming issue; samples package may not be built!"
|
||||
if [[ -d OpenCV/samples ]]; then
|
||||
mv OpenCV/samples "$srcdir/$pkgname-samples"
|
||||
mv OpenCV $pkgname # otherwise folder naming is inconsistent
|
||||
elif [[ ! -d OpenCV ]]; then
|
||||
warning "Directory naming issue; samples package may not be built!"
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -106,7 +108,7 @@ package_opencv-samples() {
|
|||
cp -r "$srcdir/opencv-samples" "$pkgdir/usr/share/opencv/samples"
|
||||
|
||||
# install license file
|
||||
install -Dm644 "$srcdir/opencv-$pkgver/doc/license.txt" \
|
||||
install -Dm644 "$srcdir/opencv-$pkgver/LICENSE" \
|
||||
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue