summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@linux.com>2021-06-04 23:14:51 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-06-08 07:39:18 +0700
commitc07ed23e3dceac10114a5abf670af3f54dbdb821 (patch)
tree4da71f9bcbe71092d6501612c3ecf3fd7063bbe9 /graphics
parent8e30fafdefe3033e6118a44594a01b1474c3b505 (diff)
downloadslackbuilds-c07ed23e3dceac10114a5abf670af3f54dbdb821.tar.gz
graphics/opencolorio: Updated for version 2.0.1
Signed-off-by: Christoph Willing <chris.willing@linux.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/opencolorio/README4
-rw-r--r--graphics/opencolorio/opencolorio.SlackBuild68
-rw-r--r--graphics/opencolorio/opencolorio.info8
3 files changed, 33 insertions, 47 deletions
diff --git a/graphics/opencolorio/README b/graphics/opencolorio/README
index 59b5477472..498a112744 100644
--- a/graphics/opencolorio/README
+++ b/graphics/opencolorio/README
@@ -6,7 +6,3 @@ allowing for sophisticated back-end configuration options suitable
for high-end production usage. OCIO is compatible with the Academy
Color Encoding Specification (ACES) and is LUT-format agnostic,
supporting many popular formats.
-
-This package includes building of a shared object library for each of
-python2 and python3 provided the respective python version is available
-on the build system.
diff --git a/graphics/opencolorio/opencolorio.SlackBuild b/graphics/opencolorio/opencolorio.SlackBuild
index 1f4766e8af..ee72665c11 100644
--- a/graphics/opencolorio/opencolorio.SlackBuild
+++ b/graphics/opencolorio/opencolorio.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for opencolorio
-# Copyright 2015-2019 Christoph Willing Brisbane, Australia
+# Copyright 2015-2021 Christoph Willing Brisbane, Australia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,10 +24,9 @@
PRGNAM=opencolorio
SRCNAM=OpenColorIO
-VERSION=${VERSION:-1.1.1}
+VERSION=${VERSION:-2.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-PYTHON_VERSIONS=${PYTHON_VERSIONS:-"2 3"}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -61,41 +60,32 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-for v in $PYTHON_VERSIONS ; do
- if [ $(which python$v 2>/dev/null) ]; then
- PY_INCLUDE_DIR=$(pkg-config --cflags-only-I python$v |sed -e 's/-I//')
- PY_SITEDIR=$(python$v -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
-
- cd $TMP
- rm -rf $SRCNAM-$VERSION
- tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
- cd $SRCNAM-$VERSION
- sed -i -e 's/-Wall -Wextra/-Wextra/' CMakeLists.txt
- chown -R root:root .
- find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
- mkdir -p build
- cd build
- cmake \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error=deprecated-declarations -Wno-error=cast-function-type" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DLIB_SUFFIX=${LIBDIRSUFFIX} \
- -DPYTHON=python$v \
- -DPYTHON_INCLUDE_DIR:PATH=$PY_INCLUDE_DIR \
- -DPYTHON_LIBRARY:PATH=$PY_SITEDIR \
- -DOCIO_BUILD_STATIC:BOOL=OFF \
- -DOCIO_BUILD_JNIGLUE:BOOL=OFF \
- -DCMAKE_BUILD_TYPE=Release ..
-
- make
- make install DESTDIR=$PKG
- fi
-done
+cd $TMP
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
+sed -i -e 's/-Wall -Wextra/-Wextra/' CMakeLists.txt
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error=deprecated-declarations -Wno-error=cast-function-type" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DPYTHON=python3 \
+ -DOCIO_BUILD_STATIC:BOOL=OFF \
+ -DOCIO_BUILD_JNIGLUE:BOOL=OFF \
+ -DCMAKE_BUILD_TYPE=Release ..
+
+ make
+ make install DESTDIR=$PKG
cd ..
@@ -103,7 +93,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a INSTALL LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a *.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/graphics/opencolorio/opencolorio.info b/graphics/opencolorio/opencolorio.info
index 3783daffdf..1f09127853 100644
--- a/graphics/opencolorio/opencolorio.info
+++ b/graphics/opencolorio/opencolorio.info
@@ -1,10 +1,10 @@
PRGNAM="opencolorio"
-VERSION="1.1.1"
+VERSION="2.0.1"
HOMEPAGE="http://opencolorio.org/"
-DOWNLOAD="https://github.com/imageworks/OpenColorIO/archive/v1.1.1/OpenColorIO-1.1.1.tar.gz"
-MD5SUM="23d8b9ac81599305539a5a8674b94a3d"
+DOWNLOAD="https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/v2.0.1/OpenColorIO-2.0.1.tar.gz
+MD5SUM="85d186cf2ae3ec979fc510630b0472b5"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="pybind11"
MAINTAINER="Christoph Willing"
EMAIL="chris.willing@linux.com"