Skip to content

Commit

Permalink
api/openssl: add pkg-config files
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuke authored and chelmuth committed Jan 7, 2025
1 parent 7c5f6db commit 543e5cd
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion repos/libports/recipes/api/openssl/content.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,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" >> $@

0 comments on commit 543e5cd

Please sign in to comment.