mirror of
https://github.com/openssl/openssl.git
synced 2025-01-12 13:36:28 +08:00
15b748496f
The latest CMake exporter changes reworked the the variables in builddata.pm and installdata.pm. Unfortunately, the pkg-config exporter templates were forgotten in that effort. Fixes #25299 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org> (Merged from https://github.com/openssl/openssl/pull/25308)
28 lines
1.2 KiB
PkgConfig
28 lines
1.2 KiB
PkgConfig
prefix={- $OpenSSL::safe::installdata::PREFIX[0] -}
|
|
exec_prefix=${prefix}
|
|
libdir={- if (defined $OpenSSL::safe::installdata::LIBDIR_REL_PREFIX[0]) {
|
|
my $x = '';
|
|
$x = '/' . $OpenSSL::safe::installdata::LIBDIR_REL_PREFIX[0]
|
|
if $OpenSSL::safe::installdata::LIBDIR_REL_PREFIX[0];
|
|
'${exec_prefix}' . $x;
|
|
} else {
|
|
$OpenSSL::safe::installdata::libdir[0];
|
|
} -}
|
|
includedir={- $OUT = '';
|
|
$OUT .= '${prefix}/' . $_ . ' '
|
|
foreach (@OpenSSL::safe::installdata::INCLUDEDIR_REL_PREFIX); -}
|
|
enginesdir=${libdir}/{- $OpenSSL::safe::installdata::ENGINESDIR_REL_LIBDIR[0] -}
|
|
modulesdir=${libdir}/{- $OpenSSL::safe::installdata::MODULESDIR_REL_LIBDIR[0] -}
|
|
|
|
Name: OpenSSL-libcrypto
|
|
Description: OpenSSL cryptography library
|
|
Version: {- $OpenSSL::safe::installdata::VERSION -}
|
|
Libs: -L${libdir} -lcrypto
|
|
Libs.private: {- join(' ', @OpenSSL::safe::installdata::LDLIBS) -}
|
|
Cflags:{- $OUT = ' -I${includedir}';
|
|
if (scalar @OpenSSL::safe::installdata::INCLUDEDIR_REL_PREFIX > 1) {
|
|
$OUT = '';
|
|
$OUT .= ' -I${prefix}/' . $_ . ' '
|
|
foreach (@OpenSSL::safe::installdata::INCLUDEDIR_REL_PREFIX);
|
|
} -}
|