1 | require 5.008; |
1 | require 5.008; |
|
|
2 | |
|
|
3 | print <<EOF; |
|
|
4 | |
|
|
5 | ** |
|
|
6 | ** If you get any errors, make sure you have libmagic (from "file"), |
|
|
7 | ** libjpeg, Gtk2 and Glib. On debian, this should get you there: |
|
|
8 | ** |
|
|
9 | ** apt-get install libextutils-depends-perl |
|
|
10 | ** apt-get install libgtk2-ex-podviewer-perl libgtk2-gladexml-perl |
|
|
11 | ** apt-get install libmagic-dev libjpeg62-dev libglib-perl libgtk2-perl |
|
|
12 | ** apt-get install libgtk2.0-dev |
|
|
13 | ** |
|
|
14 | |
|
|
15 | EOF |
2 | |
16 | |
3 | use ExtUtils::MakeMaker; |
17 | use ExtUtils::MakeMaker; |
4 | use ExtUtils::Depends; |
18 | use ExtUtils::Depends; |
5 | |
19 | |
6 | my $pkg = new ExtUtils::Depends ("Gtk2::CV"); |
20 | my $pkg = new ExtUtils::Depends ("Gtk2::CV"); |
7 | |
21 | |
8 | $pkg->set_libs ("-ljpeg"); |
22 | $pkg->set_libs ("-ljpeg -lmagic"); |
9 | $pkg->add_deps ("Gtk2", "Glib"); |
23 | $pkg->add_deps ("Gtk2", "Glib"); |
10 | |
24 | |
11 | sub MY::postamble { |
25 | sub MY::postamble { |
12 | my $self=shift; |
26 | my $self=shift; |
13 | <<EOF |
27 | <<EOF |
… | |
… | |
27 | SUFFIX => '.gz', |
41 | SUFFIX => '.gz', |
28 | }, |
42 | }, |
29 | PREREQ_PM => { |
43 | PREREQ_PM => { |
30 | Glib => 1.08, |
44 | Glib => 1.08, |
31 | Gtk2 => 1.08, |
45 | Gtk2 => 1.08, |
32 | Gtk2::PodViewer => 0.03, |
46 | Gtk2::Ex::PodViewer => 0.17, |
33 | Gtk2::GladeXML => 0.93, |
47 | Gtk2::GladeXML => 0.93, |
|
|
48 | # GStreamer => 0.11, |
34 | IO::AIO => 1.4, |
49 | IO::AIO => 2.20, |
|
|
50 | # JSON::XS => 2.2, |
35 | }, |
51 | }, |
36 | DIR => [], |
52 | DIR => [], |
37 | NAME => 'Gtk2::CV', |
53 | NAME => 'Gtk2::CV', |
38 | VERSION_FROM => 'lib/Gtk2/CV.pm', |
54 | VERSION_FROM => 'lib/Gtk2/CV.pm', |
39 | EXE_FILES => [qw(bin/cv)], |
55 | EXE_FILES => [qw(bin/cv)], |
… | |
… | |
60 | 'images/dir-xvpics.png' => '$(INST_LIBDIR)/CV/images/dir-xvpics.png', |
76 | 'images/dir-xvpics.png' => '$(INST_LIBDIR)/CV/images/dir-xvpics.png', |
61 | 'images/dir-empty.png' => '$(INST_LIBDIR)/CV/images/dir-empty.png', |
77 | 'images/dir-empty.png' => '$(INST_LIBDIR)/CV/images/dir-empty.png', |
62 | 'images/dir-symlink.png' => '$(INST_LIBDIR)/CV/images/dir-symlink.png', |
78 | 'images/dir-symlink.png' => '$(INST_LIBDIR)/CV/images/dir-symlink.png', |
63 | 'images/file.png' => '$(INST_LIBDIR)/CV/images/file.png', |
79 | 'images/file.png' => '$(INST_LIBDIR)/CV/images/file.png', |
64 | 'images/file-avi.png' => '$(INST_LIBDIR)/CV/images/file-avi.png', |
80 | 'images/file-avi.png' => '$(INST_LIBDIR)/CV/images/file-avi.png', |
|
|
81 | 'images/file-ogm.png' => '$(INST_LIBDIR)/CV/images/file-ogm.png', |
65 | 'images/file-tif.png' => '$(INST_LIBDIR)/CV/images/file-tif.png', |
82 | 'images/file-tif.png' => '$(INST_LIBDIR)/CV/images/file-tif.png', |
66 | 'images/file-gif.png' => '$(INST_LIBDIR)/CV/images/file-gif.png', |
83 | 'images/file-gif.png' => '$(INST_LIBDIR)/CV/images/file-gif.png', |
67 | 'images/file-jpeg.png' => '$(INST_LIBDIR)/CV/images/file-jpeg.png', |
84 | 'images/file-jpeg.png' => '$(INST_LIBDIR)/CV/images/file-jpeg.png', |
68 | 'images/file-mpeg.png' => '$(INST_LIBDIR)/CV/images/file-mpeg.png', |
85 | 'images/file-mpeg.png' => '$(INST_LIBDIR)/CV/images/file-mpeg.png', |
69 | 'images/file-png.png' => '$(INST_LIBDIR)/CV/images/file-png.png', |
86 | 'images/file-png.png' => '$(INST_LIBDIR)/CV/images/file-png.png', |
… | |
… | |
72 | 'images/file-mov.png' => '$(INST_LIBDIR)/CV/images/file-mov.png', |
89 | 'images/file-mov.png' => '$(INST_LIBDIR)/CV/images/file-mov.png', |
73 | 'images/file-asf.png' => '$(INST_LIBDIR)/CV/images/file-asf.png', |
90 | 'images/file-asf.png' => '$(INST_LIBDIR)/CV/images/file-asf.png', |
74 | 'images/file-rar.png' => '$(INST_LIBDIR)/CV/images/file-rar.png', |
91 | 'images/file-rar.png' => '$(INST_LIBDIR)/CV/images/file-rar.png', |
75 | 'images/file-zip.png' => '$(INST_LIBDIR)/CV/images/file-zip.png', |
92 | 'images/file-zip.png' => '$(INST_LIBDIR)/CV/images/file-zip.png', |
76 | 'images/file-ace.png' => '$(INST_LIBDIR)/CV/images/file-ace.png', |
93 | 'images/file-ace.png' => '$(INST_LIBDIR)/CV/images/file-ace.png', |
|
|
94 | 'images/file-audio.png' => '$(INST_LIBDIR)/CV/images/file-audio.png', |
77 | 'images/file-mp2.png' => '$(INST_LIBDIR)/CV/images/file-mp2.png', |
95 | 'images/file-mp2.png' => '$(INST_LIBDIR)/CV/images/file-mp2.png', |
78 | 'images/file-mp3.png' => '$(INST_LIBDIR)/CV/images/file-mp3.png', |
96 | 'images/file-mp3.png' => '$(INST_LIBDIR)/CV/images/file-mp3.png', |
79 | 'images/file-midi.png' => '$(INST_LIBDIR)/CV/images/file-midi.png', |
97 | 'images/file-midi.png' => '$(INST_LIBDIR)/CV/images/file-midi.png', |
80 | 'images/file-rm.png' => '$(INST_LIBDIR)/CV/images/file-rm.png', |
98 | 'images/file-rm.png' => '$(INST_LIBDIR)/CV/images/file-rm.png', |
81 | 'images/file-par.png' => '$(INST_LIBDIR)/CV/images/file-par.png', |
99 | 'images/file-par.png' => '$(INST_LIBDIR)/CV/images/file-par.png', |