The libpng package contains libraries used by other programs for reading and writing PNG files. The PNG format was designed as a replacement for GIF and, to a lesser extent, TIFF, with many improvements and extensions and lack of patent problems.
This package is known to build and work properly using an LFS-7.4 platform.
Download (HTTP): http://downloads.sourceforge.net/libpng/libpng-1.6.4.tar.xz
Download MD5 sum: c223da07809a132335dbc658253b438a
Download size: 849 KB
Estimated disk space required: 11 MB
Estimated build time: 0.1 SBU
Optional patch to include animated png functionality in libpng (required to use the system libpng in Firefox): http://downloads.sourceforge.net/libpng-apng/libpng-1.6.3-apng.patch.gz
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/libpng
If you want to patch libpng to support apng files, apply the patch:
gzip -cd ../libpng-1.6.3-apng.patch.gz | patch -p1
Install libpng by running the following commands:
./configure --prefix=/usr --disable-static && make
To test the results, issue: make check.
Now, as the root
user:
make install && mkdir -v /usr/share/doc/libpng-1.6.4 && cp -v README libpng-manual.txt /usr/share/doc/libpng-1.6.4
--disable-static
: This
switch prevents installation of static versions of the libraries.
Last updated on 2013-09-13 01:25:14 -0700