NAME

Alien::Libpng - install a local libpng just for Perl

DESCRIPTION

This module allows you to install a local instance of the libpng library via CPAN (or CPANPLUS).

It does not yet try to find an already existing instance but will always install a new library. If this is not what you want, submit patches.

INSTALLATION

This package downloads the full libpng sources as found at http://libpng.sourceforge.net at installation time.

If you don't want the download, create a directory src and put the compressed file as src/libpng-1.2.8-config.tar.gz in the build directory.

METHODS

This package exports the following methods to query the installation directories:

prefix();

Returns the prefix (ie, the directory) where the include and lib directores will live. On a standard unix system, this might be /usr/local/

For this module, it will be $INC{'Alien/Libpng'}.

lib();

Returns the full path to the lib directory for the libpng libraries. On standard unix systems, this might be /usr/local/lib

For this module, it will be $INC{'Alien/Libpng'}/lib

include()

Returns the full path to the include directory for the libpng libraries. On standard unix systems, this might be /usr/local/include

For this module, it will be $INC{'Alien/Libpng'}/include

version()

Returns the version of the zlib libraries installed by this version of Alien::Libpng

lib_files()

Returns a list of full paths to the files that can be found in the Alien::Libpng->lib directory. This corresponds to all created libraries.

include_files()

Returns a list of full paths to the files that can be found in the Alien::Libpng->include direcotry. This corresponds to all copied header files.

archive()

Returns the archive filename. In this case it's ...

lib_version()

Returns the version of the linked library.

url()

Returns the url to fetch the source code from.

TODO

LICENSE

The Perl code in this distribution can be distributed under the same terms as Perl itself. The JPEG code is copyright (c) 2001 by the JFIF and has the following copyright note:

AUTHOR

The author of the Perl code in this package is Max Maischein corion@cpan.org. Much of the code was cannibalized from Alien::Zlib. The authors of the libpng libraries are noted in the README text file of the libpng distribution.

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 156:

You forgot a '=back' before '=head1'