# $FreeBSD: head/Mk/Uses/curl.mk 441689 2017-05-25 14:04:48Z bapt $ # # handle dependency on curl # # Feature: curl # Usage: USES=curl # Valid ARGS: fetch (default, implicit), build, run, all .if !defined(_INCLUDE_USES_CURL_MK) _INCLUDE_USES_CURL_MK= yes . if !exists(/usr/local/bin/curl) . if empty(curl_ARGS) curl_ARGS= fetch . endif _CURL_DEPENDS= curl:ftp/curl . if ${curl_ARGS} == "fetch" FETCH_DEPENDS+= ${_CURL_DEPENDS} . elif ${curl_ARGS} == "build" BUILD_DEPENDS+= ${_CURL_DEPENDS} . elif ${curl_ARGS} == "run" RUN_DEPENDS+= ${_CURL_DEPENDS} . elif ${curl_ARGS} == "all" FETCH_DEPENDS+= ${_CURL_DEPENDS} BUILD_DEPENDS+= ${_CURL_DEPENDS} RUN_DEPENDS+= ${_CURL_DEPENDS} . else IGNORE= USES=curl - invalid args: [${curl_ARGS}] specified . endif . endif .endif