~ubuntu-branches/ubuntu/natty/perl-tk/natty

« back to all changes in this revision

Viewing changes to Makefile.PL

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Zander
  • Date: 2004-03-14 13:54:44 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314135444-prc09u2or4dbr3to
Tags: 1:800.025-2
Add xlibs-dev to Build-Depends:,
Closes: #237942

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 {
7
7
  $IsWin32 = ($^O eq 'MSWin32' || $Config{'ccflags'} =~ /-D_?WIN32_?/);
8
8
 
9
 
  $VERSION = '800.024';
 
9
  #$VERSION = '800.024010';
 
10
  open(M, "Tk.pm") or die "Can't open Tk.pm for reading VERSION: $!";
 
11
  while(<M>)
 
12
   {
 
13
    if (/\$Tk::VERSION\s+=\s+'([0-9._]+)'/)
 
14
     {
 
15
      $VERSION = $1;
 
16
      last;
 
17
     }
 
18
   }
 
19
  close M;
 
20
  if (!defined $VERSION)
 
21
   {
 
22
    die "Can't find \$Tk::VERSION in Tk.pm";
 
23
   }
10
24
 
11
25
  $win_arch = shift @ARGV if @ARGV and $ARGV[0] =~ /^(open32|pm|x|MSWin32)$/;
12
26
  require('fix_4_os2.pl'), OS2_massage() if $^O eq 'os2';
50
64
 
51
65
Tk::MMutil::TkExtMakefile(
52
66
    'VERSION'  => $VERSION,
53
 
    'EXE_FILES' => [qw(ptksh ptked)],
 
67
    'EXE_FILES' => [qw(ptksh ptked gedi)],
54
68
    'NAME'     => 'Tk',
55
69
    'DIR'      => ['pTk',reverse(sort(keys %$dir))],
56
70
    'DISTNAME' => "Tk",
154
168
}
155
169
 
156
170
sub MY::postamble {
157
 
    '
 
171
 my $str = '
158
172
 
159
173
html : subdirs manifypods
160
174
        @cd pod && $(MAKE) html $(PASTHRU)
184
198
        $(MAKE) manifest
185
199
 
186
200
';
 
201
 $str =~ s/DEFINE=.*// if($^O eq 'cygwin');
 
202
 $str;
187
203
}
188
204
 
189
205