From owner-freebsd-ports@FreeBSD.ORG Sat Nov 19 22:48:04 2011 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 5E8E41065670 for ; Sat, 19 Nov 2011 22:48:04 +0000 (UTC) (envelope-from bbtruk@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id E84AE8FC14 for ; Sat, 19 Nov 2011 22:48:03 +0000 (UTC) Received: by wwg14 with SMTP id 14so7317282wwg.31 for ; Sat, 19 Nov 2011 14:48:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; bh=kp0z7hctFZc9pSWxBufNcWzdpvoR4LuNluGlC6WqEYo=; b=AQFYrVgfU6NPttCkVkubwlRjzsipaizM5oqZzfj/rz6CjcB+blMUqtEvaBaeqR3LBL jq+7ICOtkApRhVE1m6UIku+F+O9Y+3/nVZUJInrI6U0HnpGsrdXgngfSG2jbBTMHIFFq RKQUQTMPF2jEPFL3bzrVPhmhmTIpqYUH1bXs4= Received: by 10.227.202.70 with SMTP id fd6mr5365548wbb.27.1321742882819; Sat, 19 Nov 2011 14:48:02 -0800 (PST) Received: from ss-benat.saindua.dyndns.org (221.85-86-7.dynamic.clientes.euskaltel.es. [85.86.7.221]) by mx.google.com with ESMTPS id k5sm2632263wiz.9.2011.11.19.14.48.00 (version=SSLv3 cipher=OTHER); Sat, 19 Nov 2011 14:48:01 -0800 (PST) Sender: Benat Gonzalez Etxepare Date: Sat, 19 Nov 2011 23:47:58 +0100 From: =?ISO-8859-1?Q?Be=F1at?= Gonzalez Etxepare To: freebsd-ports@freebsd.org Message-Id: <20111119234758.e4a46127.bbtruk@users.sourceforge.net> In-Reply-To: <4EB9771C.5080006@cassiba.com> References: <20111108180947.288e9a42.bbtruk@users.sourceforge.net> <4EB9771C.5080006@cassiba.com> X-Mailer: Sylpheed 3.1.2 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: sam@cassiba.com Subject: Re: Slave ports 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: Sat, 19 Nov 2011 22:48:04 -0000 > There are some ports under net-p2p that have qt and gtk slave ports. A > couple others I can think of off the top of my head are apache22 and > php5. Those areas should be good starting places to look over to give > you an idea of how to do it. Sorry for not answering sooner, but I have not been able to study in depth earlier the examples you told me. Now, after having tried to understand better what slave ports are, I am not sure they are the right way to handle my problem. From my understanding they are used between different configurations or parts of the same application, so they share almost entirely the same Makefile. In my case, I need to compile a new port (Double Commander, a file manager) which depends in some other totally different port (Lazarus, an IDE). With Lazarus you are able to compile applications for the toolkit you choose: QT or GTK2. Lazarus itself is compiled using one of them (which can be selected using Makefile's options). All programs compiled with Lazarus should use the same toolkit as the IDE. For this, I can get the selected option from a configuration file (written by Lazarus port) using the != assignment, but it is discouraged. So I need to do it some other way. Are slave ports suited for this (getting a chosen option from some other port)? or is there some other way to solve this? If I'm not being very clear with my problem, tell me and I will try to explain better, because right now I am quite lost at how to solve this in the right way.