From owner-freebsd-questions@freebsd.org Tue Nov 14 21:05:20 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 66A88DDDF51; Tue, 14 Nov 2017 21:05:20 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-it0-x22a.google.com (mail-it0-x22a.google.com [IPv6:2607:f8b0:4001:c0b::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2DAD26F7F3; Tue, 14 Nov 2017 21:05:20 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-it0-x22a.google.com with SMTP id f187so15357009itb.1; Tue, 14 Nov 2017 13:05:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject :content-transfer-encoding; bh=kle2yA8pCI24nJh2rUMCAI+KFu98OH1AgfJstTkVxvw=; b=DWlmAsi+nnkbCzifvhUbO7aM6nFnvDjFwXlSVhOsHNQgeVAWtdmYsHcgyGtQHqQV2e iIlO82ELgoBLQnjaErPK6l0Ql/J/KQyBmELaIzXXlqvUVMGj9DtyEgbmNPBjGi4xfKTK j6499DKfTIfRYjt3W0Y7fYMtbcLFHcy01KwnbJeIw5Zg9TOOaE9EHonn2i2cs4iDfyqx W+6hbDZIVawIg/iAsnuPRcFAv1lplgsJ6WSwH1E4nVcnSZ8Jv4f9Wltg0l8FkM+PlZ6C 7DUL6hFSXT2oprFh8yzxRLl9JwqReSqvN43QISyePjFljG23VU/iWoijlDQYOwrKqZxh 0BGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-transfer-encoding; bh=kle2yA8pCI24nJh2rUMCAI+KFu98OH1AgfJstTkVxvw=; b=L+ni6i2WGQXgNCko5qX5KHOOX/iGnOFsBRKiKB7VdTqY1YADnuuXtwmUX3aS/xCeds v/XFMp6/4rNGoTf3tJ/Uzg/exTZ2R94SJoUpaPuuwpHSYN1nMNr2Zxmz2P/cL4qlAATm 96aAzcNbZv6oeWnvaBSpEgPPmA47XEgwIqjWRozxj2moHFjVWn/+2M20Jtv12hd5ZYqq v26gHItpo9RPT96dusxJfGfGb1VQUDN30x87g6PUZMqGTUTbohETrYa8+v87mLFrSvvx V//NEFFb7PLJQpYocEYIyndXbu4D3c3ST/D5h2hcXhZa5AyoRITRIInftxbTpHBmgfyz SmtA== X-Gm-Message-State: AJaThX7mt3guaNxrYP49jBr8hywigkx73fCR9lzSiQRE2Wpl7XXLE+zE uXInAi4PT4/3WFxqwBbxcVWOXg== X-Google-Smtp-Source: AGs4zMYVbdCkjxqrraiFjzhlqZv9LJ+AMgCC2RnYshv2ldFXibImZ6By2rmTOAgk8ylBtm3B0jNK0Q== X-Received: by 10.36.111.2 with SMTP id x2mr17744700itb.31.1510693518954; Tue, 14 Nov 2017 13:05:18 -0800 (PST) Received: from [10.0.10.7] (cpe-65-25-50-122.neo.res.rr.com. [65.25.50.122]) by smtp.googlemail.com with ESMTPSA id e68sm8054553ite.0.2017.11.14.13.05.17 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Nov 2017 13:05:18 -0800 (PST) Message-ID: <5A0B5A8D.107@gmail.com> Date: Tue, 14 Nov 2017 16:05:17 -0500 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: "freebsd-questions@freebsd.org" , "ports@FreeBSD.org" Subject: Makefile RUN_DEPENDS= option Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Nov 2017 21:05:20 -0000 Have a simple port that needs wget to work. I want RUN_DEPENDS to first check if wget is already installed, IE: is the running executable in the search path whether installed as a compiled port or installed as a package and if so bypass any more wget processing. If running executable not found then to auto install using pkg version and if not found there to do port compile method. How would I code that?