mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
opencv: add nocross
This commit is contained in:
parent
2033c7b394
commit
2f7662650e
1 changed files with 3 additions and 12 deletions
|
@ -2,31 +2,22 @@
|
||||||
# vim: set ts=4 sw=4 sts=4 noet:
|
# vim: set ts=4 sw=4 sts=4 noet:
|
||||||
pkgname=opencv
|
pkgname=opencv
|
||||||
version=3.0.0
|
version=3.0.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="-Wno-dev"
|
configure_args="-Wno-dev"
|
||||||
hostmakedepends="cmake pkg-config python-devel eigen unzip python-numpy-devel"
|
hostmakedepends="cmake pkg-config python-devel eigen unzip python-numpy-devel"
|
||||||
makedepends="ffmpeg-devel libpng-devel libjpeg-turbo-devel tiff-devel
|
makedepends="ffmpeg-devel libpng-devel libjpeg-turbo-devel tiff-devel
|
||||||
jasper-devel ocl-icd-devel libgomp-devel"
|
jasper-devel ocl-icd-devel libgomp-devel libopenexr-devel"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
homepage="http://opencv.org"
|
homepage="http://opencv.org"
|
||||||
license="BSD"
|
license="BSD"
|
||||||
short_desc="Computer vision and machine learning software library"
|
short_desc="Computer vision and machine learning software library"
|
||||||
distfiles="https://github.com/Itseez/${pkgname}/archive/${version}.tar.gz"
|
distfiles="https://github.com/Itseez/${pkgname}/archive/${version}.tar.gz"
|
||||||
checksum=da51a4e459b0bcbe14fb847c4f168415f421765fb91996f42b9e1ce0575f05d5
|
checksum=da51a4e459b0bcbe14fb847c4f168415f421765fb91996f42b9e1ce0575f05d5
|
||||||
|
nocross=yes
|
||||||
|
|
||||||
configure_args="-DENABLE_PRECOMPILED_HEADERS=OFF -DWITH_OPENMP=ON -WITH_OPENCL=ON"
|
configure_args="-DENABLE_PRECOMPILED_HEADERS=OFF -DWITH_OPENMP=ON -WITH_OPENCL=ON"
|
||||||
|
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
|
||||||
makedepends+=" libopenexr-devel"
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
i686|x86_64)
|
|
||||||
makedepends+=" tbb-devel"
|
|
||||||
configure_args+=" -DWITH_TBB=ON"
|
|
||||||
esac
|
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
*-musl)
|
*-musl)
|
||||||
|
|
Loading…
Add table
Reference in a new issue