X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=Makefile.PL;h=406476e1cd3166b47d6271f116e003f6093f26b4;hb=refs%2Fheads%2Fmaster;hp=4e627012a3e34d2dc31001ba8aaaa3cf8d154f57;hpb=8ad7b1d2198ad3bb973655d3626fd56cb5db3072;p=chaz%2Fp5-File-KDBX-XS diff --git a/Makefile.PL b/Makefile.PL index 4e62701..406476e 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,9 @@ 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. ##} + 'VERSION' => '999.999', +##{ $plugin->get_default(qw{ABSTRACT AUTHOR DISTNAME LICENSE MIN_PERL_VERSION VERSION test}) ##} ##{ $plugin->get_prereqs(1) ##} @EUMM_INC_LIB, ); @@ -89,7 +95,7 @@ sub MY::postamble { }; $extra_targets = qq{ -\$(MYEXTLIB): libtomcrypt/Makefile +\$(MYEXTLIB): libtomcrypt/Makefile.nmake \tcd libtomcrypt && \$(MAKE) -f Makefile.nmake CFLAGS="$mycflags" } if $^O eq 'MSWin32' && $Config{make} =~ /nmake/ && $Config{cc} =~ /cl/;