graphics/openimageio: Patch to include cstdio (missing since openjpeg update)

Signed-off-by: Christoph Willing <chris.willing@linux.com>
This commit is contained in:
Christoph Willing 2017-10-30 11:10:02 +10:00 committed by Willy Sudiarto Raharjo
parent fd3e7fdfbb
commit cf5512184d
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,10 @@
--- src/jpeg2000.imageio/jpeg2000output-v1.cpp.orig 2017-08-31 14:36:04.000000000 +1000
+++ src/jpeg2000.imageio/jpeg2000output-v1.cpp 2017-10-30 10:34:45.122572637 +1000
@@ -27,6 +27,7 @@
(This is the Modified BSD License)
*/
+#include <cstdio>
#include <vector>
#include "openjpeg.h"
#include "OpenImageIO/filesystem.h"

View File

@ -25,7 +25,7 @@
PRGNAM=openimageio
SRCNAM=oiio-Release
VERSION=${VERSION:-1.7.17}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PYLIB_INSTALL_DIRECTORY=$(python2 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
@ -66,6 +66,7 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
patch -p0 < $CWD/oiio-include-cstdio.diff
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \