1 # $Id: Makefile.PL,v 1.6 2005-12-13 12:31:58 mike Exp $
4 use ExtUtils::MakeMaker;
6 my $yazinc = `yaz-config --cflags threads`;
7 my $yazlibs = `yaz-config --libs threads`;
8 if (!$yazinc || !$yazlibs) {
10 ERROR: Unable to call script: yaz-config
11 If you are using a YAZ installation from the Debian package "yaz", you
12 will also need to install "libyaz-dev" in order to build this module.
17 # $yazinc = '-Ic:\yaz\include'
18 # $yazlibs = 'c:\yaz\lib\yaz.lib'
20 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
21 # the contents of the Makefile that is written.
23 NAME => 'Net::Z3950::ZOOM',
24 VERSION_FROM => 'lib/Net/Z3950/ZOOM.pm', # finds $VERSION
25 PREREQ_PM => { MARC::Record => 1.38 }, # e.g., Module::Name => 1.1
26 ($] >= 5.005 ? ## Add these new keywords supported since 5.005
27 (ABSTRACT_FROM => 'lib/Net/Z3950/ZOOM.pm', # retrieve abstract from module
28 AUTHOR => 'Mike Taylor <mike@>') : ()),
29 LIBS => [ $yazlibs ], # e.g., '-lm'
30 DEFINE => '', # e.g., '-DHAVE_SOMETHING'
31 # Insert -I. if you add *.h files later:
32 INC => $yazinc, # e.g., '-I/usr/include/other'
33 # Un-comment this if you add C files to link with later:
34 # OBJECT => '$(O_FILES)', # link all the C files too