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.53 by root, Thu Jul 13 01:54:18 2006 UTC vs.
Revision 1.62 by root, Tue Aug 15 06:03:57 2006 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2
3sub manifest_resources {
4 open my $manifest, "MANIFEST" or die "Couldn't open MANIFEST: $!";
5 map { chomp; $_ } grep /^resources\//, <$manifest>
6}
2 7
3print <<EOF; 8print <<EOF;
4 9
5*** opengl 1.1 is required to run this client 10*** opengl 1.1 is required to run this client
6*** opengl 1.2 is recommended to run this client 11*** opengl 1.2 is recommended to run this client
31 $INC =~ s/\n/ /g for $INC, $LIBS; 36 $INC =~ s/\n/ /g for $INC, $LIBS;
32} 37}
33 38
34WriteMakefile( 39WriteMakefile(
35 dist => { 40 dist => {
36 PREOP => 'pod2text CFClient.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 41 PREOP => 'pod2text bin/cfplus | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
37 COMPRESS => 'gzip -9v', 42 COMPRESS => 'gzip -9v',
38 SUFFIX => '.gz', 43 SUFFIX => '.gz',
39 }, 44 },
40 NAME => "CFClient", 45 NAME => "CFPlus",
41 INC => $INC, 46 INC => $INC,
42 LIBS => [$LIBS], 47 LIBS => [$LIBS],
43 EXE_FILES => [qw(bin/cfplus)], 48 EXE_FILES => [qw(bin/cfplus)],
44 VERSION_FROM => "CFClient.pm", 49 VERSION_FROM => "CFPlus.pm",
45 PREREQ_PM => { 50 PREREQ_PM => {
46 BerkeleyDB => 0.27, 51 BerkeleyDB => 0.27,
47 Crossfire => 0.1, 52 Crossfire => 0.8,
48 Time::HiRes => 0, 53 Time::HiRes => 0,
49 Event => 1.01, 54 Event => 1.01,
50 AnyEvent => 0, 55 AnyEvent => 0,
51 Compress::LZF => 1.6, 56 Compress::LZF => 1.6,
52 Pod::POM => 0.15, 57 Pod::POM => 0.15,
53 }, 58 },
54 depend => { 59 depend => {
55 "CFClient.o" => 'glfunc.h pangoopengl.h pango-font.c pango-fontmap.c pango-render.c texcache.c', 60 "CFPlus.o" => 'glfunc.h pangoopengl.h pango-font.c pango-fontmap.c pango-render.c texcache.c',
56 }, 61 },
62 clean => { FILES => 'docwiki.pst' },
57 PM => { 63 PM => {
58 'CFClient.pm' => '$(INST_LIBDIR)/CFClient.pm', 64 'CFPlus.pm' => '$(INST_LIBDIR)/CFPlus.pm',
59 'CFClient/Protocol.pm' => '$(INST_LIBDIR)/CFClient/Protocol.pm', 65 'CFPlus/Protocol.pm' => '$(INST_LIBDIR)/CFPlus/Protocol.pm',
60 'CFClient/OpenGL.pm' => '$(INST_LIBDIR)/CFClient/OpenGL.pm', 66 'CFPlus/OpenGL.pm' => '$(INST_LIBDIR)/CFPlus/OpenGL.pm',
61 'CFClient/Texture.pm' => '$(INST_LIBDIR)/CFClient/Texture.pm', 67 'CFPlus/Texture.pm' => '$(INST_LIBDIR)/CFPlus/Texture.pm',
62 'CFClient/UI.pm' => '$(INST_LIBDIR)/CFClient/UI.pm', 68 'CFPlus/UI.pm' => '$(INST_LIBDIR)/CFPlus/UI.pm',
69 'CFPlus/Pod.pm' => '$(INST_LIBDIR)/CFPlus/Pod.pm',
63 'CFClient/MapWidget.pm' => '$(INST_LIBDIR)/CFClient/MapWidget.pm', 70 'CFPlus/MapWidget.pm' => '$(INST_LIBDIR)/CFPlus/MapWidget.pm',
64 'CFClient/BindingEditor.pm' => '$(INST_LIBDIR)/CFClient/BindingEditor.pm', 71 'CFPlus/BindingEditor.pm' => '$(INST_LIBDIR)/CFPlus/BindingEditor.pm',
72 'docwiki.pst' => '$(INST_LIBDIR)/CFPlus/resources/docwiki.pst',
65 (map +($_ => "\$(INST_LIBDIR)/CFClient/$_"), 73 (map +($_ => "\$(INST_LIBDIR)/CFPlus/$_"), manifest_resources),
66 <resources/*.png>,
67 <resources/fonts/*.ttf>,
68 <resources/sounds/*.wav>,
69 <resources/sounds/*.ogg>,
70 <resources/sounds/config>,
71 <resources/music/*.ogg>,
72 <resources/ui/*.png>,
73 <resources/ui/resist/*.png>,
74 <resources/pod/*.pod>,
75 ),
76 } 74 }
77); 75);
76
77sub MY::postamble {
78 my $self = shift;
79
80 # try to add MANIFEST to CONFIGDEP
81 s/^CONFIGDEP = /CONFIGDEP = MANIFEST /m
82 for @{ $self->{RESULT} };
83
84 my $pods = join " ", <pod/*.pod>;
85
86 <<EOF
87
88all :: docwiki.pst
89
90docwiki.pst: bin/pod2wiki $pods
91 \$(PERL) -Mlib=. bin/pod2wiki $pods
92
93EOF
94}
95

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines