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.0 platform.
Download (HTTP): http://downloads.sourceforge.net/libpng/libpng-1.5.8.tar.xz
Download MD5 sum: 0f7ae352beadaff78073733905613041
Download size: 685 KB
Estimated disk space required: 8.3 MB
Estimated build time: 0.1 SBU
Optional patch to include animated png functionality in libpng : http://sourceforge.net/projects/libpng-apng/files/libpng15/1.5.8/libpng-1.5.8-apng.patch.gz
The patch is required if you want to use the system libpng in Firefox.
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.5.8-apng.patch.gz | patch -p1
Install libpng by running the following commands:
./configure --prefix=/usr --disable-static && make
To test the results, issue: make test.
Now, as the root user:
make install && mkdir /usr/share/doc/libpng-1.5.8 && cp README libpng-manual.txt /usr/share/doc/libpng-1.5.8
--disable-static: This option prevents
it compiling the static archive versions of the libraries.
Last updated on 2012-02-10 01:27:14 +0000