annotate plugins/perl/common/Makefile.PL.in @ 6678:eb95f31fa4eb

[gaim-migrate @ 7203] The perl plugin should now work with perl v5.6.0. This is not tested yet, but it compiles and should work now. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 01 Sep 2003 22:16:10 +0000
parents e5c7149bc9ed
children 134d0001983d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6678
eb95f31fa4eb [gaim-migrate @ 7203]
Christian Hammond <chipx86@chipx86.com>
parents: 6665
diff changeset
1 use 5.006;
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
2 use ExtUtils::MakeMaker;
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
3 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
4 # the contents of the Makefile that is written.
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
5 WriteMakefile(
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
6 'NAME' => 'Gaim',
6663
d7dd3f4a7b21 [gaim-migrate @ 7188]
Christian Hammond <chipx86@chipx86.com>
parents: 6588
diff changeset
7 'VERSION_FROM' => '@srcdir@/Gaim.pm', # finds $VERSION
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
8 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
9 ($] >= 5.005 ? ## Add these new keywords supported since 5.005
6663
d7dd3f4a7b21 [gaim-migrate @ 7188]
Christian Hammond <chipx86@chipx86.com>
parents: 6588
diff changeset
10 (ABSTRACT_FROM => '@srcdir@/Gaim.pm', # retrieve abstract from module
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
11 AUTHOR => 'Christian Hammond <chipx86@gnupdate.org>') : ()),
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
12 'LIBS' => [''], # e.g., '-lm'
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
13 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
6665
e5c7149bc9ed [gaim-migrate @ 7190]
Christian Hammond <chipx86@chipx86.com>
parents: 6663
diff changeset
14 'INC' => '-I. -I@srcdir@ -I@top_srcdir@ -I@top_srcdir@/src @GLIB_CFLAGS@', # e.g., '-I. -I/usr/include/other'
6508
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
15 'OBJECT' => '$(O_FILES)', # link all the C files too
cbd24b37350d [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
16 );
6588
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
17
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
18 if (eval {require ExtUtils::Constant; 1}) {
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
19 foreach (qw(GAIM_DEBUG_ALL GAIM_DEBUG_MISC GAIM_DEBUG_INFO
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
20 GAIM_DEBUG_WARNING GAIM_DEBUG_ERROR GAIM_DEBUG_FATAL)) {
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
21 push @names, {name => $_, type => "IV", macro => 1};
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
22 }
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
23
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
24 ExtUtils::Constant::WriteConstants(
6678
eb95f31fa4eb [gaim-migrate @ 7203]
Christian Hammond <chipx86@chipx86.com>
parents: 6665
diff changeset
25 NAME => 'Gaim::DebugLevel',
eb95f31fa4eb [gaim-migrate @ 7203]
Christian Hammond <chipx86@chipx86.com>
parents: 6665
diff changeset
26 NAMES => \@names,
eb95f31fa4eb [gaim-migrate @ 7203]
Christian Hammond <chipx86@chipx86.com>
parents: 6665
diff changeset
27 C_FILE => 'const-c.inc',
eb95f31fa4eb [gaim-migrate @ 7203]
Christian Hammond <chipx86@chipx86.com>
parents: 6665
diff changeset
28 XS_FILE => 'const-xs.inc'
6588
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
29 );
7f5f57dd5cac [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6508
diff changeset
30 }
6678
eb95f31fa4eb [gaim-migrate @ 7203]
Christian Hammond <chipx86@chipx86.com>
parents: 6665
diff changeset
31 else {
eb95f31fa4eb [gaim-migrate @ 7203]
Christian Hammond <chipx86@chipx86.com>
parents: 6665
diff changeset
32 use File::Copy;
eb95f31fa4eb [gaim-migrate @ 7203]
Christian Hammond <chipx86@chipx86.com>
parents: 6665
diff changeset
33 use File::Spec;
eb95f31fa4eb [gaim-migrate @ 7203]
Christian Hammond <chipx86@chipx86.com>
parents: 6665
diff changeset
34
eb95f31fa4eb [gaim-migrate @ 7203]
Christian Hammond <chipx86@chipx86.com>
parents: 6665
diff changeset
35 foreach my $file ('const-c.inc', 'const-xs.inc') {
eb95f31fa4eb [gaim-migrate @ 7203]
Christian Hammond <chipx86@chipx86.com>
parents: 6665
diff changeset
36 my $fallback = File::Spec->catfile('fallback', $file);
eb95f31fa4eb [gaim-migrate @ 7203]
Christian Hammond <chipx86@chipx86.com>
parents: 6665
diff changeset
37 copy ($fallback, $file) or die "Can't copy $fallback to $file: $!";
eb95f31fa4eb [gaim-migrate @ 7203]
Christian Hammond <chipx86@chipx86.com>
parents: 6665
diff changeset
38 }
eb95f31fa4eb [gaim-migrate @ 7203]
Christian Hammond <chipx86@chipx86.com>
parents: 6665
diff changeset
39 }