From owner-freebsd-ports@FreeBSD.ORG Mon Apr 25 01:43:33 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F4E316A4CE for ; Mon, 25 Apr 2005 01:43:33 +0000 (GMT) Received: from connectmail.carleton.ca (connectmail.carleton.ca [134.117.2.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E22543D53 for ; Mon, 25 Apr 2005 01:43:33 +0000 (GMT) (envelope-from adamw@FreeBSD.org) Received: from [192.168.1.105] ([134.117.145.25]) by connectmail.carleton.ca (iPlanet Messaging Server 5.2 HotFix 2.02 (built Oct 21 2004)) with ESMTPSA id <0IFH007JFBGJOB@connectmail.carleton.ca> for freebsd-ports@freebsd.org; Sun, 24 Apr 2005 21:43:32 -0400 (EDT) Date: Sun, 24 Apr 2005 21:44:42 -0400 From: Adam Weinberger In-reply-to: <20050425013415.GD33556@bigbird.logicsquad.net> To: "Paul A. Hoadley" Message-id: <426C4B8A.7070508@FreeBSD.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-ca, en-gb, en-us, en User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-CA; rv:1.7.5) Gecko/20050105 Thunderbird/1.0 OMFG PANTS References: <20050423062648.GE61472@bigbird.logicsquad.net> <20050423063143.GA96226@xor.obsecurity.org> <20050423071716.GG61472@bigbird.logicsquad.net> <20050425013415.GD33556@bigbird.logicsquad.net> cc: freebsd-ports@freebsd.org Subject: Re: Depending on other ports with OPTIONS X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 01:43:33 -0000 Paul A. Hoadley wrote: > On Sat, Apr 23, 2005 at 04:47:16PM +0930, Paul A. Hoadley wrote: > >>On Fri, Apr 22, 2005 at 11:31:43PM -0700, Kris Kennaway wrote: >> >> >>>The solution is to make a slave port that enables the option you >>>need, depend on that, and make it conflict with the other >>>non-enabled versions of the port. >> >>Just bear with me for a few more minutes... So the approach would >>be to make refdb-mysql, refdb-pgsql and refdb-sqlite, each of which >>depend on the appropriate libdbi-driver, and refdb with common code? >>How do I make these slaves conflict with the non-enabled versions of >>libdbi-drivers---that is, how does >>"CONFLICTS=libdbi-drivers-0.7.1_2" differentiate between having >>chosen, say, libmysql or libpgsql when it was built? Or have I >>misunderstood your advice? > > > I've hit a wall here---can anyone give me a push in the right > direction? Even just pointing me at a port that depends on certain > OPTIONs having been chosen in another port would probably be > sufficient. I am willing to work it out from the Makefiles. Really, the simplest thing is to determine whether someone has installed the proper flavour (for example, look for mysql-backend.file). If not, output an error message saying "Rebuild port foo with the mysql-backend enabled". I bet that'd be enough for most users. # Adam -- Adam Weinberger adamw@magnesium.net || adamw@FreeBSD.org adamw@vectors.cx || adamw@gnome.org http://www.vectors.cx