2
use ExtUtils::MakeMaker;
4
use ExtUtils::PkgConfig;
6
# minimum required version of dependancies we need to build
11
# minimum required version of dependancies we need to run
13
'libsane' => '1.0.19',
16
# Can't assume ExtUtils::PkgConfig will return anything useful until
17
# the pkg-config files ship with sane.
21
%pkgcfg = ExtUtils::PkgConfig->find ('sane-backends >= '. $build_reqs{libsane})
24
$inc .= $pkgcfg{cflags};
27
$runtime_reqs{libsane} = $pkgcfg{modversion};
29
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
30
# the contents of the Makefile that is written.
33
VERSION_FROM => 'lib/Sane.pm', # finds $VERSION
34
PREREQ_PM => {}, # e.g., Module::Name => 1.1
35
($] >= 5.005 ? ## Add these new keywords supported since 5.005
36
(ABSTRACT_FROM => 'lib/Sane.pm', # retrieve abstract from module
37
AUTHOR => 'Jeffrey Ratcliffe') : ()),
38
LIBS => [$lib], # e.g., '-lm'
39
DEFINE => '', # e.g., '-DHAVE_SOMETHING'
40
INC => $inc, # e.g., '-I. -I/usr/include/other'
41
# Un-comment this if you add C files to link with later:
42
# OBJECT => '$(O_FILES)', # link all the C files too