11 |
if (! $ver && ! $ver2 && ! $ver3) { |
if (! $ver && ! $ver2 && ! $ver3) { |
12 |
# make CPANPLUS happy and don't report errors if fuse isn't installed |
# make CPANPLUS happy and don't report errors if fuse isn't installed |
13 |
die("No support for os: $^O\n", |
die("No support for os: $^O\n", |
14 |
"You need to have fuse-dev (or similar) package installed and have sufficient permissions in order to install this module\n" |
"You need to have fuse-dev (or similar) package installed and have sufficient permissions in order to install this module\n", |
15 |
|
$^O eq 'darwin' ? ("One option on Mac is http://code.google.com/p/macfuse/\n") : (), |
16 |
); |
); |
17 |
} |
} |
18 |
if ($ver && $ver + 0 < 2.5) { |
if ($ver && $ver + 0 < 2.5) { |
30 |
my $inc = '-DFUSE_USE_VERSION=25 ' . `pkg-config --cflags fuse` || '-I ../include -D_FILE_OFFSET_BITS=64'; |
my $inc = '-DFUSE_USE_VERSION=25 ' . `pkg-config --cflags fuse` || '-I ../include -D_FILE_OFFSET_BITS=64'; |
31 |
my $obj = `pkg-config --libs fuse` || '-lfuse'; |
my $obj = `pkg-config --libs fuse` || '-lfuse'; |
32 |
my $def = '-Wall -g -ggdb'; |
my $def = '-Wall -g -ggdb'; |
33 |
$def .= ' -D__FreeBSD__=10' if $^O eq 'darwin'; |
$def .= ' -D__FreeBSD__=10 -D_FILE_OFFSET_BITS=64' if $^O eq 'darwin'; |
34 |
|
|
35 |
WriteMakefile( |
WriteMakefile( |
36 |
'NAME' => 'Fuse', |
'NAME' => 'Fuse', |
50 |
sub MY::postamble { |
sub MY::postamble { |
51 |
return <<'MAKE_MORE'; |
return <<'MAKE_MORE'; |
52 |
|
|
53 |
|
cpan: |
54 |
|
make clean |
55 |
|
rm -f Fuse-*.tar.gz |
56 |
|
perl Makefile.PL |
57 |
|
make dist |
58 |
|
make disttest |
59 |
|
@echo |
60 |
|
@echo -n "Upload" Fuse-*.tar.gz "to CPAN? [y/N]:" |
61 |
|
@read upload && test "$$upload" == "y" && cpan-upload -verbose Fuse-*.tar.gz |
62 |
|
|
63 |
|
|
64 |
|
|
65 |
sf: |
sf: |
66 |
svn2cvs.pl file:///home/dpavlin/private/svn/fuse/perl-llin :ext:dpavlin@fuse.cvs.sourceforge.net:/cvsroot/fuse perl |
svn2cvs.pl file:///home/dpavlin/private/svn/fuse/perl-llin :ext:dpavlin@fuse.cvs.sourceforge.net:/cvsroot/fuse perl |
67 |
|
|