~ubuntu-branches/ubuntu/lucid/perl-tk/lucid

« back to all changes in this revision

Viewing changes to PNG/Makefile.PL

  • Committer: Bazaar Package Importer
  • Author(s): Colin Tuckley
  • Date: 2008-02-15 13:56:59 UTC
  • mfrom: (1.1.3 upstream) (4.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080215135659-ru2oqlykuju20fav
Tags: 1:804.028-1
* New Upstream Release (Closes: #463080).
* Update to Debhelper v5.
* Build with XFT=1 (Closes: #411129).

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    chmod(0666,$file);
37
37
    unlink($file);
38
38
   }
39
 
  unless (copy("libpng/Makefile.maybe","libpng/Makefile.PL"))
 
39
  unless (copy("Makefile.libpng.maybe","libpng/Makefile.PL"))
40
40
   {
41
 
    warn "Cannot copy libpng/Makefile.maybe => libpng/Makefile.PL ($!)";
 
41
    warn "Cannot copy Makefile.libpng.maybe => libpng/Makefile.PL ($!)";
42
42
    $ok = 0;
43
43
   }
44
 
  unless (copy("zlib/Makefile.maybe","zlib/Makefile.PL"))
 
44
  unless (copy("Makefile.zlib.maybe","zlib/Makefile.PL"))
45
45
   {
46
 
    warn "Cannot copy zlib/Makefile.maybe => zlib/Makefile.PL ($!)";
 
46
    warn "Cannot copy Makefile.zlib.maybe => zlib/Makefile.PL ($!)";
47
47
    $ok = 0;
48
48
   }
49
49
  if ($ok)
77
77
    }
78
78
 }
79
79
 
 
80
sub MY::test_via_harness
 
81
{
 
82
 my($self, $perl, $tests) = @_;
 
83
 qq{\t$perl "-I../t" "-MTkTest" "-MExtUtils::Command::MM" }.
 
84
 qq{"-e" "check_display_harness; test_harness(\$(TEST_VERBOSE), '\$(INST_LIB)', '\$(INST_ARCHLIB)')" $tests\n};
 
85
}
 
86
 
80
87
package MY;
81
88
 
82
89
sub pasthru {
83
 
  qq[PASTHRU="CC=$Config::Config{cc} $Config::Config{cccdlflags}" RANLIB=\"$Config::Config{ranlib}\"];
 
90
  if ($^O eq 'MSWin32' && $Config::Config{cc} =~ /gcc/)
 
91
   {
 
92
    # gcc usually has ranlib, also dmake does not understand "rem"
 
93
    # which is default setting for $Config::Config{ranlib} under
 
94
    # Windows, unless .USE_SHELL: is specified (see also special_targets
 
95
    # in ExtUtils::MM_Win32)
 
96
    qq[PASTHRU="CC=$Config::Config{cc} $Config::Config{cccdlflags}"];
 
97
   }
 
98
  else
 
99
   {
 
100
    qq[PASTHRU="CC=$Config::Config{cc} $Config::Config{cccdlflags}" RANLIB=\"$Config::Config{ranlib}\"];
 
101
   }
84
102
}
85
103
 
86
104
sub postamble {