1 |
root |
1.1 |
use ExtUtils::MakeMaker; |
2 |
|
|
|
3 |
root |
1.2 |
print <<EOF; |
4 |
|
|
|
5 |
|
|
*** microsoft compatibility forced us to only support manual configuration |
6 |
|
|
*** by editing Makefile.PL. complain to microsoft. |
7 |
|
|
|
8 |
root |
1.23 |
*** HINT: BerkeleyDB must be linked against version 4.4 or above of libdb |
9 |
|
|
|
10 |
root |
1.2 |
EOF |
11 |
|
|
|
12 |
root |
1.24 |
if ($^O =~ /win32/i or $^O =~ /mswin/) { |
13 |
|
|
warn "do manual configuration, please\n"; |
14 |
root |
1.25 |
$INC = "-I/gtk/include -I/gtk/pango-1.0 -I/gtk/glib-2.0 -I/gtk/freetype2"; |
15 |
|
|
$LIBS = "-L/gtk/lib -lSDL -lSDL_image -lSDL_mixer -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lz", |
16 |
root |
1.24 |
} else { |
17 |
|
|
$INC = join " ", qx<sdl-config --cflags>, qx<pkg-config pangoft2 --cflags>; |
18 |
|
|
$LIBS = join " ", qx<sdl-config --libs>, "-lSDL_image -lSDL_mixer", qx<pkg-config pangoft2 --libs>; |
19 |
root |
1.25 |
|
20 |
|
|
$INC =~ s/\n/ /g for $INC, $LIBS; |
21 |
root |
1.24 |
} |
22 |
root |
1.17 |
|
23 |
root |
1.1 |
WriteMakefile( |
24 |
|
|
dist => { |
25 |
root |
1.13 |
PREOP => 'pod2text CFClient.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
26 |
root |
1.1 |
COMPRESS => 'gzip -9v', |
27 |
|
|
SUFFIX => '.gz', |
28 |
|
|
}, |
29 |
root |
1.13 |
NAME => "CFClient", |
30 |
root |
1.25 |
INC => $INC, |
31 |
|
|
LIBS => [$LIBS], |
32 |
root |
1.2 |
EXE_FILES => [qw(bin/pclient)], |
33 |
root |
1.13 |
VERSION_FROM => "CFClient.pm", |
34 |
root |
1.21 |
PREREQ_PM => { |
35 |
root |
1.22 |
BerkeleyDB => 0.27, |
36 |
|
|
SDL => 2.1, |
37 |
|
|
Crossfire => 0.1, |
38 |
|
|
Time::HiRes => 0, |
39 |
|
|
Event => 1.01, |
40 |
|
|
AnyEvent => 0, |
41 |
|
|
Compress::LZF => 1.6, |
42 |
root |
1.21 |
}, |
43 |
elmex |
1.7 |
PM => { |
44 |
root |
1.13 |
'CFClient.pm' => '$(INST_LIBDIR)/CFClient.pm', |
45 |
root |
1.14 |
'CFClient/UI.pm' => '$(INST_LIBDIR)/CFClient/UI.pm', |
46 |
root |
1.24 |
(map +($_ => "\$(INST_LIBDIR)/CFClient/$_"), <resources/*.ttf>, <resources/*.png>, <resources/sounds/*.wav>), |
47 |
elmex |
1.7 |
} |
48 |
root |
1.1 |
); |