X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=Makefile.PL;h=4649ca4ae463a9e3826d1f953ac00b3a146660b9;hb=28a3da2952c63b71798b7ba5a90ea8a72141f673;hp=4e627012a3e34d2dc31001ba8aaaa3cf8d154f57;hpb=8ad7b1d2198ad3bb973655d3626fd56cb5db3072;p=chaz%2Fp5-File-KDBX-XS diff --git a/Makefile.PL b/Makefile.PL index 4e62701..4649ca4 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,5 +1,8 @@ #!/usr/bin/env perl +# A lot of this is cargo-culted from CryptX which has already gone through a lot of working around platform +# incompatibilities which we're grateful to take advantage of here -- thanks cpan:MIK! + use warnings; use strict; @@ -11,7 +14,7 @@ use ExtUtils::MakeMaker; my (@EUMM_INC_LIB, $myarflags, $mycflags); # use bundled libtomcrypt -my @myobjs = map { /^(.*)\.c$/ ? "$1.$Config{obj_ext}" : () } qw( +my @myobjs = map { /^(.*)\.c$/ ? "$1$Config{obj_ext}" : () } qw( libtomcrypt/src/ciphers/aes/aes.c libtomcrypt/src/misc/compare_testvector.c libtomcrypt/src/misc/crypt/crypt_argchk.c @@ -53,6 +56,7 @@ $mycflags = "$mycflags -Wall -Werror -Wextra" if $ENV{AUTHOR_MODE}; : '-DLTM_DESC -Ilibtomcrypt/src/headers', MYEXTLIB => "libtomcrypt/libonlyaes$Config{lib_ext}", clean => { FILES => join(' ', @myobjs, "libtomcrypt/libonlyaes$Config{lib_ext}") }, + realclean => { FILES => join(' ', qw{cover_db *.gcda *.gcno *.gcov})}, ); #FIX: https://github.com/DCIT/perl-CryptX/pull/79 @@ -64,7 +68,8 @@ if ($^O !~ /^(MSWin32|darwin|solaris)$/ && ($Config{ld} =~ /gcc|g\+\+/ || $Confi } my %eumm_args = ( -##{ $plugin->get_default(qw{ABSTRACT AUTHOR DISTNAME LICENSE MIN_PERL_VERSION NAME VERSION test}) ##} + 'NAME' => 'File::KDBX::XS',##{ # List NAME explicitly here so it works even without dzil. ##} +##{ $plugin->get_default(qw{ABSTRACT AUTHOR DISTNAME LICENSE MIN_PERL_VERSION VERSION test}) ##} ##{ $plugin->get_prereqs(1) ##} @EUMM_INC_LIB, );