From owner-freebsd-ports@FreeBSD.ORG Wed May 19 17:58:28 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37DA6106566B; Wed, 19 May 2010 17:58:28 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id E4C4A8FC19; Wed, 19 May 2010 17:58:27 +0000 (UTC) Received: from [85.175.12.171] (helo=izar) by services.ipt.ru with esmtpa (Exim 4.54 (FreeBSD)) id 1OEnXF-000Nvo-O7; Wed, 19 May 2010 21:58:25 +0400 From: Boris Samorodov To: Ion-Mihai Tetcu References: <20100519200725.093b9452@it.buh.tecnik93.com> Date: Wed, 19 May 2010 21:58:24 +0400 In-Reply-To: <20100519200725.093b9452@it.buh.tecnik93.com> (Ion-Mihai Tetcu's message of "Wed, 19 May 2010 20:07:25 +0300") Message-ID: <05553471@ipt.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: joris dedieu , freebsd-ports@freebsd.org Subject: Re: Depend on ${PORTSDIR}/foo WITH_OPTION X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 May 2010 17:58:28 -0000 On Wed, 19 May 2010 20:07:25 +0300 Ion-Mihai Tetcu wrote: > On Wed, 19 May 2010 08:11:48 +0200 > joris dedieu wrote: > > I would like to know if there is a way to tell a port that it depend > > on an other port > > but build with particulars options. > > > > Eg : port foo build depend on bar but won't build if bar is not build > > with WITH_PARTICULAR. > > > > I don't see anything to say that in bsd.port.mk, so before to > > implement self made tests, I want to know if I miss something. > no, there isn't. Here is a workaround: create a port with needed options and use that new port as a dependency. You may look at comms/gammy-python as an example. -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve