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