mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
graphics/openimageio: Prep for GCC 7
Signed-off-by: Christoph Willing <chris.willing@linux.com>
This commit is contained in:
parent
7cc67edc94
commit
71071b3f5c
1 changed files with 5 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
||||||
PRGNAM=openimageio
|
PRGNAM=openimageio
|
||||||
SRCNAM=oiio-Release
|
SRCNAM=oiio-Release
|
||||||
VERSION=${VERSION:-1.7.14}
|
VERSION=${VERSION:-1.7.14}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-2}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
PYLIB_INSTALL_DIRECTORY=$(python2 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
|
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 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-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
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
cmake ../ \
|
cmake ../ \
|
||||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
-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_INCLUDE_DIR="/usr/include/openmj2-2.1" \
|
||||||
-DOPENJPEG_OPENJPEG_LIBRARIES="openmj2" \
|
-DOPENJPEG_OPENJPEG_LIBRARIES="openmj2" \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
|
Loading…
Reference in a new issue