1 | use ExtUtils::MakeMaker; |
1 | use ExtUtils::MakeMaker; |
2 | |
2 | |
3 | use Config; |
3 | use Config; |
|
|
4 | |
|
|
5 | if ($^O =~ /win32/i or $^O =~ /mswin/) { |
|
|
6 | |
|
|
7 | # configuration on windows is hardcoded - as always |
|
|
8 | |
|
|
9 | warn "your platform is not standards-compliant, you have to port this module first\n"; |
|
|
10 | warn "using some hardcoded config that will not work on your system\n"; |
|
|
11 | |
|
|
12 | $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"; |
|
|
13 | $LIBS = ["-L/gtk/lib -ldb44"]; # -lpthreadVC2"]; |
|
|
14 | } else { |
|
|
15 | $INC = ""; |
|
|
16 | $LIBS = ['-lpthread -ldb'], |
|
|
17 | } |
4 | |
18 | |
5 | if ($^O =~ /linux/ && $Config{usemymalloc} eq "y") { |
19 | if ($^O =~ /linux/ && $Config{usemymalloc} eq "y") { |
6 | print <<EOF; |
20 | print <<EOF; |
7 | |
21 | |
8 | *** |
22 | *** |
… | |
… | |
28 | COMPRESS => 'gzip -9v', |
42 | COMPRESS => 'gzip -9v', |
29 | SUFFIX => '.gz', |
43 | SUFFIX => '.gz', |
30 | }, |
44 | }, |
31 | NAME => "BDB", |
45 | NAME => "BDB", |
32 | VERSION_FROM => "BDB.pm", |
46 | VERSION_FROM => "BDB.pm", |
33 | LIBS => ['-lpthread -ldb'], |
47 | INC => $INC, |
|
|
48 | LIBS => $LIBS, |
34 | PM => { |
49 | PM => { |
35 | 'BDB.pm' => '$(INST_LIBDIR)/BDB.pm', |
50 | 'BDB.pm' => '$(INST_LIBDIR)/BDB.pm', |
36 | }, |
51 | }, |
37 | }); |
52 | }); |
38 | |
53 | |