From owner-freebsd-ports@FreeBSD.ORG Sat Apr 4 03:06:10 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 11E5D595; Sat, 4 Apr 2015 03:06:10 +0000 (UTC) Received: from mail-ie0-x22c.google.com (mail-ie0-x22c.google.com [IPv6:2607:f8b0:4001:c03::22c]) (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 C96EE97F; Sat, 4 Apr 2015 03:06:09 +0000 (UTC) Received: by iedfl3 with SMTP id fl3so114514678ied.1; Fri, 03 Apr 2015 20:06:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=c1Ro1dmqQM6loeeTsDO8j3gVAjQqvWpL2ireCoP7d98=; b=eEJD8rqSEJqrXSnu52z+/IL5FKSlXlYeArpCzwFyXIiZCSJubhAQJLWchC0wsgkYV9 pmTrr531BGm7MrH+uGPseVRmvUd0XgZ33TGDvzM2LHtXbTg8akRjKRG5xulevE+bXwxH ntRo+QD0YJnDoaVH6jnTlIGZAHW5vYD00yGXCnyVh0Uy1p0AT75qgcK7q9+Fzz/8czqh 4wIPFBN+VMQY/oFXpwJqJmxLXAGPenwPY+2Rls4/9Y6wOKV6MTua7L702oA7/BH9QI4h GGPNnoFJ0HOWjL7vRVFPuVzcg3vFjyEZR52awwSh0sjflOo6hgKqWcwCZXLvA0kdeMLJ 4fEw== MIME-Version: 1.0 X-Received: by 10.42.91.10 with SMTP id n10mr7331410icm.23.1428116769191; Fri, 03 Apr 2015 20:06:09 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.107.174.86 with HTTP; Fri, 3 Apr 2015 20:06:09 -0700 (PDT) In-Reply-To: <49565FCAB7E8FD98176737C0@atuin.in.mat.cc> References: <49565FCAB7E8FD98176737C0@atuin.in.mat.cc> Date: Fri, 3 Apr 2015 20:06:09 -0700 X-Google-Sender-Auth: yD3ue3RKsaQiNa_EMBsdZuAd_1U Message-ID: Subject: Re: How do I specify port opt1 requires opt2 From: Kevin Oberman To: Mathieu Arnold Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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 03:06:10 -0000 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. -- Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com