X-Git-Url: http://git.ieval.ro/?p=io-compress-brotli.git;a=blobdiff_plain;f=Makefile.PL;h=0c59c05342530133d64aa70694478280eddf69b7;hp=a44b60729072c298cac248a078d4a514ce32f334;hb=c17e7d6329e8a24e6128a9f70e2b597fce1b5b0a;hpb=c683f09d7564d59e0c67d82736c065007626047c diff --git a/Makefile.PL b/Makefile.PL index a44b607..0c59c05 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,19 +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 => {}, - BUILD_REQUIRES => { - qw/File::Slurp 0/, + EXE_FILES => [ 'bin/bro-perl' ], + PREREQ_PM => { + 'File::Slurper' => '0', + 'Getopt::Long' => '0', + 'Time::HiRes' => '0', }, - INC => '-I.', - OBJECT => 'Brotli.o bit_reader.o decode.o dictionary.o huffman.o state.o streams.o', - C => [], - depend => {'$(INST_DYNAMIC)' => '$(O_FILES)'}, + BUILD_REQUIRES => {}, + INC => '-Ibrotli/c/include', + MYEXTLIB => 'brotli/libbrotli$(LIB_EXT)', + clean => { FILES => 'brotli/libbrotli$(LIB_EXT)' }, META_ADD => { dynamic_config => 0, resources => { @@ -24,3 +26,10 @@ WriteMakefile( }, } ); + +sub MY::postamble { +' +$(MYEXTLIB): brotli/Makefile + cd brotli && CFLAGS=-fPIC `which gmake || echo $(MAKE)` lib +' +}