libpng-1.2.5

Introduction to libpng

Download location (HTTP):       http://www.libpng.org/pub/png/src/libpng-1.2.5.tar.bz2
Download location (FTP):        ftp://swrinde.nde.swri.edu/pub/png/src/libpng-1.2.5.tar.gz
Version used:                   1.2.5
Package size:                   376 KB
Estimated Disk space required:  4.1 MB

The libpng package contains the libpng libraries. These are used by other programs for reading and writing png files.

libpng depends on: 
zlib-1.1.4

Installation of libpng

Install libpng by running the following commands:

make prefix=/usr CC="gcc $CFLAGS" \
   ZLIBINC=/usr/include ZLIBLIB=/usr/lib -f scripts/makefile.linux &&
make prefix=/usr install -f scripts/makefile.linux


Command explanations

CC="gcc $CFLAGS" : This makes libpng use CFLAGS when compiling.

ZLIBINC=/usr/include ZLIBLIB=/usr/lib : This forces libpng to look for the zlib includes and libraries where we have them installed.

-f scripts/makefile.linux : This points make at the the Linux version of the makefile as libpng doesn't use a autoconf routine instead coming with various makefiles for different platforms.

Configuring libpng

Configuration Information

As with most libraries, there is no configuration to do, save that the library directory i.e. /usr/lib or /usr/local/lib should appear in /etc/ld.so.conf so that ldd can find the shared libraries. After checking that this is the case, /sbin/ldconfig should be run whilst logged in as root.

Contents

The libpng package contains the png libraries and libpng-config.

Description

png libraries

The PNG library is a collection of routines used to create and manipulate PNG format graphics 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.

libpng-config

libpng-config provides configuration info for libpng.