1 |
root |
1.1 |
use ExtUtils::MakeMaker; |
2 |
|
|
|
3 |
root |
1.11 |
use 5.008008; |
4 |
root |
1.1 |
use Config; |
5 |
|
|
|
6 |
root |
1.4 |
if ($^O =~ /win32/i or $^O =~ /mswin/) { |
7 |
|
|
|
8 |
|
|
# configuration on windows is hardcoded - as always |
9 |
|
|
|
10 |
|
|
warn "your platform is not standards-compliant, you have to port this module first\n"; |
11 |
|
|
warn "using some hardcoded config that will not work on your system\n"; |
12 |
root |
1.9 |
warn "hint: edit the Makefile.PL\n\n"; |
13 |
root |
1.4 |
|
14 |
|
|
$INC = "-I/Perl/lib/CORE -I/sdk/include -I/vc98/include -I/gtk/include -I/gtk/include/pango-1.0 -I/gtk/include/glib-2.0 -I/gtk/lib/glib-2.0/include/ -I/gtk/include/freetype2"; |
15 |
root |
1.8 |
$LIBS = ["-L/gtk/lib -ldb45 -lpthreadVC2"]; |
16 |
root |
1.4 |
} else { |
17 |
|
|
$INC = ""; |
18 |
|
|
$LIBS = ['-lpthread -ldb'], |
19 |
|
|
} |
20 |
|
|
|
21 |
root |
1.1 |
if ($^O =~ /linux/ && $Config{usemymalloc} eq "y") { |
22 |
|
|
print <<EOF; |
23 |
|
|
|
24 |
|
|
*** |
25 |
|
|
*** WARNING: |
26 |
|
|
*** |
27 |
|
|
*** Your perl uses it's own memory allocator (-Dusemymalloc=y), |
28 |
|
|
*** which is known not to be threadsafe on GNU/Linux and probably |
29 |
|
|
*** other platforms (even when not used concurrently, it trashes |
30 |
|
|
*** the data structures of the system malloc running concurrently), |
31 |
|
|
*** for perls up to 5.8.8 and possibly later versions. |
32 |
|
|
*** |
33 |
|
|
*** If you are unsure wether your perl has been fixed, your system |
34 |
|
|
*** is safe for other reasons, or you experience spurious segfaults, |
35 |
|
|
*** please compile your perl with -Dusemymalloc=n. |
36 |
|
|
*** |
37 |
|
|
|
38 |
|
|
EOF |
39 |
|
|
} |
40 |
|
|
|
41 |
|
|
my $mm = MM->new({ |
42 |
|
|
dist => { |
43 |
root |
1.6 |
PREOP => 'pod2text BDB.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
44 |
root |
1.1 |
COMPRESS => 'gzip -9v', |
45 |
|
|
SUFFIX => '.gz', |
46 |
|
|
}, |
47 |
root |
1.2 |
NAME => "BDB", |
48 |
|
|
VERSION_FROM => "BDB.pm", |
49 |
root |
1.4 |
INC => $INC, |
50 |
|
|
LIBS => $LIBS, |
51 |
root |
1.10 |
PREREQ_PM => { |
52 |
|
|
common::sense => 0, |
53 |
|
|
}, |
54 |
root |
1.1 |
PM => { |
55 |
root |
1.12 |
'BDB.pm' => '$(INST_LIB)/BDB.pm', |
56 |
root |
1.1 |
}, |
57 |
|
|
}); |
58 |
|
|
|
59 |
|
|
$mm->flush; |
60 |
|
|
|