Date: Sat, 04 Apr 2015 10:51:40 +0200 From: Mathieu Arnold <mat@FreeBSD.org> To: Kevin Oberman <rkoberman@gmail.com> Cc: Ben Woods <woodsb02@gmail.com>, FreeBSD ports <freebsd-ports@freebsd.org> Subject: Re: How do I specify port opt1 requires opt2 Message-ID: <B762E86294F226BA575BE879@atuin.in.mat.cc> In-Reply-To: <CAN6yY1sSf29RY_HS1dysEwX1zsjZXAsqPdPvS1DiQe67x-jChQ@mail.gmail.com> References: <CAOc73CC7NH61NsLa423AZMxyLu7D8of1LKLZRvFgYbWYR_wOmQ@mail.gmail.com> <49565FCAB7E8FD98176737C0@atuin.in.mat.cc> <CAN6yY1sSf29RY_HS1dysEwX1zsjZXAsqPdPvS1DiQe67x-jChQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
+--On 3 avril 2015 20:06:09 -0700 Kevin Oberman <rkoberman@gmail.com> wrote: | On Fri, Apr 3, 2015 at 11:51 AM, Mathieu Arnold <mat@freebsd.org> wrote: | |> |> |> +--On 3 avril 2015 05:46:45 +0000 Ben Woods <woodsb02@gmail.com> 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 |> <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191144> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B762E86294F226BA575BE879>