/[fuse.before_github]/perl-llin/Makefile.PL
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /perl-llin/Makefile.PL

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

perl/trunk/Makefile.PL revision 7 by dpavlin, Thu Nov 18 12:09:10 2004 UTC perl-llin/Makefile.PL revision 86 by dpavlin, Tue May 23 11:15:22 2006 UTC
# Line 1  Line 1 
1  use ExtUtils::MakeMaker;  use ExtUtils::MakeMaker;
2  # See lib/ExtUtils/MakeMaker.pm for details of how to influence  # See lib/ExtUtils/MakeMaker.pm for details of how to influence
3  # the contents of the Makefile that is written.  # the contents of the Makefile that is written.
4    
5    my $ver = `fusermount -V`;
6    $ver =~ s/^.*?version:\s+//;
7    if ($ver + 0 < 2.5) {
8            die "Fuse perl bindings need fuse version 2.5 or never\n";
9    } else {
10            warn "fuse version found: $ver\n";
11    }
12    
13    my $inc = '-DFUSE_USE_VERSION=25 ' . `pkg-config --cflags fuse` || '-I ../include -D_FILE_OFFSET_BITS=64';
14    my $obj = `pkg-config --libs fuse` || '-lfuse';
15    
16  WriteMakefile(  WriteMakefile(
17      'NAME'              => 'Fuse',      'NAME'              => 'Fuse',
18      'VERSION_FROM'      => 'Fuse.pm', # finds $VERSION      'VERSION_FROM'      => 'Fuse.pm', # finds $VERSION
# Line 11  WriteMakefile( Line 23  WriteMakefile(
23      'LIBS'              => [''], # e.g., '-lm'      'LIBS'              => [''], # e.g., '-lm'
24      'DEFINE'            => '-g -ggdb', # e.g., '-DHAVE_SOMETHING'      'DEFINE'            => '-g -ggdb', # e.g., '-DHAVE_SOMETHING'
25          # Insert -I. if you add *.h files later:          # Insert -I. if you add *.h files later:
26      'INC'               => '-I../include', # e.g., '-I/usr/include/other'      'INC'               => $inc, # e.g., '-I/usr/include/other'
27          # Un-comment this if you add C files to link with later:          # Un-comment this if you add C files to link with later:
28      'OBJECT'            => 'Fuse.o -lfuse -lpthread', # link all the C files too      'OBJECT'            => "$obj Fuse.o -lpthread", # link all the C files too
29  );  );
30    
31    sub MY::postamble {
32        return <<'MAKE_MORE';
33    
34    sf:
35            svn2cvs.pl file:///home/dpavlin/.svk/fuse/perl-llin :ext:dpavlin@cvs.sourceforge.net:/cvsroot/fuse perl
36    
37    MAKE_MORE
38    };

Legend:
Removed from v.7  
changed lines
  Added in v.86

  ViewVC Help
Powered by ViewVC 1.1.26