File: Makefile.PL

package info (click to toggle)
libgtk2-ex-printdialog-perl 0.03-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 80 kB
  • ctags: 41
  • sloc: perl: 411; makefile: 45
file content (36 lines) | stat: -rw-r--r-- 798 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/perl
# $Id: Makefile.PL,v 1.5 2005/10/05 14:23:53 jodrell Exp $

use ExtUtils::MakeMaker;

WriteMakefile(
    'NAME'		=> 'Gtk2::Ex::PrintDialog',
    'VERSION_FROM'	=> 'lib/Gtk2/Ex/PrintDialog.pm',
    'PREREQ_FATAL'	=> 1,
    'PREREQ_PM'		=> {
        File::Basename	=> 0,
        File::Spec	=> 0,
        File::Temp	=> 0,
        Gtk2		=> 0,
        Locale::gettext	=> 0,
    },
);

if ($^O eq 'MSWin32') {
	my $LIBS = 0;
	eval {
		require Win32::Printer;
		require Printer;
		$LIBS = 1;
	};
	print STDERR "For best results on Windows, make sure Win32::Printer and Printer are installed!\n" unless ($LIBS == 1);

} else {
	my $CUPS = 0;
	eval {
		require Net::CUPS;
		$CUPS = 1;
	};
	print STDERR "For best results on Unix, make sure Net::CUPS is installed!\n" unless ($CUPS == 1);

}