api/curl: add pkg-config file

Issue genodelabs/goa#81
This commit is contained in:
Josef Söntgen 2024-01-16 11:37:36 +01:00 committed by Christian Helmuth
parent c6e8acc037
commit 581ee3eda6

View File

@ -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\"" >> $@