From 9a471e476be862f934d3e1dd19df76dbc2edcb7a Mon Sep 17 00:00:00 2001 From: lemmi Date: Tue, 10 Jan 2017 21:01:00 +0100 Subject: [PATCH] openimageio: update to 1.7.10. --- srcpkgs/openimageio/template | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/srcpkgs/openimageio/template b/srcpkgs/openimageio/template index 281a26a8ab6..c99dbe3c157 100644 --- a/srcpkgs/openimageio/template +++ b/srcpkgs/openimageio/template @@ -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 " 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 " file not found + sed -i CMakeLists.txt -e "s;-isystem;-I;g" find ${wrksrc} -type f -exec sed -i "{}" -e "s;;;g" \; }