-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathMakefile.PL
More file actions
59 lines (53 loc) · 1.98 KB
/
Makefile.PL
File metadata and controls
59 lines (53 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
use strict;
use warnings;
use Config;
use 5.006;
use ExtUtils::MakeMaker 6.48;
use Crypt::OpenSSL::Guess qw(openssl_inc_paths openssl_lib_paths openssl_version);
my ($major, $minor, $patch) = openssl_version();
print "OpenSSL version: $major.$minor $patch", "\n";
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
my $libs = ' -lssl -lcrypto';
if ( $Config{osname} eq 'aix' ) {
$libs = $libs . ' -lz';
}
WriteMakefile(
'NAME' => 'Crypt::OpenSSL::RSA',
'AUTHOR' => 'Ian Robertson <iroberts@cpan.org>',
'VERSION_FROM' => 'RSA.pm', # finds $VERSION
'DISTNAME' => 'Crypt-OpenSSL-RSA',
'ABSTRACT_FROM' => 'RSA.pm',
'MIN_PERL_VERSION' => 5.006,
'PL_FILES' => {},
'LICENSE' => 'perl',
'PREREQ_PM' => {
'Crypt::OpenSSL::Random' => 0,
'Test::More' => 0,
},
'OBJECT' => 'RSA.o',
'LIBS' => [openssl_lib_paths() . $libs],
'LDDLFLAGS' => openssl_lib_paths() . ' ' . $Config{lddlflags},
'DEFINE' => '-DPERL5 -DOPENSSL_NO_KRB5',
# perl-5.8/gcc-3.2 needs -DPERL5, and redhat9 likes -DOPENSSL_NO_KRB5
'INC' => openssl_inc_paths(), # e.g., '-I/usr/include/other'
'dist' => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
'clean' => { FILES => 'Crypt-OpenSSL-RSA-*' },
'META_MERGE' => {
recommends => {
'Crypt::OpenSSL::Bignum' => 0,
},
configure_requires => {
'Crypt::OpenSSL::Guess' => '0.11',
},
build_requires => {
'Test::More' => 0,
},
resources => {
'license' => 'https://dev.perl.org/licenses/',
'homepage' => 'https://github.com/cpan-authors/Crypt-OpenSSL-RSA',
'bugtracker' => 'https://github.com/cpan-authors/Crypt-OpenSSL-RSA/issues',
'repository' => 'https://github.com/cpan-authors/Crypt-OpenSSL-RSA',
}
}
);