1 | use ExtUtils::MakeMaker; |
1 | use ExtUtils::MakeMaker; |
|
|
2 | |
|
|
3 | sub manifest_resources { |
|
|
4 | open my $manifest, "MANIFEST" or die "Couldn't open MANIFEST: $!"; |
|
|
5 | map { chomp; $_ } grep /^resources\//, <$manifest> |
|
|
6 | } |
2 | |
7 | |
3 | print <<EOF; |
8 | print <<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 |
… | |
… | |
62 | 'CFPlus/Texture.pm' => '$(INST_LIBDIR)/CFPlus/Texture.pm', |
67 | 'CFPlus/Texture.pm' => '$(INST_LIBDIR)/CFPlus/Texture.pm', |
63 | 'CFPlus/UI.pm' => '$(INST_LIBDIR)/CFPlus/UI.pm', |
68 | 'CFPlus/UI.pm' => '$(INST_LIBDIR)/CFPlus/UI.pm', |
64 | 'CFPlus/Pod.pm' => '$(INST_LIBDIR)/CFPlus/Pod.pm', |
69 | 'CFPlus/Pod.pm' => '$(INST_LIBDIR)/CFPlus/Pod.pm', |
65 | 'CFPlus/MapWidget.pm' => '$(INST_LIBDIR)/CFPlus/MapWidget.pm', |
70 | 'CFPlus/MapWidget.pm' => '$(INST_LIBDIR)/CFPlus/MapWidget.pm', |
66 | 'CFPlus/BindingEditor.pm' => '$(INST_LIBDIR)/CFPlus/BindingEditor.pm', |
71 | 'CFPlus/BindingEditor.pm' => '$(INST_LIBDIR)/CFPlus/BindingEditor.pm', |
67 | (map +($_ => "\$(INST_LIBDIR)/CFPlus/$_"), |
72 | (map +($_ => "\$(INST_LIBDIR)/CFPlus/$_"), manifest_resources), |
68 | <resources/*.png>, |
|
|
69 | <resources/fonts/*.ttf>, |
|
|
70 | <resources/sounds/*.wav>, |
|
|
71 | <resources/sounds/*.ogg>, |
|
|
72 | <resources/sounds/config>, |
|
|
73 | <resources/music/*.ogg>, |
|
|
74 | <resources/ui/*.png>, |
|
|
75 | <resources/ui/resist/*.png>, |
|
|
76 | <resources/pod/*.pod>, |
|
|
77 | <resources/pod/*.png>, |
|
|
78 | ), |
|
|
79 | } |
73 | } |
80 | ); |
74 | ); |