From 581ee3eda62a01cd7b2c14deb42fb795d787c0d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Tue, 16 Jan 2024 11:37:36 +0100 Subject: [PATCH] api/curl: add pkg-config file Issue genodelabs/goa#81 --- repos/libports/recipes/api/curl/content.mk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/repos/libports/recipes/api/curl/content.mk b/repos/libports/recipes/api/curl/content.mk index 5d0a028042..2bbd4af5e8 100644 --- a/repos/libports/recipes/api/curl/content.mk +++ b/repos/libports/recipes/api/curl/content.mk @@ -17,10 +17,19 @@ include: content: src/lib/curl -content: LICENSE FindCURL.cmake +content: LICENSE FindCURL.cmake libcurl.pc LICENSE: cp $(PORT_DIR)/src/lib/curl/COPYING $@ FindCURL.cmake: echo 'set(CURL_FOUND True)' > $@ + +VERSION := $(shell sed -n 's/VERSION.*:=[ ]*\(.*\)/\1/p' $(REP_DIR)/ports/curl.port) + +libcurl.pc: + echo "Name: libcurl" > $@ + echo "Description: Library to transfer files with ftp, http, etc." >> $@ + echo "Version: $(VERSION)" >> $@ + echo "Libs: -l:curl.lib.so" >> $@ + echo "supported_protocols=\"FILE FTP GOPHER HTTP HTTPS SCP SFTP\"" >> $@