From owner-freebsd-ports@FreeBSD.ORG Mon Jun 16 15:18:42 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BB878818 for ; Mon, 16 Jun 2014 15:18:42 +0000 (UTC) Received: from nskntqsrv03p.mx.bigpond.com (nskntqsrv03p.mx.bigpond.com [61.9.168.237]) by mx1.freebsd.org (Postfix) with ESMTP id 554A92BB7 for ; Mon, 16 Jun 2014 15:18:41 +0000 (UTC) Received: from nskntcmgw05p ([61.9.169.165]) by nskntmtas05p.mx.bigpond.com with ESMTP id <20140616145455.MSMN19653.nskntmtas05p.mx.bigpond.com@nskntcmgw05p> for ; Mon, 16 Jun 2014 14:54:55 +0000 Received: from hermes.heuristicsystems.com.au ([121.210.107.100]) by nskntcmgw05p with BigPond Outbound id F2uv1o00G29zwdD012uvNW; Mon, 16 Jun 2014 14:54:55 +0000 X-Authority-Analysis: v=2.0 cv=W5W6pGqk c=1 sm=1 a=SEJ2iDwVkb98DYvesvueMw==:17 a=JipEcVzqA9wA:10 a=4dwS3ZyXVpYA:10 a=IkcTkHD0fZMA:10 a=GHIR_BbyAAAA:8 a=rIFp8bTfCx47IZ1OTZgA:9 a=QEXdDO2ut3YA:10 a=fQrBhb-6ZxYA:10 a=SEJ2iDwVkb98DYvesvueMw==:117 Received: from [10.0.5.3] (ewsw01.hs [10.0.5.3]) (authenticated bits=0) by hermes.heuristicsystems.com.au (8.14.5/8.13.6) with ESMTP id s5GEs9pL068395 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Tue, 17 Jun 2014 00:54:10 +1000 (EST) (envelope-from dewayne.geraghty@heuristicsystems.com.au) Message-ID: <539F0511.3080409@heuristicsystems.com.au> Date: Tue, 17 Jun 2014 00:54:09 +1000 From: Dewayne Geraghty User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: How to pick up options from another ("master") port, but don't show "config" dialog at all and have defaults in case of absence of "master" port options file? References: <661714484.20140616162734@serebryakov.spb.ru> <539EF3E6.4050502@sorbs.net> <1011094695.20140616183233@serebryakov.spb.ru> <539F00BC.8050604@sorbs.net> In-Reply-To: <539F00BC.8050604@sorbs.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2014 15:18:42 -0000 On 17/06/2014 12:35 AM, Michelle Sullivan wrote: > Lev Serebryakov wrote: >> Hello, Michelle. >> You wrote 16 июня 2014 г., 17:40:54: >> >> >>>> I want some "dependant" ports to pick-up options set in "main" port, but >>>> never ever show "config" dialog/UI. I've tried to set >>>> OPTIONS_NAME=cat_port, and it set OPTIONS_FILE_SET and OPTIONS_FILE_UNSET >>>> variables, but not PORT_OPTIONS variable, as this exact ("dependant") port >>>> doesn't have OPTIONS_DEFINE (of course). >>>> >>>> What is proper way to use options in this situation? OPTIONS_SLAVE doesn't >>>> look right, as it override options file. I need something like >>>> OPTIONS_SLAVE_DEFAULT, which will work as OPTIONS_SLAVE if here is no >>>> ${OPTIONS_FILE} and could be overridden by ${OPTIONS_FILE}, if it is >>>> present. >>>> >>>> >>>> >> MS> Have a look at editors/pico-alpine and mail/alpine that does exactly >> MS> what you're asking I think. >> Nope. "make config" in "editoris/pico-alpine" shows dialog. I don't want >> it at all. >> >> >> > Yes but that option set is different from that in alpine ... OPTIONS= > will clear any options (or just remove the options in that port) > > Michelle > > make -DBATCH will eliminate the need for dialogue. Though you will need to set your options, we use /usr/ports/devel/pkgconf extensively to set configuration options.