libwebp - WebP image format utilities and library ChangeLog

HOWTO


# libwebp 1.3.2
# =============
# Slackware 15.0: libwebp 1.2.2

# Prerequisites:
# libjpeg
# libpng
# libtiff
# libgif

# The version of this HOWTO covering 1.0.1 used the default prefix of
# /usr/local.  Skip down to the bottom to remove older versions before
# installing this one where Slackware does in /usr.

# Get it
cd
test -f installed/libwebp-1.3.2.tar.gz &&
mv -f installed/libwebp-1.3.2.tar.gz
test ! -f libwebp-1.3.2.tar.gz &&
wget https://storage.googleapis.com/downloads.webmproject.org/releases/\
webp/libwebp-1.3.2.tar.gz

# Verify tarball w/ sha256sum:
# (this came from my gpg-verified tarball)
echo "2a499607df669e40258e53d0ade8035ba4ec0175244869d1025d460562aa09\
b4  libwebp-1.3.2.tar.gz" | sha256sum -c

# Verify tarball w/ gpg:
( gpg --list-keys B8232B5D > /dev/null 2>&1 || gpg --recv-keys B8232B5D ) &&
wget -nc https://storage.googleapis.com/downloads.webmproject.org/releases/\
webp/libwebp-1.3.2.tar.gz.asc &&
  gpg --verify libwebp-1.3.2.tar.gz.asc &&
   rm libwebp-1.3.2.tar.gz.asc

# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "libwebp-*" -exec rm -r {} \;
tar xzvf ~/libwebp-1.3.2.tar.gz
cd libwebp-1.3.2
test $UID = 0 && chown -R root:root .

# You can also use CMake if you prefer
# (or 'make -f makefile.unix')

# Configure the build for 64-bit
test $(uname -m) = 'x86_64' &&
./configure --disable-static --prefix=/usr --libdir=/usr/lib64 \
--mandir=/usr/man \
--enable-libwebpdecoder \
--enable-libwebpextras

# Configure the build for anything else
test $(uname -m) != 'x86_64' &&
./configure --disable-static --prefix=/usr \
--mandir=/usr/man \
--enable-libwebpdecoder \
--enable-libwebpextras

# Build it
make

# Become root to install it
su

# Install it
make install
ldconfig

# Become your non-root user again
exit

# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/libwebp-*.tar.*
mv -f libwebp-1.3.2.tar.gz installed/


# If you ever want to uninstall libwebp, this should do it:
cd
su
test -d src/libwebp-* && ( cd src/libwebp-* ; make uninstall )
for pfx in /usr/local /usr;
do
  ( cd ${pfx}/bin
    rm -f cwebp dwebp gif2webp img2webp webpinfo webpmux )
  test -d ${pfx}/include/webp && rm -r ${pfx}/include/webp
  ( cd ${pfx}/lib
    rm -f libsharpyuv.* libwebp.* libwebpdecoder.* libwebpdemux.* libwebpmux.* )
  test -d ${pfx}/lib/pkgconfig &&
   ( cd ${pfx}/lib/pkgconfig
     rm -f libsharpyuv.pc libwebp.pc libwebpdecoder.pc libwebpdemux.pc \
      libwebpmux.pc )
  test -d ${pfx}/lib64 &&
   ( cd ${pfx}/lib64
     rm -f libsharpyuv.* libwebp.* libwebpdecoder.* libwebpdemux.* libwebpmux.* )
  test -d ${pfx}/lib64/pkgconfig &&
   ( cd ${pfx}/lib64/pkgconfig
     rm -f libsharpyuv.pc libwebp.pc libwebpdecoder.pc libwebpdemux.pc \
      libwebpmux.pc )
  ( cd ${pfx}/man/man1
    rm -f cwebp.1 dwebp.1 gif2webp.1 img2webp.1 webpinfo.1 webpmux.1 )
done
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libwebp-*" -exec rm -r {} \;
rm -f ~/installed/libwebp-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2023-12-13 10:10pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]