Alien-OpenSSL

 view release on metacpan or  search on metacpan

alienfile  view on Meta::CPAN

    my $type = $Config{ptrsize} == 4 ? 'VC-WIN32' : 'VC-WIN64A';
    requires 'Alien::nasm' => '0.19';
    build [
      "%{perl} Configure --prefix=%{.install.prefix} --libdir=%{.install.prefix}/lib --openssldir=%{.runtime.prefix}/ssl no-shared $type",
      '%{make}',
      '%{make} OPENSSLDIR=%{.install.prefix}/ssl install',
    ];
    gather sub {
      my($build) = @_;
      my $prefix = $build->runtime_prop->{prefix};
      $build->runtime_prop->{$_} = "-I$prefix/include " for qw( cflags cflags_static );
      $build->runtime_prop->{$_} = "-LIBPATH:$prefix/lib libcrypto.lib libssl.lib " for qw( libs libs_static );
    };
  }
  else
  {
    # Not supported by OpenSSL for building from Source code:
    # (MSWin32 Perl) + (GCC)
    # (Perl 5.8)
    # That means that building from source is not possible on Strawberry currently.
    # (Strawberry is basically MSWin32 Perl with gcc, we can sometimes work around



( run in 0.331 second using v1.01-cache-2.11-cpan-94b05bcf43c )