Mercurial > pidgin
annotate libgaim/plugins/perl/common/Makefile.PL.in @ 15030:b598a78c4550
[gaim-migrate @ 17813]
Don't crash when getting info on someone on jabber with no resource name
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Wed, 22 Nov 2006 20:10:01 +0000 |
parents | e506b821bc67 |
children |
rev | line source |
---|---|
14192 | 1 use 5.006; |
2 use ExtUtils::MakeMaker; | |
3 # See lib/ExtUtils/MakeMaker.pm for details of how to influence | |
4 # the contents of the Makefile that is written. | |
5 WriteMakefile( | |
6 'NAME' => 'Gaim', | |
7 'VERSION_FROM' => '@srcdir@/Gaim.pm', # finds $VERSION | |
8 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1 | |
9 ($] >= 5.005 ? ## Add these new keywords supported since 5.005 | |
10 (ABSTRACT_FROM => '@srcdir@/Gaim.pm', # retrieve abstract from module | |
14488 | 11 AUTHOR => 'Gaim <http://gaim.sourceforge.net/>') : ()), |
14192 | 12 'LIBS' => [''], # e.g., '-lm' |
13 'DEFINE' => '@DEBUG_CFLAGS@', # e.g., '-DHAVE_SOMETHING' | |
14372
d5c22258df09
[gaim-migrate @ 17078]
Etan Reisner <pidgin@unreliablesource.net>
parents:
14192
diff
changeset
|
14 'INC' => '-I. -I@srcdir@ -I@top_srcdir@ -I@top_srcdir@/libgaim @GLIB_CFLAGS@', # e.g., '-I. -I/usr/include/other' |
14192 | 15 'OBJECT' => '$(O_FILES)', # link all the C files too |
16 ); | |
17 | |
18 if (eval {require ExtUtils::Constant; 1}) { | |
19 foreach (qw(GAIM_DEBUG_ALL GAIM_DEBUG_MISC GAIM_DEBUG_INFO | |
20 GAIM_DEBUG_WARNING GAIM_DEBUG_ERROR GAIM_DEBUG_FATAL)) { | |
21 push @names, {name => $_, type => "IV", macro => 1}; | |
22 } | |
23 | |
24 ExtUtils::Constant::WriteConstants( | |
25 NAME => 'Gaim::DebugLevel', | |
26 NAMES => \@names, | |
27 C_FILE => 'const-c.inc', | |
28 XS_FILE => 'const-xs.inc' | |
29 ); | |
30 } | |
31 else { | |
32 use File::Copy; | |
33 use File::Spec; | |
34 | |
35 foreach my $file ('const-c.inc', 'const-xs.inc') { | |
36 my $fallback = File::Spec->catfile('fallback', $file); | |
37 copy ($fallback, $file) or die "Can't copy $fallback to $file: $!"; | |
38 } | |
39 } |