From owner-freebsd-ports@FreeBSD.ORG Sat Apr 4 08:51:42 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7467E556 for ; Sat, 4 Apr 2015 08:51:42 +0000 (UTC) Received: from prod2.absolight.net (mx3.absolight.net [IPv6:2a01:678:2:100::25]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "plouf.absolight.net", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 339D0B7F for ; Sat, 4 Apr 2015 08:51:42 +0000 (UTC) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id 7B9DBBDC56; Sat, 4 Apr 2015 10:51:40 +0200 (CEST) Received: from atuin.in.mat.cc (atuin.in.mat.cc [79.143.241.205]) by prod2.absolight.net (Postfix) with ESMTPA id 74CCABDC44; Sat, 4 Apr 2015 10:51:40 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by atuin.in.mat.cc (Postfix) with ESMTP id 60B7F2EBFDC3; Sat, 4 Apr 2015 10:51:40 +0200 (CEST) Date: Sat, 04 Apr 2015 10:51:40 +0200 From: Mathieu Arnold To: Kevin Oberman Subject: Re: How do I specify port opt1 requires opt2 Message-ID: In-Reply-To: References: <49565FCAB7E8FD98176737C0@atuin.in.mat.cc> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Ben Woods , FreeBSD ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Apr 2015 08:51:42 -0000 +--On 3 avril 2015 20:06:09 -0700 Kevin Oberman wrote: | On Fri, Apr 3, 2015 at 11:51 AM, Mathieu Arnold wrote: | |> |> |> +--On 3 avril 2015 05:46:45 +0000 Ben Woods wrote: |> | I am working on modifying a port, and was wondering how do I specify |> | that selecting port option1 requires that option2 is also selected? |> | |> | Note that in my example it is perfectly acceptable to have option2 |> | selected without option1. |> |> This functionnality is coming, it's being discussed in |> but for now, |> you'll have to do some testing in your Makefile and either add an IGNORE |> or force the other option. |> |> -- |> Mathieu Arnold |> | | What I have done in the past is to put "(Forces option OPTION)" in the | description line and then either set opt2 in the IF block for opt1 or | simply set the opt2 flag, if that is all opt2 requires, in that block. But that means you'll need to include bsd.port.options.mk, which will have to parse bsd.port.mk a second time, which is slow. And also, that you're not using options helpers. -- Mathieu Arnold