aboutsummaryrefslogtreecommitdiff
path: root/libraries/libjxl
diff options
context:
space:
mode:
authorVijay Marcel <vijaymarcel@outlook.com>2023-05-26 20:16:14 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-05-27 08:08:52 +0700
commitbba32885779ba1a1ae6c39b119735d9b5859f175 (patch)
tree320c50bfa87ea377b6f4cb9ebd5755b7e0b756e3 /libraries/libjxl
parente87229a9dec2583518abde4105108eba8225913b (diff)
libraries/libjxl: Updated for version 20230511_8ec9ed1.
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libjxl')
-rw-r--r--libraries/libjxl/README8
-rw-r--r--libraries/libjxl/changelog20
-rw-r--r--libraries/libjxl/libjxl.SlackBuild20
-rw-r--r--libraries/libjxl/libjxl.info6
4 files changed, 41 insertions, 13 deletions
diff --git a/libraries/libjxl/README b/libraries/libjxl/README
index ba00fafa84ca..6bfc0e0a1714 100644
--- a/libraries/libjxl/README
+++ b/libraries/libjxl/README
@@ -13,3 +13,11 @@ of use cases including but not limited to photo galleries, e-commerce,
social media, user interfaces and cloud storage. To enable novel
applications, it also adds support for 360 degree images,
image bursts, large panoramas/mosaics, and printing.
+
+Optional dependencies:
+
+Sphinx and sphinx-rtd-theme is needed for building the html
+documentation.
+
+qt6 is needed if you want comparison tool,flicker test tool
+and directory viewer.
diff --git a/libraries/libjxl/changelog b/libraries/libjxl/changelog
new file mode 100644
index 000000000000..28c3732e4e91
--- /dev/null
+++ b/libraries/libjxl/changelog
@@ -0,0 +1,20 @@
+Changelog for libjxl SlackBuild Script
+--------------------------------------------------------------------
+
+25/09/2022:
+
+Added to slackbuilds.org
+
+16/05/2023:
+
+Updated to commit version 8ec9ed1.
+
+24/05/2023:
+
+Resubmitted to SBo.
+Optional dependencies are qt6,Sphinx ans sphinx-rtd-theme.
+
+26/05/2023:
+
+Resubmitted to SBo
+Mentioned why the Optional dependencies is needed for.
diff --git a/libraries/libjxl/libjxl.SlackBuild b/libraries/libjxl/libjxl.SlackBuild
index d6ea2f61b413..9b6c860659a1 100644
--- a/libraries/libjxl/libjxl.SlackBuild
+++ b/libraries/libjxl/libjxl.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/bash
# Slackware build script for libjxl
-# Copyright 2022 Vijay Marcel
+# Copyright 2022-2023 Vijay Marcel
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,11 +24,11 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libjxl
-VERSION=${VERSION:-20220923_7c0ce23}
+VERSION=${VERSION:-20230511_8ec9ed1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-GITNAM=${GITNAM:-7c0ce231165db47a6a065e01afd7d5083e8605a6}
+GITNAM=${GITNAM:-8ec9ed1d9824168c01627f663a1dbf07508cc115}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -51,13 +51,13 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ SLKCFLAGS="-march=i586 -mtune=i686 -pipe -O2 -fPIC"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-march=i686 -mtune=i686 -pipe -O2 -fPIC"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-march=x86-64 -mtune=native -pipe -O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
@@ -74,6 +74,7 @@ rm -rf $PRGNAM-$VERSION
rm -rf $PRGNAM-$GITNAM
tar xvf $CWD/$PRGNAM-$GITNAM.tar.gz
cd $PRGNAM-$GITNAM
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -103,7 +104,7 @@ cmake -B build -S $TMP/$PRGNAM-$GITNAM \
-DJPEGXL_ENABLE_FUZZERS:BOOL='false' \
-DJPEGXL_ENABLE_PLUGINS:BOOL='false' \
-DJPEGXL_ENABLE_VIEWERS:BOOL='true' \
- -DJPEGXL_ENABLE_SIZELESS_VECTORS:BOOL='true' \
+ -DJPEGXL_ENABLE_SIZELESS_VECTORS:BOOL='false' \
-DJPEGXL_ENABLE_TCMALLOC:BOOL='true' \
-DJPEGXL_FORCE_SYSTEM_BROTLI:BOOL='true' \
-DJPEGXL_FORCE_SYSTEM_GTEST:BOOL='true' \
@@ -112,9 +113,8 @@ cmake -B build -S $TMP/$PRGNAM-$GITNAM \
-DJPEGXL_ENABLE_SJPEG:BOOL='false' \
-DJPEGXL_STATIC:BOOL='false'
-make -C build all doc
make -C build DESTDIR="$PKG" install
-install -D -m755 build/tools/libjxl_jni.so -t "${PKG}/usr/lib64"
+install -D -m755 build/tools/libjxl_jni.so -t "${PKG}/usr/lib${LIBDIRSUFFIX}"
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
@@ -129,7 +129,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md CONTRIBUTORS LICENSE PATENTS README.md SECURITY.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md CONTRIBUTORS LICENSE PATENTS README.md SECURITY.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/libraries/libjxl/libjxl.info b/libraries/libjxl/libjxl.info
index 498a6947c436..83f621166d67 100644
--- a/libraries/libjxl/libjxl.info
+++ b/libraries/libjxl/libjxl.info
@@ -1,8 +1,8 @@
PRGNAM="libjxl"
-VERSION="20220923_7c0ce23"
+VERSION="20230511_8ec9ed1"
HOMEPAGE="https://jpeg.org/jpegxl/"
-DOWNLOAD="https://github.com/libjxl/libjxl/archive/7c0ce23/libjxl-7c0ce231165db47a6a065e01afd7d5083e8605a6.tar.gz"
-MD5SUM="f88381a1dcb8b59e19096270a29f7509"
+DOWNLOAD="https://github.com/libjxl/libjxl/archive/8ec9ed1/libjxl-8ec9ed1d9824168c01627f663a1dbf07508cc115.tar.gz"
+MD5SUM="b8d76a30fdd03f7d7d09467bc31f8817"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="gtest gflags gperftools zulu-openjdk8 graphviz highway"