summaryrefslogtreecommitdiff
path: root/graphics/openimageio/openimageio.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/openimageio/openimageio.SlackBuild')
-rw-r--r--graphics/openimageio/openimageio.SlackBuild20
1 files changed, 12 insertions, 8 deletions
diff --git a/graphics/openimageio/openimageio.SlackBuild b/graphics/openimageio/openimageio.SlackBuild
index 5a2e466321..90436aad86 100644
--- a/graphics/openimageio/openimageio.SlackBuild
+++ b/graphics/openimageio/openimageio.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for openimageio
-# Copyright 2015-2017 Christoph Willing Brisbane, Australia
+# Copyright 2015-2018 Christoph Willing Brisbane, Australia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,8 +24,8 @@
PRGNAM=openimageio
SRCNAM=oiio-Release
-VERSION=${VERSION:-1.7.17}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.8.7}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PYLIB_INSTALL_DIRECTORY=$(python2 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
@@ -74,6 +74,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Remove bundled pugixml
+rm -f src/include/OpenImageIO/pugi*
+
# save this for GCC 7.0
#sed -i "s|std=c++11|std=c++11 -Wno-error=maybe-uninitialized -Wno-error=format-truncation -Wno-error=noexcept-type -faligned-new|" CMakeLists.txt
@@ -90,11 +93,12 @@ cd build
-DLIB_INSTALL_DIR:PATH=lib$LIBDIRSUFFIX \
-DPYLIB_INSTALL_DIR:PATH=$PYLIB_INSTALL_DIRECTORY \
-DPYLIB3_INSTALL_DIR:PATH=$PYLIB3_INSTALL_DIRECTORY \
- -DPYLIB_INCLUDE_SONAME:BOOL=ON \
- -DPYLIB_LIB_PREFIX:BOOL=OFF \
- -DUSE_OCIO:BOOL=ON \
- -DUSE_PYTHON:BOOL=ON \
- -DUSE_PYTHON3:BOOL=ON \
+ -DPYLIB_INCLUDE_SONAME:BOOL=TRUE \
+ -DPYLIB_LIB_PREFIX:BOOL=FALSE \
+ -DUSE_OCIO:BOOL=TRUE \
+ -DUSE_PYTHON:BOOL=TRUE \
+ -DUSE_PYTHON3:BOOL=TRUE \
+ -DUSE_EXTERNAL_PUGIXML:BOOL=TRUE \
make
make install DESTDIR=$PKG