Merge pull request #5472 from lemmi/openimageio

openimageio: update to 1.7.10.
This commit is contained in:
Enno Boland 2017-01-11 11:00:36 +01:00 committed by GitHub
commit 1b1409d006
1 changed files with 7 additions and 5 deletions

View File

@ -1,10 +1,11 @@
# Template file for 'openimageio'
pkgname=openimageio
version=1.7.9
revision=2
version=1.7.10
revision=1
wrksrc=oiio-Release-${version}
build_style=cmake
configure_args="-DUSE_OPENGL=0 -DUSE_QT=0 -DUSE_PYTHON=0 -DOIIO_BUILD_TESTS=0"
configure_args="-DUSE_OPENGL=0 -DUSE_QT=0 -DUSE_PYTHON=0 -DOIIO_BUILD_TESTS=0
-DCMAKE_SYSTEM_PROCESSOR=${XBPS_TARGET_MACHINE}"
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) configure_args+=" -DUSE_SIMD=sse2" ;;
esac
@ -17,10 +18,11 @@ maintainer="lemmi <lemmi@nerd2nerd.org>"
license="BSD"
homepage="https://sites.google.com/site/openimageio/home"
distfiles="https://github.com/OpenImageIO/oiio/archive/Release-${version}.tar.gz"
checksum=c186f5662b6c1e75c89ae7d97e91b342adc8dfaf694402f9954f7f288e79457e
nocross=yes # -> ilmbase
checksum=ec5c567b6b4078d17df22262b764ebb7c09ce5b69f0bc2095b51e56c7070f5b7
pre_build() {
# Replace -isystem with -I to avoid "#include_next <stdlib.h>" file not found
sed -i CMakeLists.txt -e "s;-isystem;-I;g"
find ${wrksrc} -type f -exec sed -i "{}" -e "s;<sys/poll\.h>;<poll.h>;g" \;
}