Tk

 view release on metacpan or  search on metacpan

JPEG/Makefile.jpeg.maybe  view on Meta::CPAN

     die "Cannot copy jconfig.v32 to jconfig.h:$!";
    $file = 'makefile.v32';
    warn "Assuming ".$Config{'cc'}." is visual C of some kind\n";
   }
  copy($file,"Makefile")
   || die "Cannot copy $file to Makefile:$!";
 }
else
 {
  $ENV{CC} = $Config{cc};
  local $ENV{CFLAGS} = "$Config{ccflags} $Config{cccdlflags}";
  local $ENV{LDFLAGS} = "$Config{ccflags} $Config{ldflags}";
  system(sh => "./configure");
 }

my $seen_empty_rule;
open my $fh, '<', 'Makefile' or die "Error opening Makefile: $!";
while(<$fh>)
 {
  if (/# Empty rule needed/)
   {
    $seen_empty_rule = 1;

PNG/Makefile.libpng.maybe  view on Meta::CPAN

			      |OpenBSD.amd64-openbsd
 			      |i386-freebsd
			      |x86_64-.* # e.g. linux, dragonfly
 			      |[^-]+-solaris # e.g. sun4-solaris, i86pc-solaris
 			      |IP35-irix
 			      )(?:$|-.*)
 			    }x
    )
  {
   local $ENV{CC} = $Config{cc};
   local $ENV{CFLAGS} = "$Config{ccflags} $Config{cccdlflags}";
   if ($^O eq 'darwin' && $ENV{CFLAGS} =~ m{-arch .*-arch }) { # multiple architectures not supported --- at least MacOSX is affected
       $ENV{CFLAGS} =~ s{-arch \S+}{}g;
   }
   system(sh => "./configure");
   if ($? == 0 && -s "Makefile")
    {
     open my $fh, ">>", "Makefile" or die "Can't write to Makefile: $!";
     print $fh <<'EOF';

libpng.a: all
	cp .libs/libpng.a libpng.a

PNG/Makefile.zlib.maybe  view on Meta::CPAN

  copy($file,"Makefile")
   || die "Cannot copy $file to Makefile: $!";

  # overwrite zconf.h with original zconf.in.h
  copy("zconf.in.h", "zconf.h")
   || die "Cannot copy zconf.in.h to zconf.h: $!";
 }
else
 {
  $ENV{CC} = $Config{cc};
  local $ENV{CFLAGS} = "$Config{ccflags} $Config{cccdlflags}";
  system(sh => "./configure");
 }

my $seen_empty_rule;
open my $fh, '<', 'Makefile' or die "Error opening Makefile: $!";
while(<$fh>)
 {
  if (/# Empty rule needed/)
   {
    $seen_empty_rule = 1;



( run in 1.201 second using v1.01-cache-2.11-cpan-8d75d55dd25 )