ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/Makefile.PL
(Generate patch)

Comparing deliantra/Deliantra-Client/Makefile.PL (file contents):
Revision 1.2 by root, Thu Apr 6 20:00:23 2006 UTC vs.
Revision 1.24 by root, Mon Apr 17 21:42:50 2006 UTC

3print <<EOF; 3print <<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*** HINT: BerkeleyDB must be linked against version 4.4 or above of libdb
9
8EOF 10EOF
11
12if ($^O =~ /win32/i or $^O =~ /mswin/) {
13 warn "do manual configuration, please\n";
14 $INC = "-I/usr/include/SDL -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2";
15 $LIBS = "-lSDL -lSDL_image -lSDL_mixer -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lz",
16} 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}
9 20
10WriteMakefile( 21WriteMakefile(
11 dist => { 22 dist => {
12 PREOP => 'pod2text Client.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 23 PREOP => 'pod2text CFClient.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
13 COMPRESS => 'gzip -9v', 24 COMPRESS => 'gzip -9v',
14 SUFFIX => '.gz', 25 SUFFIX => '.gz',
15 }, 26 },
16 NAME => "Crossfire::Client", 27 NAME => "CFClient",
17 INC => '-I/usr/include/SDL', 28 INC => '-I/usr/include/SDL -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2',
18 LIBS => ["-lSDL -lSDL_image"], 29 LIBS => ["-lSDL -lSDL_image -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lz"],
19 EXE_FILES => [qw(bin/pclient)], 30 EXE_FILES => [qw(bin/pclient)],
20 VERSION_FROM => "Client.pm", 31 VERSION_FROM => "CFClient.pm",
32 PREREQ_PM => {
33 BerkeleyDB => 0.27,
34 SDL => 2.1,
35 Crossfire => 0.1,
36 Time::HiRes => 0,
37 Event => 1.01,
38 AnyEvent => 0,
39 Compress::LZF => 1.6,
40 },
41 PM => {
42 'CFClient.pm' => '$(INST_LIBDIR)/CFClient.pm',
43 'CFClient/UI.pm' => '$(INST_LIBDIR)/CFClient/UI.pm',
44 (map +($_ => "\$(INST_LIBDIR)/CFClient/$_"), <resources/*.ttf>, <resources/*.png>, <resources/sounds/*.wav>),
45 }
21); 46);
22

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines