summaryrefslogtreecommitdiff
path: root/graphics/openimageio/openimageio.SlackBuild
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@linux.com>2017-05-21 22:12:32 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-05-27 07:28:38 +0700
commit71071b3f5c63c3490184b4e3214cda7af6c46d4e (patch)
tree949d3ff6cb4215354c716923014beb11206e6acd /graphics/openimageio/openimageio.SlackBuild
parent7cc67edc94e02874614934ddea6ce807f828da64 (diff)
downloadslackbuilds-71071b3f5c63c3490184b4e3214cda7af6c46d4e.tar.gz
graphics/openimageio: Prep for GCC 7
Signed-off-by: Christoph Willing <chris.willing@linux.com>
Diffstat (limited to 'graphics/openimageio/openimageio.SlackBuild')
-rw-r--r--graphics/openimageio/openimageio.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/graphics/openimageio/openimageio.SlackBuild b/graphics/openimageio/openimageio.SlackBuild
index e964085eb1..ba656eb25c 100644
--- a/graphics/openimageio/openimageio.SlackBuild
+++ b/graphics/openimageio/openimageio.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=openimageio
SRCNAM=oiio-Release
VERSION=${VERSION:-1.7.14}
-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())")
@@ -73,11 +73,14 @@ 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 {} \;
+# 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
+
mkdir -p build
cd build
cmake ../ \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -std=c++11" \
-DOPENJPEG_INCLUDE_DIR="/usr/include/openmj2-2.1" \
-DOPENJPEG_OPENJPEG_LIBRARIES="openmj2" \
-DCMAKE_BUILD_TYPE=Release \