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 = ' -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' => 0, # For testing
},
resources => {
'license' => 'http://dev.perl.org/licenses/',
'homepage' => 'http://github.com/cpan-authors/Crypt-OpenSSL-RSA',
'bugtracker' => 'https://github.com/cpan-authors/Crypt-OpenSSL-RSA/issues',
'repository' => 'http://github.com/cpan-authors/Crypt-OpenSSL-RSA',
}
}
);
|