… | |
… | |
13 | |
13 | |
14 | *** other dependencies: |
14 | *** other dependencies: |
15 | *** pango-1.12.3, glib-2.10 |
15 | *** pango-1.12.3, glib-2.10 |
16 | *** libsdl, libSDL_mixer, libSDL_image |
16 | *** libsdl, libSDL_mixer, libSDL_image |
17 | |
17 | |
18 | *** Pod::POM, Compress::LZF, BerkeleyDB, Crossfire, Event, AnyEvent perl modules |
18 | *** Pod::POM, Compress::LZF, BDB, Deliantra, EV, AnyEvent perl modules |
19 | |
19 | |
20 | *** HINT: BerkeleyDB must be linked against version 4.3 or higher of libdb |
20 | *** HINT: Debian/Ubuntu users might have some luck with: |
|
|
21 | *** apt-get install perl libpango1.0-dev libglib2.0-dev libsdl1.2-dev |
|
|
22 | *** apt-get install libsdl-mixer1.2-dev libsdl-image1.2-dev |
|
|
23 | *** apt-get install libwww-perl libdb4.4-dev |
|
|
24 | *** apt-get install anyevent-perl |
21 | |
25 | |
22 | EOF |
26 | EOF |
23 | |
27 | |
24 | if ($^O =~ /win32/i or $^O =~ /mswin/) { |
28 | if ($^O =~ /win32/i or $^O =~ /mswin/) { |
25 | print <<EOF; |
29 | print <<EOF; |
26 | *** microsoft compatibility forced us to only support manual configuration |
30 | *** microsoft compatibility forced us to only support manual configuration |
27 | *** by editing Makefile.PL. complain to microsoft. |
31 | *** by editing Makefile.PL. complain to microsoft. |
28 | |
32 | |
29 | EOF |
33 | EOF |
30 | $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"; |
34 | $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"; |
31 | $LIBS = "-L/gtk/lib -lSDL -lSDL_image -lSDL_mixer -lpango-1.0 -lpangoft2-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lfreetype -lfontconfig -lopengl32", |
35 | $LIBS = "-L/gtk/lib -lSDL -lSDL_image -lSDL_mixer -lpango-1.0 -lpangoft2-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lfreetype -lfontconfig -lopengl32 -lwininet", |
32 | } else { |
36 | } else { |
33 | $INC = join " ", qx<sdl-config --cflags>, qx<pkg-config pangoft2 --cflags>; |
37 | $INC = join " ", qx<sdl-config --cflags>, qx<pkg-config pangoft2 --cflags>; |
34 | $LIBS = join " ", qx<sdl-config --libs>, "-lSDL_image -lSDL_mixer", qx<pkg-config pangoft2 --libs>, "-lGL"; |
38 | $LIBS = join " ", qx<sdl-config --libs>, "-lSDL_image -lSDL_mixer", qx<pkg-config pangoft2 --libs>, "-lGL"; |
35 | |
39 | |
36 | $INC =~ s/\n/ /g for $INC, $LIBS; |
40 | $INC =~ s/\n/ /g for $INC, $LIBS; |
37 | } |
41 | } |
38 | |
42 | |
39 | WriteMakefile( |
43 | WriteMakefile( |
40 | dist => { |
44 | dist => { |
41 | PREOP => 'pod2text bin/cfplus | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
45 | PREOP => 'pod2text bin/deliantra | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
42 | COMPRESS => 'gzip -9v', |
46 | COMPRESS => 'gzip -9v', |
43 | SUFFIX => '.gz', |
47 | SUFFIX => '.gz', |
44 | }, |
48 | }, |
45 | NAME => "CFPlus", |
49 | NAME => "Deliantra::Client", |
46 | INC => $INC, |
50 | INC => $INC, |
47 | LIBS => [$LIBS], |
51 | LIBS => [$LIBS], |
48 | EXE_FILES => [qw(bin/cfplus)], |
52 | EXE_FILES => [qw(bin/deliantra)], |
49 | VERSION_FROM => "CFPlus.pm", |
53 | VERSION_FROM => "DC.pm", |
50 | PREREQ_PM => { |
54 | PREREQ_PM => { |
51 | BerkeleyDB => 0.27, |
55 | BDB => 1.44, |
52 | Crossfire => 0.9, |
56 | Deliantra => 1.13, |
53 | Time::HiRes => 0, |
57 | Time::HiRes => 0, |
54 | Event => 1.01, |
58 | EV => 1.72, |
55 | AnyEvent => 0, |
59 | AnyEvent => 2.6, |
56 | Compress::LZF => 1.6, |
60 | Compress::LZF => 1.6, |
57 | Pod::POM => 0.15, |
61 | Pod::POM => 0.15, |
|
|
62 | LWP => 0, |
|
|
63 | JSON::XS => 2.01, |
58 | }, |
64 | }, |
59 | depend => { |
65 | depend => { |
60 | "CFPlus.o" => 'glfunc.h pangoopengl.h pango-font.c pango-fontmap.c pango-render.c texcache.c', |
66 | "Client.o" => 'glfunc.h pangoopengl.h pango-font.c pango-fontmap.c pango-render.c texcache.c rendercache.c', |
61 | }, |
67 | }, |
62 | clean => { FILES => 'docwiki.pst' }, |
68 | clean => { FILES => 'docwiki.pst' }, |
63 | PM => { |
69 | PM => { |
64 | 'CFPlus.pm' => '$(INST_LIBDIR)/CFPlus.pm', |
70 | 'DC.pm' => '$(INST_LIBDIR)/Client/private/DC.pm', |
65 | 'CFPlus/Protocol.pm' => '$(INST_LIBDIR)/CFPlus/Protocol.pm', |
71 | 'DC/Protocol.pm' => '$(INST_LIBDIR)/Client/private/DC/Protocol.pm', |
66 | 'CFPlus/OpenGL.pm' => '$(INST_LIBDIR)/CFPlus/OpenGL.pm', |
72 | 'DC/OpenGL.pm' => '$(INST_LIBDIR)/Client/private/DC/OpenGL.pm', |
67 | 'CFPlus/Texture.pm' => '$(INST_LIBDIR)/CFPlus/Texture.pm', |
73 | 'DC/Texture.pm' => '$(INST_LIBDIR)/Client/private/DC/Texture.pm', |
|
|
74 | 'DC/DB.pm' => '$(INST_LIBDIR)/Client/private/DC/DB.pm', |
68 | 'CFPlus/UI.pm' => '$(INST_LIBDIR)/CFPlus/UI.pm', |
75 | 'DC/UI.pm' => '$(INST_LIBDIR)/Client/private/DC/UI.pm', |
|
|
76 | 'DC/MessageDistributor.pm' => '$(INST_LIBDIR)/Client/private/DC/MessageDistributor.pm', |
|
|
77 | 'DC/UI/Canvas.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/Canvas.pm', |
|
|
78 | 'DC/UI/Dockable.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/Dockable.pm', |
|
|
79 | 'DC/UI/Dockbar.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/Dockbar.pm', |
|
|
80 | 'DC/UI/Inventory.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/Inventory.pm', |
|
|
81 | 'DC/UI/SpellList.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/SpellList.pm', |
|
|
82 | 'DC/UI/Canvas.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/Canvas.pm', |
|
|
83 | 'DC/UI/ChatView.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/ChatView.pm', |
|
|
84 | 'DC/UI/MessageWindow.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/MessageWindow.pm', |
|
|
85 | 'DC/Item.pm' => '$(INST_LIBDIR)/Client/private/DC/Item.pm', |
69 | 'CFPlus/Pod.pm' => '$(INST_LIBDIR)/CFPlus/Pod.pm', |
86 | 'DC/Pod.pm' => '$(INST_LIBDIR)/Client/private/DC/Pod.pm', |
70 | 'CFPlus/MapWidget.pm' => '$(INST_LIBDIR)/CFPlus/MapWidget.pm', |
87 | 'DC/MapWidget.pm' => '$(INST_LIBDIR)/Client/private/DC/MapWidget.pm', |
71 | 'CFPlus/BindingEditor.pm' => '$(INST_LIBDIR)/CFPlus/BindingEditor.pm', |
88 | 'DC/Macro.pm' => '$(INST_LIBDIR)/Client/private/DC/Macro.pm', |
72 | 'docwiki.pst' => '$(INST_LIBDIR)/CFPlus/resources/docwiki.pst', |
89 | 'docwiki.pst' => '$(INST_LIBDIR)/Client/private/resources/docwiki.pst', |
73 | (map +($_ => "\$(INST_LIBDIR)/CFPlus/$_"), manifest_resources), |
90 | (map +($_ => "\$(INST_LIBDIR)/Client/private/$_"), manifest_resources), |
74 | } |
91 | } |
75 | ); |
92 | ); |
76 | |
93 | |
77 | sub MY::postamble { |
94 | sub MY::postamble { |
78 | my $self = shift; |
95 | my $self = shift; |