mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
65 lines
1.9 KiB
Bash
65 lines
1.9 KiB
Bash
# $Id$
|
|
# Maintainer: AndyRTR <andyrtr@archlinux.org>
|
|
# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - build v5 with -DCMAKE_CXX_FLAGS=-std=c++11 -DWITH_BOOST_THREAD=1 to fix FTBFS
|
|
|
|
pkgbase=vigra
|
|
pkgname=('vigra' 'vigra-doc')
|
|
pkgver=1.11.0
|
|
pkgrel=6
|
|
arch=('i686' 'x86_64')
|
|
url="http://hci.iwr.uni-heidelberg.de/vigra/"
|
|
license=('custom:MIT')
|
|
makedepends=(# runtime deps
|
|
'libpng' 'libtiff' 'openexr' 'gcc-libs' 'sh' 'hdf5' 'fftw'
|
|
# additional makedeps
|
|
'cmake' 'python-nose' 'doxygen' 'python-sphinx' 'boost' 'python-numpy')
|
|
source=(https://github.com/ukoethe/vigra/releases/download/Version-${pkgver//./-}/vigra-${pkgver}-src.tar.gz)
|
|
md5sums=('7f80d289e03a2f2e8c8e85f3ff29d988')
|
|
|
|
build() {
|
|
cd "${srcdir}"/${pkgbase}-${pkgver}
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DPYTHON_EXECUTABLE=/usr/bin/python \
|
|
-DWITH_OPENEXR=true \
|
|
-DWITH_VIGRANUMPY=1 \
|
|
-DDOCINSTALL=share/doc \
|
|
$([ $CARCH == arm ] && echo "-DCMAKE_CXX_FLAGS=-std=c++11 -DWITH_BOOST_THREAD=1")
|
|
make
|
|
}
|
|
|
|
#check() {
|
|
# cd "${srcdir}"/${pkgname}-${pkgver}
|
|
# make -j1 -k check #|| /bin/true # i686 fails
|
|
#}
|
|
|
|
package_vigra() {
|
|
pkgdesc="Computer vision library"
|
|
depends=('libpng' 'libtiff' 'openexr' 'gcc-libs' 'sh' 'hdf5' 'fftw')
|
|
optdepends=('python: for python bindings'
|
|
'boost-libs: for python bindings')
|
|
|
|
cd "${srcdir}"/${pkgbase}-${pkgver}
|
|
make DESTDIR="${pkgdir}" install
|
|
# license
|
|
install -D -m644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
|
|
|
# remove doc
|
|
rm -rf "${pkgdir}"/usr/share/doc
|
|
}
|
|
|
|
package_vigra-doc() {
|
|
pkgdesc="Computer vision library - documentation and examples"
|
|
#depends=('vigra')
|
|
#arch=('any')
|
|
|
|
cd "${srcdir}"/${pkgbase}-${pkgver}
|
|
make DESTDIR="${pkgdir}" install
|
|
# cleanup
|
|
rm -rf "${pkgdir}"/usr/{bin,include,lib}
|
|
|
|
# license
|
|
install -D -m644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|