summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
author B. Watson2022-03-20 22:54:47 +0100
committer Willy Sudiarto Raharjo2022-03-25 19:20:08 +0100
commit0b9e6fd38afb65c0086a930ea79f8ea3d4d4ff63 (patch)
treec146e328a36236d5412a0c97a2a9cdb70e920942 /graphics
parentdbdef9914972d306669376b3e27c7cd62323740e (diff)
downloadslackbuilds-0b9e6fd38afb65c0086a930ea79f8ea3d4d4ff63.tar.gz
graphics/opencolorio: Fix 32-bit build.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/opencolorio/README5
-rw-r--r--graphics/opencolorio/opencolorio.SlackBuild13
2 files changed, 12 insertions, 6 deletions
diff --git a/graphics/opencolorio/README b/graphics/opencolorio/README
index 72cbe886a1..e0f327ea4e 100644
--- a/graphics/opencolorio/README
+++ b/graphics/opencolorio/README
@@ -10,3 +10,8 @@ supporting many popular formats.
Warning: This SlackBuild requires network access when it runs, meaning
it downloads files from the Internet with root access. YMMV on whether
this is a good idea.
+
+Note to 32-bit users: this requires the SSE2 extension. If you
+get "illegal instruction" errors at runtime, your CPU doesn't have
+SSE2. At this point (2022), there aren't that many non-SSE2 x86 CPUs
+still in service, so probably this won't be a problem for you.
diff --git a/graphics/opencolorio/opencolorio.SlackBuild b/graphics/opencolorio/opencolorio.SlackBuild
index 13014fa38c..9d70ea657b 100644
--- a/graphics/opencolorio/opencolorio.SlackBuild
+++ b/graphics/opencolorio/opencolorio.SlackBuild
@@ -22,6 +22,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220320 bkw: Modified by SlackBuilds.org: fix 32-bit build.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=opencolorio
@@ -39,9 +41,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
@@ -80,15 +79,17 @@ sed -i -e 's/lib$/${CMAKE_INSTALL_LIBDIR}/g' src/libutils/oglapphelpers/CMakeLis
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 \
+ -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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
+
+SLKCFLAGS+=" -msse2"
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_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \