From owner-freebsd-ports@FreeBSD.ORG Thu May 20 06:39: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 75DDB1065676 for ; Thu, 20 May 2010 06:39:28 +0000 (UTC) (envelope-from joris.dedieu@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 30C178FC1C for ; Thu, 20 May 2010 06:39:27 +0000 (UTC) Received: by gwj16 with SMTP id 16so3510gwj.13 for ; Wed, 19 May 2010 23:39:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=6xl+c8JsJt6q9F9cjQtv43ULlE/taVhPEL9+XL7sJgI=; b=i5inF+8B8WitVd3Okvhhs0m/y9QPM7EUSoF1JVG5UZDQthh2YmPlJ/QyZ7ZWTIUGJ9 4hlk2rYhGE/EDvCVYFT67kkELWU7/Q/q1u5cZwI4gBDDHimKG+4ahJViHIuG4X5Ibe3I l6HYKcF8T5Pp1hM6F+FbR+BjQVj/GB/ukIyfo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=jnoFw0jIo7MF02Jbo3KlEjLZDggI/b+3UBr2PSe51+qOCxLJ2s4Um6pmL0H39Gioze 6gLUdTG0IWDxGh6pYSfowvHHv83o45JlW2esLPLmlKCXvo6PBx2BtsnZIy/D93jXTOPn o4XfpQx15BxrHQWL+syI8KfBOY9fo+XpwdPbw= MIME-Version: 1.0 Received: by 10.101.201.35 with SMTP id d35mr12143181anq.254.1274337567215; Wed, 19 May 2010 23:39:27 -0700 (PDT) Received: by 10.100.112.7 with HTTP; Wed, 19 May 2010 23:39:27 -0700 (PDT) In-Reply-To: References: <20100519200725.093b9452@it.buh.tecnik93.com> <05553471@ipt.ru> Date: Thu, 20 May 2010 08:39:27 +0200 Message-ID: From: joris dedieu To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Thu, 20 May 2010 06:39:28 -0000 2010/5/20 joris dedieu : > 2010/5/19 Boris Samorodov : >> 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 =A0don'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. > Ok thank for those replies. I'm currently porting Mandriva Directory Server (http://mds.mandriva.org) In source tree there are tow packages : - mmc-core which provides a daemon tool (mmc-agent) written in python and a web interface written in php. - mds which provides some plugins (mail, samba, squid ...) for both the agent and the interface. You can install the agent on a machine and the web ui in an other. You can also have several agents connected to the same web-ui As usual linux distros spilt it in many packages. So I think I will do it this way : mmc-agent -> install the agent mmc-web -> install the web interface mds-agent -> install the base plugin and some optionnal depend on mmc-agent mds-web -> depend on mds-web The problem I have is that it also provides : - a plugin for openldap that won't work if openldap is not build with ppoli= cy - a plugin for manage openssh ldap public key (that only will run if security/openssh-portable is compiled with the lpk-patch As it run depend I can just send a warning in pkg-message. It also means that I will have 4 ports for only 2 tarballs. Joris > >> >> -- >> WBR, Boris Samorodov (bsam) >> Research Engineer, http://www.ipt.ru Telephone & Internet SP >> FreeBSD Committer, http://www.FreeBSD.org The Power To Serve >> >