From owner-freebsd-ports@FreeBSD.ORG Tue Mar 3 14:55:28 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89F60106566B for ; Tue, 3 Mar 2009 14:55:28 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.60.158]) by mx1.freebsd.org (Postfix) with ESMTP id 67D4D8FC17 for ; Tue, 3 Mar 2009 14:55:28 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: by syn.atarininja.org (Postfix, from userid 1001) id 41FFF5C2D; Tue, 3 Mar 2009 09:55:27 -0500 (EST) Date: Tue, 3 Mar 2009 09:55:27 -0500 From: Wesley Shields To: freebsd-ports@freebsd.org Message-ID: <20090303145527.GB43228@atarininja.org> References: <20090303072936.0e154820@scorpio> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090303072936.0e154820@scorpio> User-Agent: Mutt/1.5.19 (2009-01-05) Subject: Re: Configuring 'RUN_DEPENDS' X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2009 14:55:29 -0000 On Tue, Mar 03, 2009 at 07:29:36AM -0500, Jerry wrote: > A port I am creating has a RUN_DEPENDS of either 'curl' or 'wget'. I > have tried several times to write some sort of test in the make file to > determine if one or the other were installed, and if neither then to > install 'curl'. I suppose I could create an OPTIONS to install one or > the other; however, I have not gotten that to work correctly either. > > I looked at Postfix's Makefile, and got a few ideas from it; however, > not enough to get what I want to work. > > The port will also require Clamav, either the standard port or the > devel one. Therefore I have two run dependencies to adjust. Use the one > available or install one if neither is all ready installed. > > I tried Googling and the Porters Handbook, but I cannot find what I am > looking for. Is it possible? I assume it must be. A regular 'if' or > 'case' statement I would normally use does not work in a make file. Can you post your Makefile so we can get a better understanding of what you're trying to do. -- WXS