From owner-freebsd-ports@FreeBSD.ORG Sun Nov 10 18:02:15 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5AB9F92C for ; Sun, 10 Nov 2013 18:02:15 +0000 (UTC) (envelope-from spankthespam@gmail.com) Received: from mail-qe0-x22a.google.com (mail-qe0-x22a.google.com [IPv6:2607:f8b0:400d:c02::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1FDBD2827 for ; Sun, 10 Nov 2013 18:02:15 +0000 (UTC) Received: by mail-qe0-f42.google.com with SMTP id df13so415448qeb.29 for ; Sun, 10 Nov 2013 10:02:14 -0800 (PST) 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=y6+idRYw4102lFStpSSGmu1DFld/RrvFLOyX+rqcT5w=; b=IwsXmlZoZ+Vd7dBs0WrA5tZuJ7VhCMRx1UwL232kxNMBbl6/v5vkQfSQw01GEgKhzc I6Cu0OL4C4WnNMrZdRolmtZa3zypb++KRaKMVQAvXNzhsBjW/bcjGFEftSHxnb5Hg8/j J1tJqQPNMEpHJQ+ANJR6VoiLZBicyGcXpEBLNTwn8xpJlDmFoxMfXAsO7Jp4cprlh5sq Jq6Q1NcHv4Dd7MtAE102Tc43XGKf0YSGj4njg72KJDDAibXZgtTxICKJTQPC1dCa0LiO zB94Q7p2aa7GAEAzfaPBawZ6RUKWYXiC0nq5Df6hsF+UwdwIANwlKHjqI60H8rZKMdyx fg2w== MIME-Version: 1.0 X-Received: by 10.49.86.35 with SMTP id m3mr40865170qez.7.1384106534362; Sun, 10 Nov 2013 10:02:14 -0800 (PST) Received: by 10.229.214.66 with HTTP; Sun, 10 Nov 2013 10:02:14 -0800 (PST) Date: Sun, 10 Nov 2013 19:02:14 +0100 Message-ID: Subject: Best way to make the port install another port From: Big Lebowski To: freebsd-ports Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Nov 2013 18:02:15 -0000 Hi, I wanted to add an option to one of my ports to optionally install commandline tool, that's in another port. Doing the options part is easy and clear, but how should I add that port to build procedure to do it the right-way? The most obvious way would be to add RUN_DEPENDS+=, but the original port doesnt really depend on this tools... Another question is to where is the best place to put such dependency? Post install, pre install? Thanks in advance!