From owner-freebsd-ports@FreeBSD.ORG Tue Apr 10 15:51:02 2012 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 45EEE106566C for ; Tue, 10 Apr 2012 15:51:02 +0000 (UTC) (envelope-from stephen@missouri.edu) Received: from wilberforce.math.missouri.edu (wilberforce.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 0E4BC8FC0C for ; Tue, 10 Apr 2012 15:51:01 +0000 (UTC) Received: from [128.206.184.213] (wilberforce.math.missouri.edu [128.206.184.213]) by wilberforce.math.missouri.edu (8.14.5/8.14.5) with ESMTP id q3AFox6X021738; Tue, 10 Apr 2012 10:50:59 -0500 (CDT) (envelope-from stephen@missouri.edu) Message-ID: <4F8456E3.2040908@missouri.edu> Date: Tue, 10 Apr 2012 10:50:59 -0500 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120314 Thunderbird/10.0.3 MIME-Version: 1.0 To: Mel Flynn References: <4F839499.8050103@missouri.edu> <4F83A164.8060107@acsalaska.net> In-Reply-To: <4F83A164.8060107@acsalaska.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: autodetecting dependencies 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, 10 Apr 2012 15:51:02 -0000 On 04/09/12 21:56, Mel Flynn wrote: > On 4/10/2012 04:02, Stephen Montgomery-Smith wrote: > >> 1. Don't worry about it. tinderbox builds will never build port A in >> the presence of package B. >> >> 2. Have the Makefile of port A detect whether package B is installed, >> and if it is then add B as a dependency of A. >> >> 3. Cripple the configure in port A so that it doesn't autodetect for >> package B. (Sometimes this can be done using a suitable CONFIGURE_ARGS, >> but not in my particular situation.) > > 4. Add OPTION PACKAGE_B. And cripple configure through EXTRA_PATCH if > set to off. > > Package B doesn't seem to offer any extra functionality to port A. I ended up going with option 3, because it turned out to be easier than I thought it would be.