summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/openimageio/oiio-include-cstdio.diff10
-rw-r--r--graphics/openimageio/openimageio.SlackBuild3
2 files changed, 12 insertions, 1 deletions
diff --git a/graphics/openimageio/oiio-include-cstdio.diff b/graphics/openimageio/oiio-include-cstdio.diff
new file mode 100644
index 0000000000..703e86fe09
--- /dev/null
+++ b/graphics/openimageio/oiio-include-cstdio.diff
@@ -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"
diff --git a/graphics/openimageio/openimageio.SlackBuild b/graphics/openimageio/openimageio.SlackBuild
index 1fd9b96ae9..5a2e466321 100644
--- a/graphics/openimageio/openimageio.SlackBuild
+++ b/graphics/openimageio/openimageio.SlackBuild
@@ -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 \