- more examples
- add AUTHOR/REVISION/SEE ALSO
- add samples/tk-photo.pl
+- fixes to verbose mode in Makefile.PL, also added a -v switch so you
+ can enable it via the command-line
+ Resolves: http://rt.cpan.org/NoAuth/Bug.html?id=16094
=================================================================
# IM_DFLAGS Extra flags to pass to the preprocessor
# IM_SUPPRESS_PROMPT Suppress the prompt asking about gif support
+getenv(); # get environment variables
+
my $help;
my @enable;
my @disable;
"disable=s" => \@disable,
"incpath=s", \@incpaths,
"libpath=s" => \@libpaths,
- "noprobe" => \$noprobe);
+ "noprobe" => \$noprobe,
+ "verbose|v" => \$VERBOSE);
+
+if ($VERBOSE) {
+ print "Verbose mode\n";
+ require Data::Dumper;
+ import Data::Dumper qw(Dumper);
+}
if ($help) {
usage();
exit 1;
}
-getenv(); # get environment variables
init(); # initialize global data
pathcheck(); # Check if directories exist
if ($VERBOSE) {
print "\nLibrary paths:\n";
- for (@incs) { print $_,"\n"; }
+ for (@libs) { print $_,"\n"; }
}
@libs=grep { -d $_ && -r _ && -x _ or ( print(" $_ doesnt exist or is unaccessible - removed.\n"),0) } @libs;
print "\ndone.\n";
IM_LFLAGS
IM_DFLAGS);
- if ($VERBOSE) { print "Verbose mode\n"; require Data::Dumper; import Data::Dumper qw(Dumper);}
-
if ($NOLOG) { print "Logging not compiled into module\n"; }
else {
push @defines, [ IMAGER_LOG => 1, "Logging system" ];
sub usage {
print STDERR <<EOS;
-Usage: $0 [--enable feature1,feature2,...] [--incpath ...] [--libpath ...]
- $0 [--disable feature1,feature2,...] [--incpath ...] [--libpath ...]
+Usage: $0 [-v] [--enable feature1,feature2,...] [--incpath ...] [--libpath ...]
+ $0 [-v] [--disable feature1,feature2,...] [--incpath ...] [--libpath ...]
$0 --help
Possible feature names are:
png gif ungif jpeg tiff T1-fonts TT-fonts freetype2