From 89c63604bac9b287eb360f4f1117e1e9457d636b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Tue, 16 Jan 2024 16:47:56 +0100 Subject: [PATCH] api/openssl: add pkg-config files Issue genodelabs/goa#81 --- repos/libports/recipes/api/openssl/content.mk | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/repos/libports/recipes/api/openssl/content.mk b/repos/libports/recipes/api/openssl/content.mk index af0172217e..afcdb8ba93 100644 --- a/repos/libports/recipes/api/openssl/content.mk +++ b/repos/libports/recipes/api/openssl/content.mk @@ -31,8 +31,28 @@ src/lib/openssl: cp -r $(REP_DIR)/src/lib/openssl/crypto $@/ cp -r $(REP_DIR)/src/lib/openssl/spec $@/ -content: LICENSE +content: LICENSE libcrypto.pc libssl.pc openssl.pc LICENSE: cp $(PORT_DIR)/src/lib/openssl/LICENSE $@ +VERSION := $(shell sed -n 's/VERSION.*:=[ ]*\(.*\)/\1/p' $(REP_DIR)/ports/openssl.port) + +libcrypto.pc: + echo "Name: OpenSSL-libcrypto" > $@ + echo "Description: OpenSSL cryptography library" >> $@ + echo "Version: $(VERSION)" >> $@ + echo "Libs: -l:libcrypto.lib.so" >> $@ + +libssl.pc: + echo "Name: OpenSSL-libssl" > $@ + echo "Description: Secure Sockets Layer and cryptography libraries" >> $@ + echo "Version: $(VERSION)" >> $@ + echo "Requires.private: libcrypto" >> $@ + echo "Libs: -l:libssl.lib.so" >> $@ + +openssl.pc: + echo "Name: OpenSSL" > $@ + echo "Description: Secure Sockets Layer and cryptography libraries and tools" >> $@ + echo "Version: $(VERSION)" >> $@ + echo "Requires: libssl libcrypto" >> $@