aboutsummaryrefslogtreecommitdiff
path: root/graphics/openimageio/openimageio.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/openimageio/openimageio.SlackBuild')
-rw-r--r--graphics/openimageio/openimageio.SlackBuild22
1 files changed, 7 insertions, 15 deletions
diff --git a/graphics/openimageio/openimageio.SlackBuild b/graphics/openimageio/openimageio.SlackBuild
index 5be9a3d692..58ffc36f43 100644
--- a/graphics/openimageio/openimageio.SlackBuild
+++ b/graphics/openimageio/openimageio.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for openimageio
-# Copyright 2015-2023 Christoph Willing Brisbane, Australia
+# Copyright 2015-2025 Christoph Willing, Sydney Australia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,10 +25,10 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=openimageio
-SRCNAM=OpenImageIO-Release
-VERSION=${VERSION:-2.2.21.0}
+SRCNAM=OpenImageIO
+VERSION=${VERSION:-2.5.18.0}
FMT=${FMT:-"fmt-7.1.3"}
-BUILD=${BUILD:-4}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -40,9 +40,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -54,16 +51,12 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686 -D__STDC_CONSTANT_MACROS"
- LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686 -D__STDC_CONSTANT_MACROS"
- LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC -D__STDC_CONSTANT_MACROS"
- LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2 -D__STDC_CONSTANT_MACROS"
- LIBDIRSUFFIX=""
fi
set -e
@@ -74,7 +67,6 @@ cd $TMP
rm -rf $SRCNAM-$VERSION
tar xf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
-patch -p1 < $CWD/ffmpeg-5.1.diff
# Use private fmt
mkdir -p ext
@@ -94,13 +86,13 @@ mkdir -p build
cd build
cmake ../ \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -std=c++11 -fcommon" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -std=c++14 -fcommon" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DBUILD_FMT_FORCE:BOOL=TRUE \
+ -DBUILD_FMT_FORCE:BOOL=TRUE \
-DPYLIB_INCLUDE_SONAME:BOOL=TRUE \
-DPYLIB_LIB_PREFIX:BOOL=FALSE \
- -DUSE_OPENJPEG:BOOL=FALSE \
+ -DUSE_OPENJPEG:BOOL=TRUE \
-DOIIO_BUILD_TESTS:BOOL=FALSE \
-DUSE_PYTHON:BOOL=TRUE \
-DPYTHON_VERSION=$(python3 --version | cut -d' ' -f2) \