aboutsummaryrefslogtreecommitdiff
path: root/secure/lib/libcrypto/libcrypto.pc.in
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2022-08-26 14:02:09 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2022-10-12 08:34:03 +0000
commit41067961b6f3a0b5667e40e768b7b46e4092348e (patch)
treeb178b31ff1efbdd989191bcc7625dcaf92085705 /secure/lib/libcrypto/libcrypto.pc.in
parent0733dd8a9353a1b9796ffeca0120c5c3642df48b (diff)
openssl: install pc files
most programs in ports are looking for .pc files in order to get the necessary information on how to compile and link against openssl. The ports now also has a way to hide or force a path for pkgconf. Providing .pc files along with openssl in base will allow (once all the supported version of FreeBSD has it) so improve the framework to deal with openssl in base vs openssl in ports (and libressl) This will also greatly reduce the number of patches necessary to workaround the build systems which only knows how to detect where openssl is installed via pkgconf. PR: 266051 MFC After: 3 weeks Reviewed by: jkim, delphij Exp-run by: antoine Differential Revision: https://reviews.freebsd.org/D36360 (cherry picked from commit b323fa85f15268ac44b8ff90faf90bce5d87b608)
Diffstat (limited to 'secure/lib/libcrypto/libcrypto.pc.in')
-rw-r--r--secure/lib/libcrypto/libcrypto.pc.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/secure/lib/libcrypto/libcrypto.pc.in b/secure/lib/libcrypto/libcrypto.pc.in
new file mode 100644
index 000000000000..d0da079d9f19
--- /dev/null
+++ b/secure/lib/libcrypto/libcrypto.pc.in
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+enginesdir=${libdir}/engines
+
+Name: OpenSSL-libcrypto
+Description: OpenSSL cryptography library
+Version: @openssl_ver@
+Libs: -L${libdir} -lcrypto
+Libs.private: -pthread
+Cflags: -I${includedir}