| 1 |
root |
1.9 |
require 5.008; |
| 2 |
root |
1.1 |
|
| 3 |
root |
1.27 |
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 |
root |
1.29 |
** apt-get install libmagic-dev libjpeg62-dev libglib-perl libgtk2-perl |
| 10 |
root |
1.27 |
** |
| 11 |
|
|
|
| 12 |
|
|
EOF |
| 13 |
|
|
|
| 14 |
root |
1.2 |
use ExtUtils::MakeMaker; |
| 15 |
|
|
use ExtUtils::Depends; |
| 16 |
|
|
|
| 17 |
root |
1.17 |
my $pkg = new ExtUtils::Depends ("Gtk2::CV"); |
| 18 |
|
|
|
| 19 |
root |
1.27 |
$pkg->set_libs ("-ljpeg -lmagic"); |
| 20 |
root |
1.17 |
$pkg->add_deps ("Gtk2", "Glib"); |
| 21 |
root |
1.1 |
|
| 22 |
|
|
sub MY::postamble { |
| 23 |
|
|
my $self=shift; |
| 24 |
|
|
<<EOF |
| 25 |
|
|
|
| 26 |
|
|
.PHONY: doc |
| 27 |
|
|
|
| 28 |
|
|
run: all |
| 29 |
|
|
\$(PERL) -Mblib -MCarp=verbose bin/cv |
| 30 |
|
|
|
| 31 |
|
|
EOF |
| 32 |
|
|
} |
| 33 |
|
|
|
| 34 |
|
|
WriteMakefile( |
| 35 |
|
|
dist => { |
| 36 |
root |
1.5 |
PREOP => 'pod2text bin/cv | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
| 37 |
root |
1.1 |
COMPRESS => 'gzip -9v', |
| 38 |
|
|
SUFFIX => '.gz', |
| 39 |
|
|
}, |
| 40 |
|
|
PREREQ_PM => { |
| 41 |
root |
1.26 |
Glib => 1.08, |
| 42 |
|
|
Gtk2 => 1.08, |
| 43 |
|
|
Gtk2::PodViewer => 0.03, |
| 44 |
|
|
Gtk2::GladeXML => 0.93, |
| 45 |
root |
1.31 |
IO::AIO => 2.1, |
| 46 |
root |
1.1 |
}, |
| 47 |
|
|
DIR => [], |
| 48 |
|
|
NAME => 'Gtk2::CV', |
| 49 |
root |
1.4 |
VERSION_FROM => 'lib/Gtk2/CV.pm', |
| 50 |
root |
1.1 |
EXE_FILES => [qw(bin/cv)], |
| 51 |
root |
1.2 |
$pkg->get_makefile_vars, |
| 52 |
root |
1.1 |
PM => { |
| 53 |
root |
1.19 |
'lib/Gtk2/CV/ImageWindow.pm' => '$(INST_LIBDIR)/CV/ImageWindow.pm', |
| 54 |
|
|
'lib/Gtk2/CV/Schnauzer.pm' => '$(INST_LIBDIR)/CV/Schnauzer.pm', |
| 55 |
|
|
'lib/Gtk2/CV/PostScript.pm' => '$(INST_LIBDIR)/CV/PostScript.pm', |
| 56 |
|
|
'lib/Gtk2/CV/PrintDialog.pm' => '$(INST_LIBDIR)/CV/PrintDialog.pm', |
| 57 |
root |
1.21 |
'lib/Gtk2/CV/Jobber.pm' => '$(INST_LIBDIR)/CV/Jobber.pm', |
| 58 |
root |
1.19 |
'lib/Gtk2/CV/Plugin.pm' => '$(INST_LIBDIR)/CV/Plugin.pm', |
| 59 |
|
|
'lib/Gtk2/CV/Plugin/NameCluster.pm' => '$(INST_LIBDIR)/CV/Plugin/NameCluster.pm', |
| 60 |
|
|
'lib/Gtk2/CV/Plugin/RCluster.pm' => '$(INST_LIBDIR)/CV/Plugin/RCluster.pm', |
| 61 |
|
|
'lib/Gtk2/CV/Progress.pm' => '$(INST_LIBDIR)/CV/Progress.pm', |
| 62 |
|
|
'lib/Gtk2/CV.pm' => '$(INST_LIBDIR)/CV.pm', |
| 63 |
root |
1.5 |
|
| 64 |
root |
1.19 |
'gtkrc' => '$(INST_LIBDIR)/CV/gtkrc', |
| 65 |
|
|
'cv.glade' => '$(INST_LIBDIR)/CV/cv.glade', |
| 66 |
root |
1.1 |
|
| 67 |
root |
1.19 |
'images/cv.png' => '$(INST_LIBDIR)/CV/images/cv.png', |
| 68 |
|
|
'images/error.png' => '$(INST_LIBDIR)/CV/images/error.png', |
| 69 |
root |
1.24 |
'images/dir-unvisited.png' => '$(INST_LIBDIR)/CV/images/dir-unvisited.png', |
| 70 |
|
|
'images/dir-visited.png' => '$(INST_LIBDIR)/CV/images/dir-visited.png', |
| 71 |
|
|
'images/dir-xvpics.png' => '$(INST_LIBDIR)/CV/images/dir-xvpics.png', |
| 72 |
root |
1.25 |
'images/dir-empty.png' => '$(INST_LIBDIR)/CV/images/dir-empty.png', |
| 73 |
|
|
'images/dir-symlink.png' => '$(INST_LIBDIR)/CV/images/dir-symlink.png', |
| 74 |
root |
1.19 |
'images/file.png' => '$(INST_LIBDIR)/CV/images/file.png', |
| 75 |
|
|
'images/file-avi.png' => '$(INST_LIBDIR)/CV/images/file-avi.png', |
| 76 |
root |
1.32 |
'images/file-ogm.png' => '$(INST_LIBDIR)/CV/images/file-ogm.png', |
| 77 |
root |
1.21 |
'images/file-tif.png' => '$(INST_LIBDIR)/CV/images/file-tif.png', |
| 78 |
root |
1.19 |
'images/file-gif.png' => '$(INST_LIBDIR)/CV/images/file-gif.png', |
| 79 |
|
|
'images/file-jpeg.png' => '$(INST_LIBDIR)/CV/images/file-jpeg.png', |
| 80 |
|
|
'images/file-mpeg.png' => '$(INST_LIBDIR)/CV/images/file-mpeg.png', |
| 81 |
|
|
'images/file-png.png' => '$(INST_LIBDIR)/CV/images/file-png.png', |
| 82 |
|
|
'images/file-txt.png' => '$(INST_LIBDIR)/CV/images/file-txt.png', |
| 83 |
|
|
'images/file-wmv.png' => '$(INST_LIBDIR)/CV/images/file-wmv.png', |
| 84 |
|
|
'images/file-mov.png' => '$(INST_LIBDIR)/CV/images/file-mov.png', |
| 85 |
|
|
'images/file-asf.png' => '$(INST_LIBDIR)/CV/images/file-asf.png', |
| 86 |
|
|
'images/file-rar.png' => '$(INST_LIBDIR)/CV/images/file-rar.png', |
| 87 |
|
|
'images/file-zip.png' => '$(INST_LIBDIR)/CV/images/file-zip.png', |
| 88 |
|
|
'images/file-ace.png' => '$(INST_LIBDIR)/CV/images/file-ace.png', |
| 89 |
|
|
'images/file-mp2.png' => '$(INST_LIBDIR)/CV/images/file-mp2.png', |
| 90 |
|
|
'images/file-mp3.png' => '$(INST_LIBDIR)/CV/images/file-mp3.png', |
| 91 |
|
|
'images/file-midi.png' => '$(INST_LIBDIR)/CV/images/file-midi.png', |
| 92 |
|
|
'images/file-rm.png' => '$(INST_LIBDIR)/CV/images/file-rm.png', |
| 93 |
|
|
'images/file-par.png' => '$(INST_LIBDIR)/CV/images/file-par.png', |
| 94 |
root |
1.1 |
}, |
| 95 |
|
|
); |
| 96 |
|
|
|
| 97 |
|
|
|
| 98 |
|
|
|