Commit | Line | Data |
---|---|---|
0c1f3509 MG |
1 | use 5.014000; |
2 | use ExtUtils::MakeMaker; | |
3 | ||
4 | my @link_with = map { 'scrypt-1.2.1/'.$_ } qw, | |
5 | lib/crypto/libscrypt_sse2_a-crypto_scrypt_smix_sse2.o | |
6 | lib/crypto/crypto_scrypt.o | |
7 | lib/crypto/crypto_scrypt_smix.o | |
0c1f3509 MG |
8 | lib/util/memlimit.o |
9 | libcperciva/alg/sha256.o | |
10 | libcperciva/cpusupport/cpusupport_x86_aesni.o | |
11 | libcperciva/cpusupport/cpusupport_x86_sse2.o | |
12 | libcperciva/crypto/libcperciva_aesni_a-crypto_aes_aesni.o | |
13 | libcperciva/crypto/crypto_aes.o | |
14 | libcperciva/crypto/crypto_aesctr.o | |
15 | libcperciva/crypto/crypto_entropy.o | |
16 | libcperciva/util/asprintf.o | |
17 | libcperciva/util/entropy.o | |
18 | libcperciva/util/getopt.o | |
19 | libcperciva/util/humansize.o | |
20 | libcperciva/util/insecure_memzero.o | |
21 | libcperciva/util/readpass.o | |
22 | libcperciva/util/warnp.o,; | |
23 | ||
24 | WriteMakefile( | |
25 | NAME => 'Authen::Passphrase::Scrypt', | |
26 | VERSION_FROM => 'lib/Authen/Passphrase/Scrypt.pm', | |
27 | ABSTRACT_FROM => 'lib/Authen/Passphrase/Scrypt.pm', | |
28 | AUTHOR => 'Marius Gavrilescu <marius@ieval.ro>', | |
29 | MIN_PERL_VERSION => '5.14.0', | |
30 | LICENSE => 'perl', | |
31 | SIGN => 1, | |
32 | PREREQ_PM => { | |
c03ebc79 MG |
33 | qw/Authen::Passphrase 0 |
34 | Object::Tiny 0 | |
0c1f3509 MG |
35 | Data::Entropy::Algorithms 0/, |
36 | }, | |
37 | INC => '-I. -Iscrypt-1.2.1', | |
38 | LIBS => ['-lcrypto'], | |
39 | MYEXTLIB => 'scrypt-1.2.1/libscrypt_sse2.a', | |
40 | LDFROM => "\$(OBJECT) @link_with", | |
41 | META_ADD => { | |
42 | dynamic_config => 0, | |
43 | resources => { | |
44 | repository => 'https://git.ieval.ro/?p=authen-passphrase-scrypt.git', | |
45 | }, | |
46 | } | |
47 | ); | |
48 | ||
49 | sub MY::postamble { | |
50 | ' | |
51 | $(MYEXTLIB): scrypt-1.2.1/configure | |
52 | cd scrypt-1.2.1 && ./configure && `which gmake || echo $(MAKE)` CFLAGS+=-fPIC | |
53 | ' | |
54 | } |