1 use ExtUtils::MakeMaker;
2 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
3 # the contents of the Makefile that is written.
5 'NAME' => 'I18N::Langinfo',
6 'VERSION_FROM' => 'Langinfo.pm', # finds $VERSION
7 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1
8 ($] >= 5.005 ? ## Add these new keywords supported since 5.005
9 (ABSTRACT_FROM => 'Langinfo.pm', # retrieve abstract from module
10 AUTHOR => 'Jarkko Hietaniemi <jhi@hut.fi>') : ()),
11 'LIBS' => [''], # e.g., '-lm'
12 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
13 # Insert -I. if you add *.h files later:
14 'INC' => '', # e.g., '-I/usr/include/other'
15 # Without this the constants xs files are spotted, and cause rules to be
16 # added to delete the similarly named C files, which isn't what we want.
17 XS => {'Langinfo.xs' => 'Langinfo.c'},
18 realclean => {FILES=> 'constants.c constants.xs'},
19 # Un-comment this if you add C files to link with later:
20 # 'OBJECT' => '$(O_FILES)', # link all the C files too
22 if (eval {require ExtUtils::Constant; 1}) {
23 my @names = (qw(ABDAY_1 ABDAY_2 ABDAY_3 ABDAY_4 ABDAY_5 ABDAY_6 ABDAY_7
24 ABMON_1 ABMON_10 ABMON_11 ABMON_12 ABMON_2 ABMON_3 ABMON_4
25 ABMON_5 ABMON_6 ABMON_7 ABMON_8 ABMON_9 ALT_DIGITS AM_STR
26 CODESET CRNCYSTR DAY_1 DAY_2 DAY_3 DAY_4 DAY_5 DAY_6 DAY_7
27 D_FMT D_T_FMT ERA ERA_D_FMT ERA_D_T_FMT ERA_T_FMT MON_1
28 MON_10 MON_11 MON_12 MON_2 MON_3 MON_4 MON_5 MON_6 MON_7
29 MON_8 MON_9 NOEXPR NOSTR PM_STR RADIXCHAR THOUSEP T_FMT
30 T_FMT_AMPM YESEXPR YESSTR));
31 ExtUtils::Constant::WriteConstants(
32 NAME => 'I18N::Langinfo',
37 copy ('fallback.c', 'constants.c')
38 or die "Can't copy fallback.c to constants.c: $!";
39 copy ('fallback.xs', 'constants.xs')
40 or die "Can't copy fallback.xs to constants.xs: $!";