/[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

Annotation of /perl-llin/Makefile.PL

Parent Directory Parent Directory | Revision Log Revision Log


Revision 88 - (hide annotations)
Tue May 23 14:45:23 2006 UTC (17 years, 11 months ago) by dpavlin
File MIME type: text/plain
File size: 1271 byte(s)
whitespace fixes
1 mszeredi 4 use ExtUtils::MakeMaker;
2     # See lib/ExtUtils/MakeMaker.pm for details of how to influence
3     # the contents of the Makefile that is written.
4 dpavlin 31
5 dpavlin 86 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 dpavlin 85 my $inc = '-DFUSE_USE_VERSION=25 ' . `pkg-config --cflags fuse` || '-I ../include -D_FILE_OFFSET_BITS=64';
14 dpavlin 31 my $obj = `pkg-config --libs fuse` || '-lfuse';
15 dpavlin 86
16 mszeredi 4 WriteMakefile(
17 dpavlin 88 'NAME' => 'Fuse',
18     'VERSION_FROM' => 'Fuse.pm', # finds $VERSION
19     'PREREQ_PM' => {}, # e.g., Module::Name => 1.1
20     ($] >= 5.005 ? ## Add these new keywords supported since 5.005
21     (ABSTRACT_FROM => 'Fuse.pm', # retrieve abstract from module
22     AUTHOR => 'Mark Glines <mark@glines.org>') : ()),
23     'LIBS' => [''], # e.g., '-lm'
24     'DEFINE' => '-Wall -g -ggdb', # e.g., '-DHAVE_SOMETHING'
25 mszeredi 4 # Insert -I. if you add *.h files later:
26 dpavlin 88 'INC' => $inc, # e.g., '-I/usr/include/other'
27 mszeredi 4 # Un-comment this if you add C files to link with later:
28 dpavlin 88 'OBJECT' => "$obj Fuse.o -lpthread", # link all the C files too
29 mszeredi 4 );
30 dpavlin 59
31     sub MY::postamble {
32 dpavlin 88 return <<'MAKE_MORE';
33 dpavlin 59
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     };

  ViewVC Help
Powered by ViewVC 1.1.26