summaryrefslogtreecommitdiff
path: root/graphics/opencolorio
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@linux.com>2021-11-28 21:04:39 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-11-29 09:43:56 +0700
commit2f12e24b3c22f0a0e222f8730f988a13d0b1ab01 (patch)
tree6b1fcc145c1a4cf5ce87088da2200c903bf64206 /graphics/opencolorio
parentde42c75c284def46e6e14b115487dfcb18f37bfc (diff)
downloadslackbuilds-2f12e24b3c22f0a0e222f8730f988a13d0b1ab01.tar.gz
graphics/opencolorio: Fix destination lib directory
Signed-off-by: Christoph Willing <chris.willing@linux.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/opencolorio')
-rw-r--r--graphics/opencolorio/opencolorio.SlackBuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/graphics/opencolorio/opencolorio.SlackBuild b/graphics/opencolorio/opencolorio.SlackBuild
index 8e56097df5..7051e25413 100644
--- a/graphics/opencolorio/opencolorio.SlackBuild
+++ b/graphics/opencolorio/opencolorio.SlackBuild
@@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=opencolorio
SRCNAM=OpenColorIO
VERSION=${VERSION:-2.1.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -75,6 +75,8 @@ rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
sed -i -e 's/-Wall -Wextra/-Wextra/' CMakeLists.txt
+sed -i -e 's/lib$/${CMAKE_INSTALL_LIBDIR}/g' src/OpenColorIO/CMakeLists.txt
+sed -i -e 's/lib$/${CMAKE_INSTALL_LIBDIR}/g' src/libutils/oglapphelpers/CMakeLists.txt
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -88,10 +90,9 @@ cd build
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error=deprecated-declarations -Wno-error=cast-function-type" \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
- -DPYTHON=python3 \
-DOCIO_BUILD_STATIC:BOOL=OFF \
- -DOCIO_BUILD_JNIGLUE:BOOL=OFF \
-DCMAKE_BUILD_TYPE=Release ..
make