Image-PNG-Data

 view release on metacpan or  search on metacpan

MANIFEST  view on Meta::CPAN

Changes
Data.xs
image-png-data-perl.c
inc/CheckForLibPng.pm
lib/Image/PNG/Data.pm
lib/Image/PNG/Data.pod
Makefile.PL
MANIFEST			This list of files
MANIFEST.SKIP
options.json
ppport.h
README
t/abc-palette.png
t/abc.png

Makefile.PL  view on Meta::CPAN

use Getopt::Long;
use Config qw/%Config/;

my $ok = GetOptions (
    check => \my $check,
    optimize => \my $optimize,
    "prefix=s" => \my $prefix,
);

use lib 'inc';
use CheckForLibPng;

my $vars = check_for_libpng (verbose => $check, prefix => $prefix,);

if (! $vars) {
    print STDERR "Libpng may not be present on this system.\n";
    exit;
}

my $pm = 'lib/Image/PNG/Data.pm';
my $pod = 'lib/Image/PNG/Data.pod';

inc/CheckForLibPng.pm  view on Meta::CPAN

#
# - Remove "Template" stuff
# - Change file to edit
# - Debugging messages all go through "msg".
#
# 0.01 2017-06-28
#
# Old method of checking for libpng recovered from Image::PNG::Libpng
# git commit 50c6032e3f61624736159930026f2b2a306fcd35.

package CheckForLibPng;
use parent Exporter;
our @EXPORT = qw/check_for_libpng/;
use warnings;
use strict;
use utf8;
use FindBin '$Bin';
use Carp;

our $VERSION = '0.03';

inc/CheckForLibPng.pm  view on Meta::CPAN

"libpng". Somehow or other this didn't work out. If you don't have
libpng on your system, sorry but you need to install this module. 

If you are on Ubuntu Linux, you probably need to do something like

    sudo aptitude install libpng-dev

to install the header file "png.h" for libpng into your system.

If you think you have libpng on your system, please edit the file
"inc/CheckForLibPng.pm" and run "perl Makefile.PL" again. The relevant
lines are right at the top of the file,

my $png_lib_dir;
my $png_include_dir;

Edit these lines to wherever your libpng and png.h files
respectively are to be found, for example

my $png_lib_dir = '/some/strange/directory';
my $png_include_dir = '/somewhere/nobody/knows';



( run in 0.383 second using v1.01-cache-2.11-cpan-0a6323c29d9 )