X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=Makefile.PL;h=73fe222870f4281e1abf738ef489a4c779958cd8;hb=5b02a525718a9d2b82f1f5d15b5edd8dcf82f29a;hp=cb7d632334b18f1f17620c64760093928714c072;hpb=f9995f31e58bcdfc9eb528128c6bfcbb0b8fc777;p=io-compress-brotli.git diff --git a/Makefile.PL b/Makefile.PL index cb7d632..73fe222 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,16 +4,21 @@ use ExtUtils::MakeMaker; WriteMakefile( NAME => 'IO::Compress::Brotli', VERSION_FROM => 'lib/IO/Compress/Brotli.pm', - ABSTRACT => 'Read Brotli buffers/streams', + ABSTRACT => 'Read/write Brotli buffers/streams', AUTHOR => 'Marius Gavrilescu ', MIN_PERL_VERSION => '5.14.0', LICENSE => 'perl', SIGN => 1, - PREREQ_PM => {}, - INC => '-I.', - OBJECT => 'Brotli.o bit_reader.o decode.o dictionary.o huffman.o state.o streams.o', - C => [], - depend => {'$(INST_DYNAMIC)' => '$(O_FILES)'}, + EXE_FILES => [ 'bin/bro-perl' ], + PREREQ_PM => { + 'File::Slurp' => '0', + 'Getopt::Long' => '0', + 'Time::HiRes' => '0', + }, + BUILD_REQUIRES => {}, + INC => '-Ibrotli/c/include', + MYEXTLIB => 'brotli/libbrotli$(LIB_EXT)', + clean => { FILES => 'brotli/libbrotli$(LIB_EXT)' }, META_ADD => { dynamic_config => 0, resources => { @@ -21,3 +26,10 @@ WriteMakefile( }, } ); + +sub MY::postamble { +' +$(MYEXTLIB): brotli/Makefile + cd brotli && CFLAGS=-fPIC `which gmake || echo $(MAKE)` lib +' +}