From owner-freebsd-ports@FreeBSD.ORG Fri Nov 30 15:47:55 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CF84B62F for ; Fri, 30 Nov 2012 15:47:55 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from mx1a.lautre.net (eyra.lautre.net [80.67.160.71]) by mx1.freebsd.org (Postfix) with ESMTP id 891668FC15 for ; Fri, 30 Nov 2012 15:47:55 +0000 (UTC) Received: from graf.pompo.net (graf.pompo.net [78.225.128.39]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: thierry@pompo.net) by mx1a.lautre.net (Postfix) with ESMTPSA id 82E0740B7C for ; Fri, 30 Nov 2012 16:47:48 +0100 (CET) Received: by graf.pompo.net (Postfix, from userid 1001) id 443C5114AD; Fri, 30 Nov 2012 16:47:40 +0100 (CET) Date: Fri, 30 Nov 2012 16:47:40 +0100 From: Thierry Thomas To: FreeBSD Ports List Subject: Re: Dealing with options in dependent ports Message-ID: <20121130154740.GA16360@graf.pompo.net> Mail-Followup-To: FreeBSD Ports List References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 9.1-PRERELEASE i386 Organization: Kabbale Eros X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc; y=\ipKMNm<1J>lv@PP~7Z<.t KjAnXLs: X-PGP: 0xC71405A2 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Nov 2012 15:47:55 -0000 Hello, Le ven 30 nov 12 à 16:36:32 +0100, Paul Schmehl écrivait : > I'm working on a port that has an option for a build_depends on another > port. If that option is selected, the dependent port MUST be built with an > option that is not selected by default. > > Is there a way to either force that option to be selected in the dependent > port? Or, failing that, is it possible to pop up a message warning the > installer that they must select that option before building the dependent > port or, if they've already installed it without the option, they must > deinstall and reinstall after selecting that option? > I'd suggest to make a slave port where you force the required option. However, to enforce the right dependency, this option have to produce a different plist. -- Th. Thomas.