From owner-freebsd-ports@FreeBSD.ORG Fri Apr 20 10:10:10 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 70AC11065672 for ; Fri, 20 Apr 2012 10:10:10 +0000 (UTC) (envelope-from nacho319@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0CD4A8FC19 for ; Fri, 20 Apr 2012 10:10:09 +0000 (UTC) Received: by yhgm50 with SMTP id m50so5997892yhg.13 for ; Fri, 20 Apr 2012 03:10:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=MKFpMmiUxi0kBlLoAFgj9RpPn9l3lABBRHf2oY5gC88=; b=ZK9DGHCEwj6rF3li1S2AUpwjg54e0mFp1E4IBrl+nkCQVfdfvb/NQSxia3/GsBIIsJ u1h3cDSK5wjKmQOP8AnGQBtSaOtnr/9DtFf2qSH11UBCJcnZtRVrpnp+2nNPg2kLwdZo 3MHMC1p6wIxGTS62tpFUMnwKZ7Tb2VDHkwQXwddh1W2DuRS6yZsZy83A+Ko3zVO+3aui eMeBHXUzL90Yqz8VQK2U5aKaNnwAKnIrYo47AET/+wfNhy3gB0ZV/pfKXIwW3WbKM7j3 aytvVDJAkAnoKthG77AzoiJI0swiKwJCrq/95Pq45fd2LIl9fmw5Qn7va6Z8dMiXQip1 01Cw== MIME-Version: 1.0 Received: by 10.236.161.3 with SMTP id v3mr5220878yhk.128.1334916609630; Fri, 20 Apr 2012 03:10:09 -0700 (PDT) Received: by 10.146.197.12 with HTTP; Fri, 20 Apr 2012 03:10:09 -0700 (PDT) Date: Fri, 20 Apr 2012 06:10:09 -0400 Message-ID: From: Chris Inacio To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: port dependencies with port options 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: Fri, 20 Apr 2012 10:10:10 -0000 Hello ports wizards, I wanted to add an option to multiple ports - that is easy. But, those ports have a dependency relationship, and I only want the last node in the port dependency graph to build with that option if the requisite ports have too. In real terms: net/spread <- net/libfixbuf <- net-mgmt/yaf I added a SPREAD option to net/libfixbuf & to net-mgmt/yaf. net-mgmt/yaf can only build a Spread version if libfixbuf was built with a Spread version. Question 1) How do you construct such that if a user goes into net-mgmt/yaf chooses Spread and fixbuf isn't already installed, it builds fixbuf with the spread option? Question 2) How do you ensure that if fixbuf is already installed, it has the Spread option enabled, or disallow/error the Yaf Spread option? Thanks, Chris Inacio