comparison libpurple/plugins/perl/common/Makefile.PL.in @ 15833:2f8274ce570a

Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 19 Mar 2007 17:02:24 +0000
parents 439a013d91bb
children 65b45106bfbb
comparison
equal deleted inserted replaced
15832:df859a1b40b1 15833:2f8274ce570a
1 use 5.006; 1 use 5.006;
2 use ExtUtils::MakeMaker; 2 use ExtUtils::MakeMaker;
3 # See lib/ExtUtils/MakeMaker.pm for details of how to influence 3 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
4 # the contents of the Makefile that is written. 4 # the contents of the Makefile that is written.
5 WriteMakefile( 5 WriteMakefile(
6 'NAME' => 'Gaim', 6 'NAME' => 'Purple',
7 'VERSION_FROM' => '@srcdir@/Gaim.pm', # finds $VERSION 7 'VERSION_FROM' => '@srcdir@/Purple.pm', # finds $VERSION
8 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1 8 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1
9 ($] >= 5.005 ? ## Add these new keywords supported since 5.005 9 ($] >= 5.005 ? ## Add these new keywords supported since 5.005
10 (ABSTRACT_FROM => '@srcdir@/Gaim.pm', # retrieve abstract from module 10 (ABSTRACT_FROM => '@srcdir@/Purple.pm', # retrieve abstract from module
11 AUTHOR => 'Gaim <http://gaim.sourceforge.net/>') : ()), 11 AUTHOR => 'Purple <http://pidgin.im/>') : ()),
12 'LIBS' => [''], # e.g., '-lm' 12 'LIBS' => [''], # e.g., '-lm'
13 'DEFINE' => '@DEBUG_CFLAGS@', # e.g., '-DHAVE_SOMETHING' 13 'DEFINE' => '@DEBUG_CFLAGS@', # e.g., '-DHAVE_SOMETHING'
14 'INC' => '-I. -I@srcdir@ -I@top_srcdir@ -I@top_srcdir@/libpurple @GLIB_CFLAGS@', # e.g., '-I. -I/usr/include/other' 14 'INC' => '-I. -I@srcdir@ -I@top_srcdir@ -I@top_srcdir@/libpurple @GLIB_CFLAGS@', # e.g., '-I. -I/usr/include/other'
15 'OBJECT' => '$(O_FILES)', # link all the C files too 15 'OBJECT' => '$(O_FILES)', # link all the C files too
16 ); 16 );
17 17
18 if (eval {require ExtUtils::Constant; 1}) { 18 if (eval {require ExtUtils::Constant; 1}) {
19 foreach (qw(GAIM_DEBUG_ALL GAIM_DEBUG_MISC GAIM_DEBUG_INFO 19 foreach (qw(PURPLE_DEBUG_ALL PURPLE_DEBUG_MISC PURPLE_DEBUG_INFO
20 GAIM_DEBUG_WARNING GAIM_DEBUG_ERROR GAIM_DEBUG_FATAL)) { 20 PURPLE_DEBUG_WARNING PURPLE_DEBUG_ERROR PURPLE_DEBUG_FATAL)) {
21 push @names, {name => $_, type => "IV", macro => 1}; 21 push @names, {name => $_, type => "IV", macro => 1};
22 } 22 }
23 23
24 ExtUtils::Constant::WriteConstants( 24 ExtUtils::Constant::WriteConstants(
25 NAME => 'Gaim::DebugLevel', 25 NAME => 'Purple::DebugLevel',
26 NAMES => \@names, 26 NAMES => \@names,
27 C_FILE => 'const-c.inc', 27 C_FILE => 'const-c.inc',
28 XS_FILE => 'const-xs.inc' 28 XS_FILE => 'const-xs.inc'
29 ); 29 );
30 } 30 }