Introduction to giflib
The giflib package contains libraries
for reading and writing GIFs as well as programs for converting and
working with GIF files.
This package is known to build and work properly
using an LFS 12.4 platform.
Package Information
Download (HTTP): https://sourceforge.net/projects/giflib/files/giflib-5.2.2.tar.gz
Download SHA256 Sum: be7ffbd057cadebe2aa144542fd90c6838c6a083b5e8a9048b8ee3b66b29d5fb
Download MD5 sum: 913dd251492134e235ee3c9a91987a4d
Download size: 2,241.6 KB
Estimated disk space required: 2,951.6 KB
Estimated build time: less than 0.1 SBU
Additional Downloads
giflib Dependencies
Optional
xmlto-0.0.29 (required if you run make
after make clean)
Installation of giflib
First, prevent the build process from installing XML files instead of man
pages:
patch -Np1 -i ../giflib-5.2.2-upstream_fixes-1.patch
Next, fix several security vulnerabilities in the 'gif2rgb' utility:
patch -Np1 -i ../giflib-5.2.2-security_fixes-1.patch
Next, remove an unnecessary dependency on "imagemagick"
by moving a file into an expected location, and
Build giflib by running the following commands:
cp pic/gifgrid.gif doc/giflib-logo.gif
make
To test the results, issue:
make check
Now Install the package, as the root user:
make PREFIX=/usr install
rm -fv /usr/lib/libgif.a
find doc \( -name Makefile\* -o -name \*.1 \
-o -name \*.xml \) -exec rm -v {} \;
install -v -dm755 /usr/share/doc/giflib-5.2.2
cp -v -R doc/* /usr/share/doc/giflib-5.2.2Command Explanations
rm -fv /usr/lib/libgif.a: This command removes a
static library which is not used by any BLFS package.
find doc ... -exec rm -v {} \;: This command removes
Makefiles, man and xml files from the documentation
directory that would otherwise be installed by the commands that follow.