… | |
… | |
3 | print <<EOF; |
3 | print <<EOF; |
4 | |
4 | |
5 | *** microsoft compatibility forced us to only support manual configuration |
5 | *** microsoft compatibility forced us to only support manual configuration |
6 | *** by editing Makefile.PL. complain to microsoft. |
6 | *** by editing Makefile.PL. complain to microsoft. |
7 | |
7 | |
|
|
8 | *** opengl 1.2 is required to run this client |
|
|
9 | |
8 | *** HINT: BerkeleyDB must be linked against version 4.4 or above of libdb |
10 | *** HINT: BerkeleyDB must be linked against version 4.3 or higher of libdb |
9 | |
11 | |
10 | EOF |
12 | EOF |
11 | |
13 | |
12 | if ($^O =~ /win32/i or $^O =~ /mswin/) { |
14 | if ($^O =~ /win32/i or $^O =~ /mswin/) { |
13 | warn "do manual configuration, please\n"; |
15 | warn "do manual configuration, please\n"; |
14 | $INC = "-I/gtk/include -I/gtk/pango-1.0 -I/gtk/glib-2.0 -I/gtk/freetype2"; |
16 | $INC = "-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 | $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", |
17 | $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 -lfontconfig -lz -lopengl32", |
16 | } else { |
18 | } else { |
17 | $INC = join " ", qx<sdl-config --cflags>, qx<pkg-config pangoft2 --cflags>; |
19 | $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>; |
20 | $LIBS = join " ", qx<sdl-config --libs>, "-lSDL_image -lSDL_mixer", qx<pkg-config pangoft2 --libs>; |
19 | |
21 | |
20 | $INC =~ s/\n/ /g for $INC, $LIBS; |
22 | $INC =~ s/\n/ /g for $INC, $LIBS; |
… | |
… | |
41 | Compress::LZF => 1.6, |
43 | Compress::LZF => 1.6, |
42 | }, |
44 | }, |
43 | PM => { |
45 | PM => { |
44 | 'CFClient.pm' => '$(INST_LIBDIR)/CFClient.pm', |
46 | 'CFClient.pm' => '$(INST_LIBDIR)/CFClient.pm', |
45 | 'CFClient/UI.pm' => '$(INST_LIBDIR)/CFClient/UI.pm', |
47 | 'CFClient/UI.pm' => '$(INST_LIBDIR)/CFClient/UI.pm', |
46 | (map +($_ => "\$(INST_LIBDIR)/CFClient/$_"), <resources/*.ttf>, <resources/*.png>, <resources/sounds/*.wav>), |
48 | (map +($_ => "\$(INST_LIBDIR)/CFClient/$_"), |
|
|
49 | <resources/*.ttf>, |
|
|
50 | <resources/*.png>, |
|
|
51 | <resources/sounds/*.wav>, |
|
|
52 | <resources/sounds/config>, |
|
|
53 | <resources/music/*.ogg>, |
|
|
54 | ), |
47 | } |
55 | } |
48 | ); |
56 | ); |