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', |