Debian Codegraph @

Makefile.PL

raw symbols SCIP
1 use ExtUtils::MakeMaker;
2 # See ExtUtils/MakeMaker.pm for details of how to influence
3 # the contents of the Makefile that is written.
4
5 use Config;
6 use strict;
7
8 my $lddflags = "";
9 my $inc = "";
10
11 print "osname: $Config{'osname'}\n";
12 if ($Config{'osname'} eq "darwin")
13 {
14 # Mac OS X
15 $lddflags = $Config{lddlflags} . ' -framework CoreFoundation';
16 }
17 else
18 {
19 if ($Config{'osname'} eq "MSWin32")
20 {
21 # Windows
22 }
23 else
24 {
25 # other Unixes
26 $inc = '`pkg-config --cflags libpcsclite`';
27 }
28 }
29
30 print "LDDFLAGS: $lddflags\n";
31 print "INC: $inc\n";
32
33 WriteMakefile(
34 'NAME' => 'Chipcard::PCSC',
35 'VERSION_FROM' => 'PCSC.pm', # finds $VERSION
36 AUTHOR => ['Ludovic ROUSSEAU <[email protected]>', 'Lionel VICTOR'],
37 ABSTRACT => 'Communicate with a smart card using PC/SC from a Perl script',
38 LICENSE => 'gpl_2',
39 'LIBS' => [''], # e.g., '-lm'
40 'LDDLFLAGS' => $lddflags,
41 'DEFINE' => '-O2 -Wall', # e.g., '-DHAVE_SOMETHING'
42 'INC' => $inc,
43 'PL_FILES' => {},
44 META_MERGE => {
45 resources => {
46 homepage => 'https://pcsc-perl.apdu.fr/',
47 }
48 }
49 );
50