X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=perl%2FMakefile.PL.in;h=e5c120784e22ef54779e679589c2ae79883c6089;hb=cd3f39bbae63668b8806ed205132da166e73102f;hp=c4e13b6629806ad67f4498a75e996ad52d38a376;hpb=5635837565a8ba1f94211d456f5849dc6e300a21;p=idzebra-moved-to-github.git diff --git a/perl/Makefile.PL.in b/perl/Makefile.PL.in index c4e13b6..e5c1207 100644 --- a/perl/Makefile.PL.in +++ b/perl/Makefile.PL.in @@ -1,11 +1,24 @@ use ExtUtils::MakeMaker; WriteMakefile( - 'NAME' => 'IDZebra', - 'OBJECT' => 'IDZebra_wrap.o zebra_perl.o' , - 'INC' => "-I../index -I../include @YAZINC@", - 'LIBS' => "-L../index -lzebra -L../data1 -ldata1 @ZPERL_LIBS@ @TCL_LIB@ @YAZLIB@", - 'OPTIMIZE' => '-g -O2' - + 'NAME' => 'IDZebra', + 'OBJECT' => 'IDZebra_wrap.o zebra_perl.o' , + 'INC' => "-I@top_srcdir@/index -I../include @YAZINC@", + 'LIBS' => "-L@top_srcdir@/index -lzebra @TCL_LIB@ @YAZLIB@ @ZPERL_LIBS@", + 'OPTIMIZE' => '-g', +# 'PREREQ_FATAL' => 1, + 'PREREQ_PM' => { + 'Scalar::Util' => '1.0', + 'Test::More' => '0.40', + } + ); +sub MY::postamble { +'IDZebra_wrap.c: IDZebra.i + swig -I../include -v -Wall -perl -proxy ./IDZebra.i + mv IDZebra.pm lib/' + ; +} + +