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, remove an unnecessary dependency on ImageMagick-7.1.1-28 by moving a file
into an expected location:
cp pic/gifgrid.gif doc/giflib-logo.gif
Install giflib by running the
following commands:
make
This package does not come with a test suite.
Now, 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.2
Command 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.